Re: [asterisk-users] google voice calling dial plan question.
On Tue, Dec 6, 2011 at 4:05 PM, white hat whitehat...@gmail.com wrote: Would you be willing to post sanitized versions of your jabber.conf, gtalk.conf and details regarding the context you're using and how your inbound route is configured in your dial plan? Are you using STUN? Is Asterisk behind a NAT device or on a public IP? Yes, to both of the last questions. I am using STUN and my asterisk(s) are behind a NAT device (a Netgear WND3700). My jabber.conf looks like: [general] autoregister=yes debug=yes autoprune=no auth_policy=accept [asterisk] type=client serverhost=talk.google.com ; username=xxx...@gmail.com/Talk username=xx...@gmail.com/asterisk secret=XX priority=1 port=5222 usetls=yes usesasl=yes buddy=xxx...@gmail.com status=available statusmessage=I am an Asterisk Server timeout=100 context=gtalk_incoming and, gtalk.conf looks like this: [general] context=LocalSets ; Context to dump call into bindaddr=0.0.0.0; Address to bind to allowguests=yes ; Allow calls from people not in list of peers [guest] ; special account for options on guest account disallow=all allow=ulaw context=gtalk_incoming [XX] username=xxx...@gmail.com disallow=all allow=ulaw context=gtalk_incoming connection=asterisk And, I think that just dumps incoming calls into the context that I posted previously. HTH, dwa -- + dai...@pervasivetelcom.com -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] google voice calling dial plan question.
On Sat, Dec 3, 2011 at 12:59 AM, white hat whitehat...@gmail.com wrote: When a caller calls my google voice phone number, I must answer, wait and press one to accept. Sometimes even that does not work. I just need a little advice on how to write the dial plan. I still have much to learn about asterisk, and appreciate any advice. Geez, Maybe I am just brute forcing it, but, the following dialplan seems to work (at least, most of the time!): [gtalk_incoming] exten = s,1,Answer() exten = s,n,Wait(5) exten = s,n,SendDTMF(1) exten = s,n,Dial(SIP/Ciscofficephone,10) exten = s,n,Playback(vm-nobodyavail) exten = s,n,Playback(vm-pls-try-again) same = n,Hangup() HTH, dwa dai...@pervasivetelcom.com -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] google voice calling dial plan question.
If I understand correctly, turning off Call Screening in your Google Voice configuration should directly connect incoming calls and eliminate the need to press one. JF On 12/2/2011 11:59 PM, white hat wrote: When a caller calls my google voice phone number, I must answer, wait and press one to accept. Sometimes even that does not work. I have tried a few different things to get asterisk to place the call in an answered state and send the DTMF 1 with the Dial macro. I found Malcom Davenports wiki page regarding Google calling which has been very helpful in troubleshooting the issue. https://wiki.asterisk.org/wiki/display/AST/Calling+using+Google?focusedCommentId=18415969#comment-18415969 I'm sure that I'm close to getting things working properly. Here's my config. ##jabber.conf## [general] debug=no autoprune=no autoregister=yes [whitehat238] type=client serverhost=talk.google.com http://talk.google.com username=whitehat...@gmail.com/Talk http://whitehat...@gmail.com/Talk secret=password port=5222 usetls=yes usesasl=yes status=Available statusmessage=No Information Available timeout=100 keepalive=yes ##gtalk.conf## [general] allowguest=yes context=googlein stunaddr=stun01.sipphone.com http://stun01.sipphone.com [guest] disallow=all allow=ulaw connection=whitehat238 context=googlein ##extensions_custom.conf## exten = whitehat...@gmail.com mailto:whitehat...@gmail.com,1,Set(CALLERID(name)=${CUT(CALLERID(name),@,1)}) exten = whitehat...@gmail.com mailto:whitehat...@gmail.com,n,GotoIf($[${CALLERID(name):0:2} != +1]?notrim) exten = whitehat...@gmail.com mailto:whitehat...@gmail.com,n,Set(CALLERID(name)=${CALLERID(name):2}) exten = whitehat...@gmail.com mailto:whitehat...@gmail.com,n(notrim),Set(CALLERID(number)=${CALLERID(name)}) exten = whitehat...@gmail.com mailto:whitehat...@gmail.com,n,Answer exten = whitehat...@gmail.com mailto:whitehat...@gmail.com,n,Wait(1) exten = whitehat...@gmail.com mailto:whitehat...@gmail.com,n,SendDTMF(1) exten = whitehat...@gmail.com mailto:whitehat...@gmail.com,n,Goto(from-trunk,5025551212,1) [gvoice-whitehat238] exten = _X.,1,Dial(Gtalk/whitehat238/+${EXTEN}@voice.google.com mailto:exten...@voice.google.com) exten = _X.,n,Noop(GVoice Call to ${EXTEN} failed) exten = h,1,Macro(hangupcall,) I have a working inbound route which rings an internal extension (7008) when calling the GV number. I can also make outbound calls to any number using the GV trunk. I found this page (Link to Michigan telephone blog) which helped me get everything setup initially and included a shell script that made it easy to generate the configuration. http://michigantelephone.wordpress.com/2011/01/20/a-bash-script-to-assist-asterisk-1-8freepbx-2-8-users-in-adding-new-google-voice-accounts/ The author explains the config in more detail and why he choose to write it the way he did. I have tried using the alternative method of sending the DTMF 1 tone by changing the last block as follows: [gvoice-whitehat238] exten = _X.,1,Dial(Gtalk/whitehat238/+${EXTEN}@voice.google.com mailto:exten...@voice.google.com,D(:1)) exten = _X.,n,Noop(GVoice Call to ${EXTEN} failed) exten = h,1,Macro(hangupcall,)| However, that did not work. I just need a little advice on how to write the dial plan. I still have much to learn about asterisk, and appreciate any advice. Thanks, | -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] google voice calling dial plan question.
Hey Josh, I've messed with the google voice account settings extensively. As of now, in Google voice account settings I have. Voice tab: forward calls to Google chat checked. Nothing else is checked. Calls tab: call screening is off. On incoming call, display callers number. On Caller ID outing. Don't change anything is selected. Do not disturb is disabled. Nothing else is checked (enabled) The behavior is that the call comes in, and asterisk rings extension 7008, but I never here the prompt by Google to press one to accept the call. It either isn't played, isn't recognized, by Google when asterisk sends the DTMF 1, or it's played before I answer the extension and I don't hear it because the audio streams were not connected when it was played. If I answer extension 7008, and then press 1 (full one second press of the button) then most of the time it will connect the call. Sometimes I have to press 1 two or three times before it will connect, and rarely, it won't connect at all, even with the key presses. As part of the troubleshooting I have removed all other Google voice accounts in extensions_additional.conf, and left only the whitehat238 gvoice connection. Now the prompt is never played but the key press is still required as if it were. On Tue, Dec 6, 2011 at 10:36 AM, Dave Aibel dai...@pervasivetelecom.comwrote: On Sat, Dec 3, 2011 at 12:59 AM, white hat whitehat...@gmail.com wrote: When a caller calls my google voice phone number, I must answer, wait and press one to accept. Sometimes even that does not work. I just need a little advice on how to write the dial plan. I still have much to learn about asterisk, and appreciate any advice. Geez, Maybe I am just brute forcing it, but, the following dialplan seems to work (at least, most of the time!): [gtalk_incoming] exten = s,1,Answer() exten = s,n,Wait(5) exten = s,n,SendDTMF(1) exten = s,n,Dial(SIP/Ciscofficephone,10) exten = s,n,Playback(vm-nobodyavail) exten = s,n,Playback(vm-pls-try-again) same = n,Hangup() HTH, dwa dai...@pervasivetelcom.com -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] google voice calling dial plan question.
dwa As part of the troubleshooting I updated all of the asterisk packages from the repo with yum. I'm using freepbx distro (centos based) with asterisk 1.8 There were several newer asterisk 1.8 packages available. I'm not using any custom modules in freepbx. After the updates, I restarted asterisk with core restart now but this hasn't helped. I'm sure it's a dial plan configuration issue. Would you be willing to post sanitized versions of your jabber.conf, gtalk.conf and details regarding the context you're using and how your inbound route is configured in your dial plan? Are you using STUN? Is Asterisk behind a NAT device or on a public IP? Thanks On Tue, Dec 6, 2011 at 10:36 AM, Dave Aibel dai...@pervasivetelecom.comwrote: On Sat, Dec 3, 2011 at 12:59 AM, white hat whitehat...@gmail.com wrote: When a caller calls my google voice phone number, I must answer, wait and press one to accept. Sometimes even that does not work. I just need a little advice on how to write the dial plan. I still have much to learn about asterisk, and appreciate any advice. Geez, Maybe I am just brute forcing it, but, the following dialplan seems to work (at least, most of the time!): [gtalk_incoming] exten = s,1,Answer() exten = s,n,Wait(5) exten = s,n,SendDTMF(1) exten = s,n,Dial(SIP/Ciscofficephone,10) exten = s,n,Playback(vm-nobodyavail) exten = s,n,Playback(vm-pls-try-again) same = n,Hangup() HTH, dwa dai...@pervasivetelcom.com -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] google voice calling dial plan question.
You could also try putting a Progress() statement between Answer and Wait. I know there is a latency issue with DAHDI calls; 5 seconds may or may not be enough for googlevoice. From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of white hat Sent: Tuesday, December 06, 2011 3:05 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] google voice calling dial plan question. dwa As part of the troubleshooting I updated all of the asterisk packages from the repo with yum. I'm using freepbx distro (centos based) with asterisk 1.8 There were several newer asterisk 1.8 packages available. I'm not using any custom modules in freepbx. After the updates, I restarted asterisk with core restart now but this hasn't helped. I'm sure it's a dial plan configuration issue. Would you be willing to post sanitized versions of your jabber.conf, gtalk.conf and details regarding the context you're using and how your inbound route is configured in your dial plan? Are you using STUN? Is Asterisk behind a NAT device or on a public IP? Thanks On Tue, Dec 6, 2011 at 10:36 AM, Dave Aibel dai...@pervasivetelecom.com wrote: On Sat, Dec 3, 2011 at 12:59 AM, white hat whitehat...@gmail.com wrote: When a caller calls my google voice phone number, I must answer, wait and press one to accept. Sometimes even that does not work. I just need a little advice on how to write the dial plan. I still have much to learn about asterisk, and appreciate any advice. Geez, Maybe I am just brute forcing it, but, the following dialplan seems to work (at least, most of the time!): [gtalk_incoming] exten = s,1,Answer() exten = s,n,Wait(5) exten = s,n,SendDTMF(1) exten = s,n,Dial(SIP/Ciscofficephone,10) exten = s,n,Playback(vm-nobodyavail) exten = s,n,Playback(vm-pls-try-again) same = n,Hangup() HTH, dwa dai...@pervasivetelcom.com -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] google voice calling dial plan question.
When a caller calls my google voice phone number, I must answer, wait and press one to accept. Sometimes even that does not work. I have tried a few different things to get asterisk to place the call in an answered state and send the DTMF 1 with the Dial macro. I found Malcom Davenports wiki page regarding Google calling which has been very helpful in troubleshooting the issue. https://wiki.asterisk.org/wiki/display/AST/Calling+using+Google?focusedCommentId=18415969#comment-18415969 I'm sure that I'm close to getting things working properly. Here's my config. ##jabber.conf## [general] debug=no autoprune=no autoregister=yes [whitehat238] type=client serverhost=talk.google.com username=whitehat...@gmail.com/Talk secret=password port=5222 usetls=yes usesasl=yes status=Available statusmessage=No Information Available timeout=100 keepalive=yes ##gtalk.conf## [general] allowguest=yes context=googlein stunaddr=stun01.sipphone.com [guest] disallow=all allow=ulaw connection=whitehat238 context=googlein ##extensions_custom.conf## exten = whitehat...@gmail.com ,1,Set(CALLERID(name)=${CUT(CALLERID(name),@,1)}) exten = whitehat...@gmail.com,n,GotoIf($[${CALLERID(name):0:2} != +1]?notrim) exten = whitehat...@gmail.com,n,Set(CALLERID(name)=${CALLERID(name):2}) exten = whitehat...@gmail.com ,n(notrim),Set(CALLERID(number)=${CALLERID(name)}) exten = whitehat...@gmail.com,n,Answer exten = whitehat...@gmail.com,n,Wait(1) exten = whitehat...@gmail.com,n,SendDTMF(1) exten = whitehat...@gmail.com,n,Goto(from-trunk,5025551212,1) [gvoice-whitehat238] exten = _X.,1,Dial(Gtalk/whitehat238/+${EXTEN}@voice.google.com) exten = _X.,n,Noop(GVoice Call to ${EXTEN} failed) exten = h,1,Macro(hangupcall,) I have a working inbound route which rings an internal extension (7008) when calling the GV number. I can also make outbound calls to any number using the GV trunk. I found this page (Link to Michigan telephone blog) which helped me get everything setup initially and included a shell script that made it easy to generate the configuration. http://michigantelephone.wordpress.com/2011/01/20/a-bash-script-to-assist-asterisk-1-8freepbx-2-8-users-in-adding-new-google-voice-accounts/ The author explains the config in more detail and why he choose to write it the way he did. I have tried using the alternative method of sending the DTMF 1 tone by changing the last block as follows: [gvoice-whitehat238] exten = _X.,1,Dial(Gtalk/whitehat238/+${EXTEN}@voice.google.com,D(:1)) exten = _X.,n,Noop(GVoice Call to ${EXTEN} failed) exten = h,1,Macro(hangupcall,) However, that did not work. I just need a little advice on how to write the dial plan. I still have much to learn about asterisk, and appreciate any advice. Thanks, -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users