Gizmo incoming route... working or not ?!?

Hello,

I added my Gizmo number to my Google Voice account, got verified all works just fine.
Now if I call my Google Voice number the Gizmo softphone rings on my windows computer. So redirection works for this number on my GV account.

Since I am already using Asterisk 1.6 + Freepbx 2.7.0.4 running on Ubuntu 10.04 server edition to manage our family phones & cell phones I wanted to add my GV/Gizmo as an inbound route to one of my extension…

So what i did is made a new trunk in Freepbx with those settings:

all blank except for:

TRUNK NAME: gizmo
PEER DETAILS:
username=1747XXXXXXX
type=peer
secret=PASSWD
insecure=very
host=proxy01.sipphone.com
fromuser=1747XXXXXXXX
fromdomain=proxy01.sipphone.com
dtmfmode=rfc2833
disallow=all
context=from-trunk
canreinvite=no
authuser=1747XXXXXXXX
allow=ulaw&alaw&ilbc

REGISTRATION STRING:

1747XXXXXXX:[email protected]/1747XXXXXXX

My trunk get registred

server01*CLI> sip show registry
Host dnsmgr Username Refresh State Reg.Time
proxy01.sipphone.com:5060 N 1747XXXXXXX 585 Registered Fri, 16 Jul 2010 09:07:12
1 SIP registrations.

Now since this seems to get registred, i made a new incoming route with those settings:

Description: gizmo
DID number: 1747XXXXXXX
Set Destination: Extension > 1007

But no incoming call show at all when I call my Google Voice number on my Asterisk installation…
I turned verbosity to 14 on my asterisk CLI but still, nothing will show even if the trunk registred and online…

So…did i miss something or it just doesn’t work anymore ??

Thank you

I have multiple gizmo trunks and they all work great (this is the only way to go if you have multiple teenage daughters).
I am using FreePBX 2.5.2.3 and Asterisk 1.6 (on a beatup old pentium III)
here are my settings:

PEER Details:
disallow=all
allow=ulaw&alaw&ilbc
canreinvite=no
context=gizmo-inbound
dtmfmode=rfc2833
fromdomain=proxy01.sipphone.com
fromuser=1747xxxxxxx
host=proxy01.sipphone.com
insecure=very
secret=password
type=peer
username=1747xxxxxxx
nat=yes

Register String:
1747xxxxxxx:[email protected]

notice I had to use the gizmo-inbound context because I have multiple incomming lines from gizmo. Here is the related entry from extensions_custom.conf

[gizmo-inbound]
;all GV variables are defined in globals_custom.conf
;strip call DID from incomming sip header
;all gizmo calls come in on the same port so this is the only way to know which is which
exten => s,1,Set(DID_EXTEN=${SIP_HEADER(To):5})
exten => s,n,Set(DID_EXTEN=${CUT(DID_EXTEN,@,1)})
exten => s,n,Set(GIZMOCALLERID=${SIP_HEADER(From):5})
exten => s,n,Set(GIZMOCALLERID=${CUT(GIZMOCALLERID,@,1)})
;
;if a call is initiated using pygooglevoice or google voice “CALL” then google voice
;will return “GRANDCENT” as the DID so this must be corrected
;
exten => s,n,GotoIf($["${DID_EXTEN}"=“GRANDCENT”]?:checkmartin)
exten => s,n,GotoIf($["${GIZMOCALLERID}"="${GVMARTINNUM}"]?:didtanya)
exten => s,n,Set(DID_EXTEN=${GVMARTINRINGBACK})
exten => s,n,Goto(normalcall)
exten => s,n(didtanya),GotoIf($["${GIZMOCALLERID}"="${GVTANYANUM}"]?:didkayla)
exten => s,n,Set(DID_EXTEN=${GVTANYARINGBACK})
exten => s,n,Goto(normalcall)
exten => s,n(didkayla),GotoIf($["${GIZMOCALLERID}"="${GVKAYLANUM}"]?:didhayli)
exten => s,n,Set(DID_EXTEN=${GVKAYLARINGBACK})
exten => s,n,Goto(normalcall)
exten => s,n(didhayli),GotoIf($["${GIZMOCALLERID}"="${GVHAYLINUM}"]?:didbrandon)
exten => s,n,Set(DID_EXTEN=${GVHAYLIRINGBACK})
exten => s,n,Goto(normalcall)
exten => s,n(didbrandon),GotoIf($["${GIZMOCALLERID}"="${GVBRANDONNUM}"]?:normalcall)
exten => s,n,Set(DID_EXTEN=${GVBRANDONRINGBACK})
exten => s,n,Goto(normalcall)
;
;process normal (not google voice CALL) calls
exten => s,n(normalcall),Goto(from-trunk,${DID_EXTEN},1)

here is an excerpt from globals_custom.conf

;set google voice variables for martin
[email protected]
GVMARTINACCTPASS=gmailpassword
GVMARTINRINGBACK=747xxxxxxx
GVMARTINPHONETYPE=7
GVMARTINNUM=517xxxxxxx

What is GVMARTIN in the google settings? Is that your gizmo username?