At this point you should be able to register two user (demo.10,demo11) and both should be able to call each other by dialing their extensions (10, 11)
Go Up Add Google Voice
Set google voice to make and receive calls. Lets starting configuring motif
configure dial plan for incoming/outgoing calls, redirect incoming calls to demo.10 extension. You want to update your calling area code
cat << eot > /etc/asterisk/extensions.conf
[general]
[incoming-motif]
exten => s,1,Answer()
same => n,Wait(1)
same => n,SendDTMF(1)
same => n,Set(cid=\${CALLERID(name)})
same => n,Set(cid=\${CUT(cid,@,1)})
same => n,Set(CALLERID(all)=\${cid})
same => n,Dial(SIP/demo.10,20,D(:1))
[internal]
exten => 10,1,Dial(SIP/demo.10,,r) ; demo 10 can receive calls from other extensions
exten => 11,1,Dial(SIP/demo.11,,r) ; demo 11 can receive calls from other extensions
exten => _1NXXNXXXXXX,1,Dial(Motif/google/\${EXTEN}@voice.google.com,,r); allow call out to 11 digits number
exten => _NXXNXXXXXX,1,Dial(Motif/google/1\${EXTEN}@voice.google.com,,r); allow call out to 10 digit number
exten => _NXXXXXX,1,Dial(Motif/google/1xxx\${EXTEN}@voice.google.com,,r); allow call out to local numbers
Hangup()
eot
restart asterisk
/etc/init.d/asterisk restart
check google voice connections
asterisk -rx 'xmpp show connections'
All done, at this point I was able to receive calls from google voice number on my demo.10 extension and was able to make calls from demo.10 extension to anywhere using google voice number.
Go Up Add MySQL Support
Coming soon
Go Up
sed -i s,';allowguest=no','allowguest=no',g /etc/asterisk/sip.conf