|
Re: Minimum implementation of Asterisk for Google Voice? June 24, 2012 12:11PM |
Registered: 1 year ago Posts: 64 |
[general]
static=yes
writeprotect=no
clearglobalvars=no
[globals]
CONSOLE=Console/dsp ; Console interface for demo
IAXINFO=guest ; IAXtel username/password
TRUNK=Zap/G2 ; Trunk interface
TRUNKMSD=1 ; MSD digits to strip (usually 1 or 0)
[default]
exten => s,1,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})
exten => s,n,Dial(SIP/101,10)
exten => s,n, Hangup
exten => 101, 1, Dial(SIP/101, 10)
exten => 102, 1, Dial(SIP/102, 10)
[google-in]
exten => rottstein@gmail.com, 1, GotoIf(${DB_EXISTS(gv_dialout/channel)}?bridged)
exten => rottstein@gmail.com, n, NoOp(Callerid ${CALLERID(name)})
exten => rottstein@gmail.com, n, Set(CALLERID(num)=${SHIFT(CALLERID(name),@)})
exten => rottstein@gmail.com, n, Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})
exten => rottstein@gmail.com, n, Dial(SIP/101, 180, D(:1))
exten => rottstein@gmail.com, n(bridged),Bridge(${DB_DELETE(gv_dialout/channel)}, p)
[outbound]
include => seven-digit
include => local-devices
include => tollfree
include => talk-gmail-outbound
include => talk-numeric-outbound
include => dial-uri
[local-devices]
exten => _1, 1, Dial(SIP/101,10)
exten => 101, 1, Dial(SIP/101,10)
exten => _2, 1, Dial(SIP/102,10)
exten => 102, 1, Dial(SIP/102,10)
[tollfree]
exten => _411, 1, Dial(SIP/18004664411@proxy.ideasip.com,60)
exten => _1800NXXXXXX,1,Dial(SIP/${EXTEN}@proxy.ideasip.com,60)
exten => _1888NXXXXXX,1,Dial(SIP/${EXTEN}@proxy.ideasip.com,60)
exten => _1877NXXXXXX,1,Dial(SIP/${EXTEN}@proxy.ideasip.com,60)
exten => _1866NXXXXXX,1,Dial(SIP/${EXTEN}@proxy.ideasip.com,60)
[seven-digit]
exten => _NXXXXXX,1,Set(CALLERID(dnid)=1512${CALLERID(dnid)})
exten => _NXXXXXX,n,Goto(1512${EXTEN},1)
exten => _NXXNXXXXXX,1,Set(CALLERID(dnid)=1${CALLERID(dnid)})
exten => _NXXNXXXXXX,n,Goto(1${EXTEN},1)
[talk-gmail-outbound]
exten => _[a-z].@gmail.com,1,Dial(Gtalk/rottstein/${EXTEN}@gmail.com)
exten => _[A-Z].@gmail.com,1,Dial(Gtalk/rottstein/${EXTEN}@gmail.com)
[talk-numeric-outbound]
exten => _1NXXNXXXXXX,1,Dial(Gtalk/rottstein/${EXTEN}@voice.google.com)
exten => _+1NXXNXXXXXX,1,Dial(Gtalk/rottstein/${EXTEN}@voice.google.com)
[gv-agi-outbound]
exten => _1NXXNXXXXXX,1,AGI(google-voice-dialout.agi)
exten => _+1NXXNXXXXXX,1,AGI(google-voice-dialout.agi)
[dial-uri]
exten => _[a-z].,1,Dial(SIP/${EXTEN}@${SIPDOMAIN},120,tr)
exten => _[A-Z].,1,Dial(SIP/${EXTEN}@${SIPDOMAIN},120,tr)
exten => _X.,1,Dial(SIP/${EXTEN}@${SIPDOMAIN},120,tr)
[general] context=default ; Default context for incoming calls allowoverlap=no ; Disable overlap dialing support. (Default is yes) bindport=5060 ; UDP Port to bind to (SIP standard port is 5060) bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all) tcpenable=yes ; Enable server for incoming TCP connections (default is no) tcpbindaddr=0.0.0.0 ; IP address for TCP server to bind to (0.0.0.0 binds to all interfaces) srvlookup=yes ; Enable DNS SRV lookups on outbound calls [Default](!) type=friend host=dynamic context=outbound outgoinglimit=1 incominglimit=1 canreinvite=no disallow=all allow=g722 allow=alaw allow=ulaw allow=gsm [101](default) username=Desk secret=redacted callerid="Charlie Black <101>" mailbox=101 [102](default) username=Dad-mobile secret=redacted callerid="Charlie Black <mobile>" mailbox=102
|
Re: Minimum implementation of Asterisk for Google Voice? June 24, 2012 12:14PM |
Registered: 1 year ago Posts: 64 |
|
Re: Minimum implementation of Asterisk for Google Voice? June 24, 2012 01:52PM |
Registered: 2 years ago Posts: 260 |
[general] context=default ; Default context for incoming calls allowoverlap=no ; Disable overlap dialing support. (Default is yes) bindport=8024 ; UDP Port to bind to (SIP standard port is 5060) bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all) externhost=www2.blahblah.org ; my DynDNS name externrefresh=60 localnet=192.168.1.0/255.255.255.0 ;tcpenable=yes ; Enable server for incoming TCP connections (default is no) ;tcpbindaddr=0.0.0.0 ; IP address for TCP server to bind to (0.0.0.0 binds to all interfaces) srvlookup=yes ; Enable DNS SRV lookups on outbound calls [101] ; main SIP phone @ Home username=101 secret=asterisk101 type=friend callerid="PG Home <101>" host=dynamic context=peter.gunn-outbound outgoinglimit=1 incominglimit=1 canreinvite=no [102] ; PG's HTC EVO username=102 secret=asterisk102 type=friend callerid="PG cell <102>" host=dynamic context=peter.gunn-outbound outgoinglimit=1 incominglimit=1 nat=yes canreinvite=no ;videosupport=yes disallow=all allow=g722 allow=alaw allow=ulaw allow=gsm ;allow=h261 ;allow=h263 ;allow=h263p ;allow=h264 ;allow=mpeg4
|
Re: Minimum implementation of Asterisk for Google Voice? June 25, 2012 10:19PM |
Registered: 1 year ago Posts: 64 |
|
Re: Minimum implementation of Asterisk for Google Voice? June 25, 2012 10:52PM |
Registered: 2 years ago Posts: 260 |
|
Re: Minimum implementation of Asterisk for Google Voice? June 26, 2012 07:44AM |
Registered: 1 year ago Posts: 64 |
|
Re: Minimum implementation of Asterisk for Google Voice? June 26, 2012 10:11PM |
Registered: 1 year ago Posts: 64 |
|
Re: Minimum implementation of Asterisk for Google Voice? June 26, 2012 10:30PM |
Registered: 2 years ago Posts: 260 |
|
ed
Re: Minimum implementation of Asterisk for Google Voice? July 14, 2012 08:29AM |
|
Re: Minimum implementation of Asterisk for Google Voice? July 14, 2012 04:46PM |
Registered: 1 year ago Posts: 64 |
|
Re: Minimum implementation of Asterisk for Google Voice? July 14, 2012 05:16PM |
Registered: 2 years ago Posts: 260 |
|
ed
Re: Minimum implementation of Asterisk for Google Voice? July 17, 2012 01:29PM |
|
Re: Minimum implementation of Asterisk for Google Voice? July 28, 2012 09:37PM |
Registered: 2 years ago Posts: 292 |
|
Re: Minimum implementation of Asterisk for Google Voice? July 28, 2012 10:34PM |
Registered: 1 year ago Posts: 64 |
|
Re: Minimum implementation of Asterisk for Google Voice? April 26, 2013 10:27AM |
Registered: 2 years ago Posts: 183 |
|
Re: Minimum implementation of Asterisk for Google Voice? April 27, 2013 01:17AM |
Registered: 2 years ago Posts: 292 |
|
Re: Minimum implementation of Asterisk for Google Voice? April 27, 2013 01:19AM |
Registered: 2 years ago Posts: 292 |
|
Re: Minimum implementation of Asterisk for Google Voice? April 28, 2013 05:06PM |
Registered: 2 years ago Posts: 260 |