Just did the upgrade to 2.8 and callcentric is broke. I have one SIP trunk with them and three DID’s
Right after the upgrade all incoming calls I get the asterisk server no service message. I have in my extensions_custom.conf I have the following to grab the DID’s from callcentric’s SIP headers to show the CID on my side…
[code]
[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}"=""]?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
[code]
And here is the input from an incoming call and see the fail…
[code]
– Executing [1777XXXXXXX@from-sip-external-custom:1] NoOp(“SIP/66.193.176.35-00000000”, “Received incoming SIP connection from unknown peer to 1777XXXXXXX”) in new stack
– Executing [1777XXXXXXX@from-sip-external-custom:2] Set(“SIP/66.193.176.35-00000000”, “DID=1777XXXXXXX”) in new stack
– Executing [1777XXXXXXX@from-sip-external-custom:3] Goto(“SIP/66.193.176.35-00000000”, “s,1”) in new stack
– Goto (from-sip-external-custom,s,1)
– Executing [s@from-sip-external-custom:1] GotoIf(“SIP/66.193.176.35-00000000”, “0?callcentric”) in new stack
– Executing [s@from-sip-external-custom:2] GotoIf(“SIP/66.193.176.35-00000000”, “0?checklang:noanonymous”) in new stack
– Goto (from-sip-external-custom,s,13)
– Executing [s@from-sip-external-custom:13] Set(“SIP/66.193.176.35-00000000”, “TIMEOUT(absolute)=15”) in new stack
Channel will hangup at 2010-08-31 16:21:47.638 PDT.
– Executing [s@from-sip-external-custom:14] Answer(“SIP/66.193.176.35-00000000”, “”) in new stack
– Executing [s@from-sip-external-custom:15] Wait(“SIP/66.193.176.35-00000000”, “2”) in new stack
– Executing [s@from-sip-external-custom:16] Playback(“SIP/66.193.176.35-00000000”, “ss-noservice”) in new stack
– <SIP/66.193.176.35-00000000> Playing ‘ss-noservice.gsm’ (language ‘en’)
– Executing [s@from-sip-external-custom:17] PlayTones(“SIP/66.193.176.35-00000000”, “congestion”) in new stack
– Executing [s@from-sip-external-custom:18] Congestion(“SIP/66.193.176.35-00000000”, “5”) in new stack
== Spawn extension (from-sip-external-custom, s, 18) exited non-zero on ‘SIP/66.193.176.35-00000000’
– Executing [h@from-sip-external-custom:1] Hangup(“SIP/66.193.176.35-00000000”, “”) in new stack
== Spawn extension (from-sip-external-custom, h, 1) exited non-zero on ‘SIP/66.193.176.35-00000000’
[code]
I think it’s just not getting the DID from the SIP headers any longer? Anybody have any ideas? I’m at a loss…
Thanks,
Eric