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 [17771234567@from-sip-external-custom: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 [17771234567@from-sip-external-custom:2] Set("SIP/66.193.176.35-00000002", "DID=17771234567") in new stack
[2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Executing [17771234567@from-sip-external-custom: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 [s@from-sip-external-custom: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 [s@from-sip-external-custom: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 [s@from-sip-external-custom: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 [s@from-sip-external-custom: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 [s@from-sip-external-custom: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 [s@from-sip-external-custom:8] GotoIf("SIP/66.193.176.35-00000002", "0?checklang") in new stack
[2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Executing [s@from-sip-external-custom:9] Set("SIP/66.193.176.35-00000002", "DID=15031234567") in new stack
[2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Executing [s@from-sip-external-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 [15031234567@from-trunk: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 [15031234567@from-trunk: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 [15031234567@from-trunk: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 [s@from-trunk:2] Answer("SIP/66.193.176.35-00000002", "") in new stack
[2010-04-06 15:06:39] VERBOSE[17949] pbx.c: -- Executing [s@from-trunk:3] Wait("SIP/66.193.176.35-00000002", "2") in new stack
[2010-04-06 15:06:42] VERBOSE[17949] pbx.c: -- Executing [s@from-trunk: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 [s@from-trunk: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 [h@from-trunk: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