CallCentric route DID inbound ugggggh (i'm doing something stupid)

Hello all,

I'm doing something stupid, and need a second pair of eyes to help, cause I already used a " ; " to poke mine out. =)

Anyway simple one trunk 2 DID’s one DID heads for the Main IVR the other to an timecondition > extension > VM

Here is my extensions_custom.conf yes my correct callcentric number is in there.

[from-sip-external-custom] exten => _.,1,NoOp(Received incoming SIP connection from unknown peer to ${EXTEN}) exten => _.,n,Set(DID=${IF($["${EXTEN:1:2}"=""]?s:${EXTEN})}) exten => _.,n,Goto(s,1) ; CallCentric Check exten => s,1,GotoIf($["${DID}"="1777XXXXX"]?callcentric) ; Regular Check exten => s,n,GotoIf($["${ALLOW_SIP_ANON}"="yes"]?checklang:noanonymous) ; CallCentric DID Code exten => s,n(callcentric),Set(Var_FROM_DOMAIN=${CUT(CUT(SIP_HEADER(TO),@,2),>,1)}) exten => s,n,GotoIF($["${Var_FROM_DOMAIN}" = "callcentric.com"]?callcentric-next) exten => s,n,GotoIF($["${Var_FROM_DOMAIN}" = "ss.callcentric.com"]?callcentric-next) exten => s,n,GotoIF($["${Var_FROM_DOMAIN}" = "66.193.176.35"]?callcentric-next:checklang) exten => s,n(callcentric-next),Set(Var_TO_DID=${CUT(CUT(SIP_HEADER(TO),@,1) ,:,2)}) exten => s,n,GotoIF($["${Var_TO_DID}" = ""]?checklang) exten => s,n,Set(DID=${Var_TO_DID}) ; Regular script continues exten => s,n(checklang),GotoIf($["${SIPLANG}"!=""]?setlanguage:from-trunk,${DID},1) exten => s,n(setlanguage),Set(CHANNEL(language)=${SIPLANG}) exten => s,n,Goto(from-trunk,${DID},1) exten => s,n(noanonymous),Set(TIMEOUT(absolute)=15) exten => s,n,Answer exten => s,n,Wait(2) exten => s,n,Playback(ss-noservice) exten => s,n,Playtones(congestion) exten => s,n,Congestion(5) exten => h,1,Hangup exten => i,1,Hangup exten => t,1,Hangup <

Here is my sip_custom.conf

; Callcentric Entries
context=from-sip-external-custom
srvlookup=yes
session-timers=refuse
session-expires=180
session-minse=90
session-refresher=uas

In freebx in inbound routes I only have my two DID’s with DID filled in with the DID number not callcentric, and context set to from-sip-external-custom, and no catch all. In the general settings I have anonymous sip calls set to no.

Here is the output of the log when calling into the DID from the outside world. I do see it grabbing each DID respectively

[2010-04-06 15:06:39] VERBOSE[16250] netsock.c: == Using SIP RTP TOS bits 184 [2010-04-06 15:06:39] VERBOSE[16250] netsock.c: == Using SIP RTP CoS mark 5 [2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Executing [[email protected]:1] NoOp("SIP/66.193.176.35-00000002", "Received incoming SIP connection from unknown peer to 17771234567") in new stack [2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Executing [[email protected]:2] Set("SIP/66.193.176.35-00000002", "DID=17771234567") in new stack [2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Executing [[email protected]:3] Goto("SIP/66.193.176.35-00000002", "s,1") in new stack [2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Goto (from-sip-external-custom,s,1) [2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Executing [[email protected]:1] GotoIf("SIP/66.193.176.35-00000002", "1?callcentric") in new stack [2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Goto (from-sip-external-custom,s,3) [2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Executing [[email protected]:3] Set("SIP/66.193.176.35-00000002", "Var_FROM_DOMAIN=ss.callcentric.com") in new stack [2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Executing [[email protected]:4] GotoIf("SIP/66.193.176.35-00000002", "0?callcentric-next") in new stack [2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Executing [[email protected]:5] GotoIf("SIP/66.193.176.35-00000002", "1?callcentric-next") in new stack [2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Goto (from-sip-external-custom,s,7) [2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Executing [[email protected]:7] Set("SIP/66.193.176.35-00000002", "Var_TO_DID=15031234567") in new stack [2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Executing [[email protected]:8] GotoIf("SIP/66.193.176.35-00000002", "0?checklang") in new stack [2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Executing [[email protected]:9] Set("SIP/66.193.176.35-00000002", "DID=15031234567") in new stack [2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Executing [[email protected]xternal-custom:10] GotoIf("SIP/66.193.176.35-00000002", "0?setlanguage:from-trunk,15031234567,1") in new stack [2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Goto (from-trunk,15031234567,1) [2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Executing [[email protected]:1] Set("SIP/66.193.176.35-00000002", "__FROM_DID=15031234567") in new stack [2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Executing [[email protected]:2] NoOp("SIP/66.193.176.35-00000002", "Received an unknown call with DID set to 15031234567") in new stack [2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Executing [[email protected]:3] Goto("SIP/66.193.176.35-00000002", "s,a2") in new stack [2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Goto (from-trunk,s,2) [2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Executing [[email protected]:2] Answer("SIP/66.193.176.35-00000002", "") in new stack [2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Executing [[email protected]:3] Wait("SIP/66.193.176.35-00000002", "2") in new stack [2010-04-06 15:06:42] VERBOSE[17949] pbx.c: -- Executing [[email protected]:4] Playback("SIP/66.193.176.35-00000002", "ss-noservice") in new stack [2010-04-06 15:06:42] VERBOSE[17949] file.c: -- Playing 'ss-noservice.gsm' (language 'en') [2010-04-06 15:06:47] VERBOSE[17949] pbx.c: -- Executing [[email protected]:5] SayAlpha("SIP/66.193.176.35-00000002", "15031234567") in new stack [2010-04-06 15:06:47] VERBOSE[17949] file.c: -- Playing 'digits/1.gsm' (language 'en') [2010-04-06 15:06:47] VERBOSE[17949] file.c: -- Playing 'digits/5.gsm' (language 'en') [2010-04-06 15:06:48] VERBOSE[17949] pbx.c: == Spawn extension (from-trunk, s, 5) exited non-zero on 'SIP/66.193.176.35-00000002' [2010-04-06 15:06:48] VERBOSE[17949] pbx.c: -- Executing [[email protected]:1] Hangup("SIP/66.193.176.35-00000002", "") in new stack [2010-04-06 15:06:48] VERBOSE[17949] pbx.c: == Spawn extension (from-trunk, h, 1) exited non-zero on 'SIP/66.193.176.35-00000002'

It looks like it wants to go through but just goes to the ss-noservice, anybody have any idears or something else I should look at? Thanks in advance.

Cheers,
Eric

Have you setup your two DID’s in Inbound Routes? The one that you called, 17771234567, does not exist in the dial plan and you end up in ext-did-catchall.

If you type “dialplan show [email protected]” in Asterisk CLI you can see where the call goes to.

yup was something stupid… After a good nights sleep, and a clear head, this is what the problem was…

The CID was filled out in inbound routes, leaving the CID field blank resolved my issue.

Thanks Micke

PS

I changed all the phone numbers and callcentric numbers in that log to sanitize it :wink: