<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
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.<br>
<br>
JF<br>
<br>
On 12/2/2011 11:59 PM, white hat wrote:
<blockquote
cite="mid:CAG0cep0hfmZtPyz74paguvceTfYWqdBmHo-0x547DM1cC8cbGw@mail.gmail.com"
type="cite">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 moz-do-not-send="true"
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'm sure that I'm close to getting things working properly.<br>
<br>
Here'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 moz-do-not-send="true" href="http://talk.google.com">talk.google.com</a><br>
username=<a moz-do-not-send="true"
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="No Information Available"<br>
timeout=100<br>
keepalive=yes<br>
<br>
##gtalk.conf##<br>
<br>
[general]<br>
allowguest=yes<br>
context=googlein<br>
stunaddr=<a moz-do-not-send="true"
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 => <a moz-do-not-send="true"
href="mailto:whitehat238@gmail.com">whitehat238@gmail.com</a>,1,Set(CALLERID(name)=${CUT(CALLERID(name),@,1)})<br>
exten => <a moz-do-not-send="true"
href="mailto:whitehat238@gmail.com">whitehat238@gmail.com</a>,n,GotoIf($["${CALLERID(name):0:2}"
!= "+1"]?notrim)<br>
exten => <a moz-do-not-send="true"
href="mailto:whitehat238@gmail.com">whitehat238@gmail.com</a>,n,Set(CALLERID(name)=${CALLERID(name):2})<br>
exten => <a moz-do-not-send="true"
href="mailto:whitehat238@gmail.com">whitehat238@gmail.com</a>,n(notrim),Set(CALLERID(number)=${CALLERID(name)})<br>
exten => <a moz-do-not-send="true"
href="mailto:whitehat238@gmail.com">whitehat238@gmail.com</a>,n,Answer<br>
exten => <a moz-do-not-send="true"
href="mailto:whitehat238@gmail.com">whitehat238@gmail.com</a>,n,Wait(1)<br>
exten => <a moz-do-not-send="true"
href="mailto:whitehat238@gmail.com">whitehat238@gmail.com</a>,n,SendDTMF(1)<br>
exten => <a moz-do-not-send="true"
href="mailto:whitehat238@gmail.com">whitehat238@gmail.com</a>,n,Goto(from-trunk,5025551212,1)<br>
<br>
[gvoice-whitehat238]<br>
exten => _X.,1,Dial(Gtalk/whitehat238/+${<a
moz-do-not-send="true" href="mailto:EXTEN%7D@voice.google.com">EXTEN}@voice.google.com</a>)<br>
exten => _X.,n,Noop(GVoice Call to ${EXTEN} failed)<br>
exten => 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 moz-do-not-send="true"
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 => _X.,1,Dial(Gtalk/whitehat238/+${<a
moz-do-not-send="true" href="mailto:EXTEN%7D@voice.google.com">EXTEN}@voice.google.com</a>,D(:1))<br>
exten => _X.,n,Noop(GVoice Call to ${EXTEN} failed)<br>
exten => 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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
<a class="moz-txt-link-freetext" href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a>
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></pre>
</blockquote>
<br>
</body>
</html>