I am setting up the callcentric trunk in PIAF, the incoming is not working properly.
I setup the trunk using custom-get-did, described at http://pbxinaflash.com/community/threads/callcentric-incoming-did-routing-solved.5265/#post-32097
I think it is not finding the correct DID, I do not see it is executing the below lines
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)
Can any one help me to fix this.
The output of the log is showing like this:
[2010-11-14 16:36:01] VERBOSE[898] netsock2.c: == Using SIP RTP TOS bits 184
[2010-11-14 16:36:01] VERBOSE[898] netsock2.c: == Using SIP RTP CoS mark 5
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Executing [s@custom-get-did:1] GotoIf("SIP/66.193.176.35-00000000", "0?from-sip-external,,1") in new stack
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Executing [s@custom-get-did:2] NoOp("SIP/66.193.176.35-00000000", "Processing Account ") in new stack
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Executing [s@custom-get-did:3] Set("SIP/66.193.176.35-00000000", "[email protected]>") in new stack
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Executing [s@custom-get-did:4] NoOp("SIP/66.193.176.35-00000000", "Actual DID from SIP Header is [email protected]>") in new stack
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Executing [s@custom-get-did:5] Set("SIP/66.193.176.35-00000000", "DID=12489874429") in new stack
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Executing [s@custom-get-did:6] Goto("SIP/66.193.176.35-00000000", "from-trunk,12489874429,1") in new stack
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Goto (from-trunk,12489874429,1)
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Executing [12489874429@from-trunk:1] Set("SIP/66.193.176.35-00000000", "__FROM_DID=12489874429") in new stack
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Executing [12489874429@from-trunk:2] Gosub("SIP/66.193.176.35-00000000", "app-blacklist-check,s,1") in new stack
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Executing [s@app-blacklist-check:1] GotoIf("SIP/66.193.176.35-00000000", "0?blacklisted") in new stack
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Executing [s@app-blacklist-check:2] Set("SIP/66.193.176.35-00000000", "CALLED_BLACKLIST=1") in new stack
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Executing [s@app-blacklist-check:3] Return("SIP/66.193.176.35-00000000", "") in new stack
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Executing [12489874429@from-trunk:3] Gosub("SIP/66.193.176.35-00000000", "cidlookup,cidlookup_3,1") in new stack
[2010-11-14 16:36:02] VERBOSE[968] manager.c: == Manager 'admin' logged on from 127.0.0.1
[2010-11-14 16:36:05] VERBOSE[968] manager.c: == Manager 'admin' logged off from 127.0.0.1
[2010-11-14 16:36:05] VERBOSE[965] pbx.c: -- Executing [cidlookup_3@cidlookup:1] Set("SIP/66.193.176.35-00000000", "CALLERID(name)=ROYAL OAK, MI") in new stack
[2010-11-14 16:36:05] VERBOSE[965] pbx.c: -- Executing [cidlookup_3@cidlookup:2] Return("SIP/66.193.176.35-00000000", "") in new stack
[2010-11-14 16:36:05] VERBOSE[965] pbx.c: -- Executing [12489874429@from-trunk:4] ExecIf("SIP/66.193.176.35-00000000", "0 ?Set(CALLERID(name)=12487619339)") in new stack
[2010-11-14 16:36:05] WARNING[965] func_callerid.c: CALLERPRES is deprecated. Use CALLERID(name-pres) or CALLERID(num-pres) instead.
[2010-11-14 16:36:05] VERBOSE[965] pbx.c: -- Executing [12489874429@from-trunk:5] Set("SIP/66.193.176.35-00000000", "__CALLINGPRES_SV=allowed_not_screened") in new stack
[2010-11-14 16:36:05] VERBOSE[965] pbx.c: -- Executing [12489874429@from-trunk:6] Set("SIP/66.193.176.35-00000000", "CALLERPRES()=allowed_not_screened") in new stack
[2010-11-14 16:36:05] VERBOSE[965] pbx.c: -- Executing [12489874429@from-trunk:7] Goto("SIP/66.193.176.35-00000000", "from-did-direct,702,1") in new stack
[2010-11-14 16:36:05] VERBOSE[965] pbx.c: -- Goto (from-did-direct,702,1)
Thanks in advance,
Manyam
I setup the trunk using custom-get-did, described at http://pbxinaflash.com/community/threads/callcentric-incoming-did-routing-solved.5265/#post-32097
I think it is not finding the correct DID, I do not see it is executing the below lines
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)
Can any one help me to fix this.
The output of the log is showing like this:
[2010-11-14 16:36:01] VERBOSE[898] netsock2.c: == Using SIP RTP TOS bits 184
[2010-11-14 16:36:01] VERBOSE[898] netsock2.c: == Using SIP RTP CoS mark 5
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Executing [s@custom-get-did:1] GotoIf("SIP/66.193.176.35-00000000", "0?from-sip-external,,1") in new stack
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Executing [s@custom-get-did:2] NoOp("SIP/66.193.176.35-00000000", "Processing Account ") in new stack
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Executing [s@custom-get-did:3] Set("SIP/66.193.176.35-00000000", "[email protected]>") in new stack
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Executing [s@custom-get-did:4] NoOp("SIP/66.193.176.35-00000000", "Actual DID from SIP Header is [email protected]>") in new stack
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Executing [s@custom-get-did:5] Set("SIP/66.193.176.35-00000000", "DID=12489874429") in new stack
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Executing [s@custom-get-did:6] Goto("SIP/66.193.176.35-00000000", "from-trunk,12489874429,1") in new stack
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Goto (from-trunk,12489874429,1)
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Executing [12489874429@from-trunk:1] Set("SIP/66.193.176.35-00000000", "__FROM_DID=12489874429") in new stack
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Executing [12489874429@from-trunk:2] Gosub("SIP/66.193.176.35-00000000", "app-blacklist-check,s,1") in new stack
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Executing [s@app-blacklist-check:1] GotoIf("SIP/66.193.176.35-00000000", "0?blacklisted") in new stack
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Executing [s@app-blacklist-check:2] Set("SIP/66.193.176.35-00000000", "CALLED_BLACKLIST=1") in new stack
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Executing [s@app-blacklist-check:3] Return("SIP/66.193.176.35-00000000", "") in new stack
[2010-11-14 16:36:01] VERBOSE[965] pbx.c: -- Executing [12489874429@from-trunk:3] Gosub("SIP/66.193.176.35-00000000", "cidlookup,cidlookup_3,1") in new stack
[2010-11-14 16:36:02] VERBOSE[968] manager.c: == Manager 'admin' logged on from 127.0.0.1
[2010-11-14 16:36:05] VERBOSE[968] manager.c: == Manager 'admin' logged off from 127.0.0.1
[2010-11-14 16:36:05] VERBOSE[965] pbx.c: -- Executing [cidlookup_3@cidlookup:1] Set("SIP/66.193.176.35-00000000", "CALLERID(name)=ROYAL OAK, MI") in new stack
[2010-11-14 16:36:05] VERBOSE[965] pbx.c: -- Executing [cidlookup_3@cidlookup:2] Return("SIP/66.193.176.35-00000000", "") in new stack
[2010-11-14 16:36:05] VERBOSE[965] pbx.c: -- Executing [12489874429@from-trunk:4] ExecIf("SIP/66.193.176.35-00000000", "0 ?Set(CALLERID(name)=12487619339)") in new stack
[2010-11-14 16:36:05] WARNING[965] func_callerid.c: CALLERPRES is deprecated. Use CALLERID(name-pres) or CALLERID(num-pres) instead.
[2010-11-14 16:36:05] VERBOSE[965] pbx.c: -- Executing [12489874429@from-trunk:5] Set("SIP/66.193.176.35-00000000", "__CALLINGPRES_SV=allowed_not_screened") in new stack
[2010-11-14 16:36:05] VERBOSE[965] pbx.c: -- Executing [12489874429@from-trunk:6] Set("SIP/66.193.176.35-00000000", "CALLERPRES()=allowed_not_screened") in new stack
[2010-11-14 16:36:05] VERBOSE[965] pbx.c: -- Executing [12489874429@from-trunk:7] Goto("SIP/66.193.176.35-00000000", "from-did-direct,702,1") in new stack
[2010-11-14 16:36:05] VERBOSE[965] pbx.c: -- Goto (from-did-direct,702,1)
Thanks in advance,
Manyam
Last edited by a moderator: