Google Voice [Motif] - Could not complete call

So first I will admit my ignorance when it comes to Asterisk. So if there are any logs etc. that would help just tell me where to pull them from.

What I’m attempting to do is use Asterisk as a go between for Google voice and CUCM (Cisco Unified Communications Manager) setup. I’ve setup a SIP trunk from CUCM to Asterisk and that is working fine. However I can’t seem to get calls to proceed to Google voice. The call routes but then I get the message “We could not complete your call, please try again.” And it hangs up.

I’m somewhat at a loss as I’m not sure where to look, I’m wondering if it’s because I’m setting out bogus CID to GVoice and they don’t want that, though I’ve tried masking as the Gvoice number to no avail.

Any help or pointers would be much appreciated.

Thanks.

So after doing some digging and finding log locations here is what I’m getting when I attempt to call from CUCM extension 1000 to an outbound number.

On the Asterisk side I basically have a catch all inbound rule that is set to forward everything to the Google Voice Trunk.

[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Executing [[email protected]:1] Set(“SIP/CUCM-0000004d”, “GROUP()=OUT_1”) in new stack
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Executing [[email protected]:2] Goto(“SIP/CUCM-0000004d”, “from-trunk,XXXXXX7565,1”) in new stack
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Goto (from-trunk,XXXXXX7565,1)
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Executing [[email protected]:1] NoOp(“SIP/CUCM-0000004d”, “Catch-All DID Match - Found XXXXXX7565 - You probably want a DID for this.”) in new stack
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Executing [[email protected]:2] Goto(“SIP/CUCM-0000004d”, “ext-did,s,1”) in new stack
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Goto (ext-did,s,1)
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Executing [[email protected]:1] ExecIf(“SIP/CUCM-0000004d”, “1?Set(__FROM_DID=s)”) in new stack
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Executing [[email protected]:2] Set(“SIP/CUCM-0000004d”, “CDR(did)=s”) in new stack
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Executing [[email protected]:3] ExecIf(“SIP/CUCM-0000004d”, “0 ?Set(CALLERID(name)=1000)”) in new stack
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Executing [[email protected]:4] Set(“SIP/CUCM-0000004d”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Executing [[email protected]:5] Set(“SIP/CUCM-0000004d”, “CALLERPRES()=allowed_not_screened”) in new stack
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Executing [[email protected]:6] Goto(“SIP/CUCM-0000004d”, “ext-trunk,2,1”) in new stack
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Goto (ext-trunk,2,1)
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Executing [[email protected]:1] Set(“SIP/CUCM-0000004d”, “SS=$”) in new stack
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Executing [[email protected]:2] Set(“SIP/CUCM-0000004d”, “TDIAL_STRING=Motif/gGmailAccountgmailcom/${OUTNUM}@voice.google.com”) in new stack
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Executing [[email protected]:3] Set(“SIP/CUCM-0000004d”, “DIAL_TRUNK=2”) in new stack
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Executing [[email protected]:4] Goto(“SIP/CUCM-0000004d”, “ext-trunk,tcustom,1”) in new stack
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Goto (ext-trunk,tcustom,1)
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Executing [[email protected]:1] Set(“SIP/CUCM-0000004d”, “OUTBOUND_GROUP=OUT_2”) in new stack
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Executing [[email protected]:2] GotoIf(“SIP/CUCM-0000004d”, “1?nomax”) in new stack
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Goto (ext-trunk,tcustom,4)
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Executing [[email protected]:4] ExecIf(“SIP/CUCM-0000004d”, “1?Set(CALLERPRES()=allowed_not_screened)”) in new stack
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Executing [[email protected]:5] Set(“SIP/CUCM-0000004d”, “DIAL_NUMBER=s”) in new stack
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Executing [[email protected]:6] GosubIf(“SIP/CUCM-0000004d”, “0?sub-flp-2,s,1()”) in new stack
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Executing [[email protected]:7] Set(“SIP/CUCM-0000004d”, “OUTNUM=s”) in new stack
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Executing [[email protected]:8] Set(“SIP/CUCM-0000004d”, “CALLERID(number)=1000”) in new stack
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Executing [[email protected]:9] Set(“SIP/CUCM-0000004d”, “CALLERID(name)=Control”) in new stack
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Executing [[email protected]:10] Set(“SIP/CUCM-0000004d”, “DIAL_TRUNK_OPTIONS=r”) in new stack
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] pbx.c: – Executing [[email protected]:11] Dial(“SIP/CUCM-0000004d”, “Motif/gGmailAccountgmailcom/[email protected],300,r”) in new stack
[2013-04-08 13:39:17] VERBOSE[26678][C-00000051] app_dial.c: – Called Motif/gGmailAccountgmailcom/[email protected]
[2013-04-08 13:39:17] NOTICE[1637] res_odbc.c: res_odbc: Connected to asteriskcdrdb [MySQL-asteriskcdrdb]
[2013-04-08 13:39:18] VERBOSE[26678][C-00000051] app_dial.c: – Motif/[email protected] is proceeding passing it to SIP/CUCM-0000004d
[2013-04-08 13:39:18] VERBOSE[26678][C-00000051] app_dial.c: – Motif/[email protected] answered SIP/CUCM-0000004d
[2013-04-08 13:39:22] VERBOSE[26678][C-00000051] pbx.c: == Spawn extension (ext-trunk, tcustom, 11) exited non-zero on ‘SIP/CUCM-0000004d’