Asterisk: Difference between revisions
(Created page with "Our Asterisk setup runs on the local Service Box. It provides free inbound and outbound calling to/from the space's land line through Google Voice. (1-512-943-2827) Currentl...") |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
Our asterisk system is now hosted in a Debian/Testing distribution server in a Hyper-V 3.0 virtual environment hosted on top of Windows Server 2012. It is the sole service of that VM and the configuration is being reworked currently to improve reliability and remove reliance on outside DID providers except for google voice. | |||
Currently, the config is very similar to the one below. | |||
== The below information is all out of date == | |||
Our Asterisk setup runs on the local [[Service Box]]. | Our Asterisk setup runs on the local [[Service Box]]. | ||
It provides free inbound and outbound calling to/from the space's land line through Google Voice. (1-512-943-2827) | It provides free inbound and outbound calling to/from the space's land line through Google Voice. (1-512-943-2827) | ||
Line 98: | Line 104: | ||
</pre> | </pre> | ||
[[Category:Project]] |
Latest revision as of 18:56, 4 January 2023
Our asterisk system is now hosted in a Debian/Testing distribution server in a Hyper-V 3.0 virtual environment hosted on top of Windows Server 2012. It is the sole service of that VM and the configuration is being reworked currently to improve reliability and remove reliance on outside DID providers except for google voice.
Currently, the config is very similar to the one below.
The below information is all out of date
Our Asterisk setup runs on the local Service Box. It provides free inbound and outbound calling to/from the space's land line through Google Voice. (1-512-943-2827)
Currently, Asterisk mainly functions as a responder to inform callers of the current status of the space dictated by the Occupancy Sensor Asterisk calls the landline when 99 is dialed while the status is being read, as this feature is still in testing.
It hooks into the landline via a DTA310, an older model Analog Telephone Adapter (ATA) via SIP.
gtalk.conf
[general] context=inbound allowguest=yes [guest] disallow=all allow=ulaw [uasstatus-gtalk] username=********@gmail.com disallow=all allow=ulaw context=inbound connection=uasstatus
jabber.conf
[general] [uasstatus] type=client serverhost=talk.google.com username=*********@gmail.com secret=******* statusmessage=UAS status=xaway
extensions.conf
[inbound] exten => s,1,Verbose('Incoming Call') exten => s,n,Answer() exten => s,n,Wait(1) exten => s,n,SendDTMF(1) exten => s,n,Wait(1) exten => s,n,Background(/etc/asterisk/uas/welcome) exten => s,n,WaitExten(.3) exten => s,n,Background(/etc/asterisk/uas/status) exten => s,n,WaitExten(.5) exten => s,n,Background(/etc/asterisk/uas/dial_1) exten => s,n,WaitExten(.3) exten => s,n,Background(/etc/asterisk/uas/dial_2) exten => s,n,WaitExten(.3) exten => s,n,Background(/etc/asterisk/uas/dial_9) exten => s,n,WaitExten(10) exten => s,n,Hangup() exten => 1,1,Dial(SIP/8001) exten => 1,n,Hangup() exten => 2,1,Background(/etc/asterisk/uas/sign_intro) exten => 2,n,WaitExten(.2) exten => 2,n,Background(/tmp/sign) exten => 2,n,Hangup() exten => 9,1,GoTo(leave-message,s,1) [leave-message] exten => s,1,Wait(.3) exten => s,n,Record(/var/www/voicemail/${EPOCH}.wav,10,3600,xk) exten => s,n,Hangup() exten => h,1,System(bash /var/www/voicemail/convert.sh) exten => h,n,System(echo New voice message at the space! > /home/unallocated/irc/irc) [outbound] exten => _1NXXNXXXXXX,1,Verbose('Outgoing Call') exten => _1NXXNXXXXXX,n,Dial(Gtalk/uasstatus/+${EXTEN}@voice.google.com) exten => _1NXXNXXXXXX,n,Hangup() ; Nullspace Labs exten => 032,1,Dial(Gtalk/uasstatus/+14242346750@voice.google.com) exten => 032,n,Hangup() ; Hive13 exten => 0513,1,Dial(Gtalk/uasstatus/+15135939292@voice.google.com) exten => 0513,n,Hangup() ; HacDC exten => 0432,1,Dial(Gtalk/uasstatus/+12025564225@voice.google.com) exten => 0432,n,Hangup() ; I3Detroit exten => 0101,1,Dial(Gtalk/uasstatus/+12485569995@voice.google.com) exten => 0101,n,Hangup()