When a caller calls my google voice phone number, I must answer, wait and press one to accept.  Sometimes even that does not work.<br><br>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.<br>
<br>I found Malcom Davenports wiki page regarding Google calling which has been very helpful in troubleshooting the issue.<br><a href="https://wiki.asterisk.org/wiki/display/AST/Calling+using+Google?focusedCommentId=18415969#comment-18415969">https://wiki.asterisk.org/wiki/display/AST/Calling+using+Google?focusedCommentId=18415969#comment-18415969</a><br>
<br>I&#39;m sure that I&#39;m close to getting things working properly.<br><br>Here&#39;s my config.<br><br>##jabber.conf##<br><br>[general]<br>debug=no<br>autoprune=no<br>autoregister=yes<br><br>[whitehat238]<br>type=client<br>
serverhost=<a href="http://talk.google.com">talk.google.com</a><br>username=<a href="http://whitehat238@gmail.com/Talk">whitehat238@gmail.com/Talk</a><br>secret=password<br>port=5222<br>usetls=yes<br>usesasl=yes<br>status=Available<br>
statusmessage=&quot;No Information Available&quot;<br>timeout=100<br>keepalive=yes<br><br>##gtalk.conf##<br><br>[general]<br>allowguest=yes<br>context=googlein<br>stunaddr=<a href="http://stun01.sipphone.com">stun01.sipphone.com</a><br>
<br>[guest]<br>disallow=all<br>allow=ulaw<br>connection=whitehat238<br>context=googlein<br><br>##extensions_custom.conf##<br><br>exten =&gt; <a href="mailto:whitehat238@gmail.com">whitehat238@gmail.com</a>,1,Set(CALLERID(name)=${CUT(CALLERID(name),@,1)})<br>
exten =&gt; <a href="mailto:whitehat238@gmail.com">whitehat238@gmail.com</a>,n,GotoIf($[&quot;${CALLERID(name):0:2}&quot; != &quot;+1&quot;]?notrim)<br>exten =&gt; <a href="mailto:whitehat238@gmail.com">whitehat238@gmail.com</a>,n,Set(CALLERID(name)=${CALLERID(name):2})<br>
exten =&gt; <a href="mailto:whitehat238@gmail.com">whitehat238@gmail.com</a>,n(notrim),Set(CALLERID(number)=${CALLERID(name)})<br>exten =&gt; <a href="mailto:whitehat238@gmail.com">whitehat238@gmail.com</a>,n,Answer<br>exten =&gt; <a href="mailto:whitehat238@gmail.com">whitehat238@gmail.com</a>,n,Wait(1)<br>
exten =&gt; <a href="mailto:whitehat238@gmail.com">whitehat238@gmail.com</a>,n,SendDTMF(1)<br>exten =&gt; <a href="mailto:whitehat238@gmail.com">whitehat238@gmail.com</a>,n,Goto(from-trunk,5025551212,1)<br><br>[gvoice-whitehat238]<br>
exten =&gt; _X.,1,Dial(Gtalk/whitehat238/+${<a href="mailto:EXTEN%7D@voice.google.com">EXTEN}@voice.google.com</a>)<br>exten =&gt; _X.,n,Noop(GVoice Call to ${EXTEN} failed)<br>exten =&gt; h,1,Macro(hangupcall,)<br><br>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.<br>
<br>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.<br><a href="http://michigantelephone.wordpress.com/2011/01/20/a-bash-script-to-assist-asterisk-1-8freepbx-2-8-users-in-adding-new-google-voice-accounts/">http://michigantelephone.wordpress.com/2011/01/20/a-bash-script-to-assist-asterisk-1-8freepbx-2-8-users-in-adding-new-google-voice-accounts/</a><br>
<br>The author explains the config in more detail and why he choose to write it the way he did.<br><br>I have tried using the alternative method of sending the DTMF 1 tone by changing the last block as follows:<br><br>[gvoice-whitehat238]<br>

exten =&gt; _X.,1,Dial(Gtalk/whitehat238/+${<a href="mailto:EXTEN%7D@voice.google.com">EXTEN}@voice.google.com</a>,D(:1))<br>
exten =&gt; _X.,n,Noop(GVoice Call to ${EXTEN} failed)<br>
exten =&gt; h,1,Macro(hangupcall,)<code class="java plain"><br><br>However, that did not work.<br><br>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.<br>
<br>Thanks,<font size="2"><br></font></code><code class="java value"></code><code class="java plain"></code><br><br><br>