Minimal Asterisk 11 Google Voice setup (Simonics replacement)

Sat 10 November 2012
By mute

I signed up for another Google Voice account, and went to simonics to register it so I could use it on a SIP adapter. Registration was closed. :(

Asterisk 11 just hit and it's chan_motif does the job. Asterisk is very ... intimidating at first. It can do soooo much. My initial setup wasn't dialing out for some reason. It seems to be working fine now on my VPS and I've narrowed it down to a few modules, so that I may compile and run it directly on my home router (NETGEAR WNDR3700).

Click more to see a dump of my configuration tested on my VPS. I plan to figure out dial plans better later to make it handle 7 digits, and 411, maybe some speed dials..etc.

----- sip.conf -----
[general]
allowguest=no
allowoverlap=no
udpbindaddr=0.0.0.0
srvlookup=yes
nat=force_rport,comedia
domain=scottn.us
realm=scottn.us
allowexternaldomains=no``

[gvgw](!)
type=friend
host=dynamic
context=local
disallow=all
allow=ulaw

[100](gvgw)
secret=######

----- xmpp.conf -----
[general]
[google]
type=client
serverhost=talk.google.com
username=######@gmail.com
secret=######
priority=1
port=5222
usetls=yes
usesasl=yes
status=dnd
statusmessage="Telephone gateway"
timeout=5

----- motif.conf -----
[default](!)
disallow=all
allow=ulaw
allow=h264
transport=google-v1

[google](default)
transport=google
connection=google
context=incoming-google

----- extensions.conf -----
;unauth clients. 1-800-free-411
[default]
exten => 411,1,Answer()
same => n,Dial(Motif/google/18003733411@voice.google.com)

[incoming-google]
; easier way to fix caller id that seems to work fine
exten => s,1,Set(CALLERID(name)=${CALLERID(num)})
same => n,Dial(SIP/100,20,D(:1))

[local]
include => default
exten => \_1NXXNXXXXXX,1,Dial(Motif/google/${EXTEN}@voice.google.com)
exten => \_NXXXXXX,1,Dial(Motif/google/1843${EXTEN}@voice.google.com)

Comments