Inbound call will sometimes fail or sometimes work

Hi,

I am having random issues with my inbound route.

When I dial the inbound route, +41276179100 it goes to extension 1001, however sometimes I am getting “The number you have dialled is not in service” … I will then ring straight back and it will work.

My trace is below however I cannot see why it fails…

CH-GO-PBX-01*CLI>
== Setting global variable ‘SIPDOMAIN’ to ‘192.168.238.246’
– Executing [+41276179100@from-sip-external:1] NoOp(“PJSIP/anonymous-00000307”, “Received incoming SIP connection from unknown peer to +41276179100”) in new stack
– Executing [+41276179100@from-sip-external:2] Set(“PJSIP/anonymous-00000307”, “DID=+41276179100”) in new stack
– Executing [+41276179100@from-sip-external:3] Goto(“PJSIP/anonymous-00000307”, “s,1”) in new stack
– Goto (from-sip-external,s,1)
– Executing [s@from-sip-external:1] GotoIf(“PJSIP/anonymous-00000307”, “1?setlanguage:checkanon”) in new stack
– Goto (from-sip-external,s,2)
– Executing [s@from-sip-external:2] Set(“PJSIP/anonymous-00000307”, “CHANNEL(language)=en”) in new stack
– Executing [s@from-sip-external:3] GotoIf(“PJSIP/anonymous-00000307”, “1?noanonymous”) in new stack
– Goto (from-sip-external,s,5)
– Executing [s@from-sip-external:5] Set(“PJSIP/anonymous-00000307”, “TIMEOUT(absolute)=15”) in new stack
– Channel will hangup at 2019-08-07 13:39:43.604 UTC.
[2019-08-07 13:39:28] WARNING[4898][C-000001e4]: func_channel.c:460 func_channel_read: Unknown or unavailable item requested: ‘recvip’
– Executing [s@from-sip-external:6] Log(“PJSIP/anonymous-00000307”, "WARNING,"Rejecting unknown SIP connection from “”) in new stack
[2019-08-07 13:39:28] WARNING[4898][C-000001e4]: Ext. s:6 @ from-sip-external: "Rejecting unknown SIP connection from "
– Executing [s@from-sip-external:7] Answer(“PJSIP/anonymous-00000307”, “”) in new stack
> 0x7f062c2b5b70 – Strict RTP learning after remote address set to: 192.168.238.242:8474
> 0x7f062c2b5b70 – Strict RTP switching to RTP target address 192.168.238.242:8474 as source
– Executing [s@from-sip-external:8] Wait(“PJSIP/anonymous-00000307”, “2”) in new stack
– Executing [s@from-sip-external:9] Playback(“PJSIP/anonymous-00000307”, “ss-noservice”) in new stack
– <PJSIP/anonymous-00000307> Playing ‘ss-noservice.ulaw’ (language ‘en’)
– Executing [h@from-sip-external:1] Hangup(“PJSIP/anonymous-00000307”, “”) in new stack
== Spawn extension (from-sip-external, h, 1) exited non-zero on ‘PJSIP/anonymous-00000307’

Thanks

Your trunk is mis-configured. Inbound calls are being treated as anonymous.

But would this work sometime if misconfigured? I can see the SIP trunk is online and it passes the call to my PBX…

A working example does not display that message… could this be a misconfiguration from the SIP provider?

CH-GO-PBX-01*CLI>
== Setting global variable ‘SIPDOMAIN’ to ‘192.168.238.246’
– Executing [+41276179100@from-pstn:1] Set(“PJSIP/to_swisscom_sec-00000019”, “__DIRECTION=INBOUND”) in new stack
– Executing [+41276179100@from-pstn:2] Gosub(“PJSIP/to_swisscom_sec-00000019”, “sub-record-check,s,1(in,+41276179100,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“PJSIP/to_swisscom_sec-00000019”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“PJSIP/to_swisscom_sec-00000019”, “NOW=1565186322”) in new stack
– Executing [s@sub-record-check:4] Set(“PJSIP/to_swisscom_sec-00000019”, “__DAY=07”) in new stack
– Executing [s@sub-record-check:5] Set(“PJSIP/to_swisscom_sec-00000019”, “__MONTH=08”) in new stack
– Executing [s@sub-record-check:6] Set(“PJSIP/to_swisscom_sec-00000019”, “__YEAR=2019”) in new stack
– Executing [s@sub-record-check:7] Set(“PJSIP/to_swisscom_sec-00000019”, “__TIMESTR=20190807-135842”) in new stack
– Executing [s@sub-record-check:8] Set(“PJSIP/to_swisscom_sec-00000019”, “__FROMEXTEN=unknown”) in new stack
– Executing [s@sub-record-check:9] Set(“PJSIP/to_swisscom_sec-00000019”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“PJSIP/to_swisscom_sec-00000019”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“PJSIP/to_swisscom_sec-00000019”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “2?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?sub-record-check,in,1”) in new stack
– Goto (sub-record-check,in,1)
– Executing [in@sub-record-check:1] NoOp(“PJSIP/to_swisscom_sec-00000019”, “Inbound Recording Check to +41276179100”) in new stack
– Executing [in@sub-record-check:2] Set(“PJSIP/to_swisscom_sec-00000019”, “FROMEXTEN=unknown”) in new stack
– Executing [in@sub-record-check:3] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “13?Set(FROMEXTEN=+447834987586)”) in new stack
– Executing [in@sub-record-check:4] Gosub(“PJSIP/to_swisscom_sec-00000019”, “recordcheck,1(dontcare,in,+41276179100)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“PJSIP/to_swisscom_sec-00000019”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“PJSIP/to_swisscom_sec-00000019”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“PJSIP/to_swisscom_sec-00000019”, “”) in new stack
– Executing [in@sub-record-check:5] Return(“PJSIP/to_swisscom_sec-00000019”, “”) in new stack
– Executing [+41276179100@from-pstn:3] Set(“PJSIP/to_swisscom_sec-00000019”, “CHANNEL(tonezone)=us”) in new stack
– Executing [+41276179100@from-pstn:4] Set(“PJSIP/to_swisscom_sec-00000019”, “__FROM_DID=+41276179100”) in new stack
– Executing [+41276179100@from-pstn:5] Set(“PJSIP/to_swisscom_sec-00000019”, “returnhere=1”) in new stack
– Executing [+41276179100@from-pstn:6] Gosub(“PJSIP/to_swisscom_sec-00000019”, “app-blacklist-check,s,1()”) in new stack
– Executing [s@app-blacklist-check:1] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?blacklisted”) in new stack
– Executing [s@app-blacklist-check:2] Set(“PJSIP/to_swisscom_sec-00000019”, “CALLED_BLACKLIST=1”) in new stack
– Executing [s@app-blacklist-check:3] Return(“PJSIP/to_swisscom_sec-00000019”, “”) in new stack
– Executing [+41276179100@from-pstn:7] Set(“PJSIP/to_swisscom_sec-00000019”, “CDR(did)=+41276179100”) in new stack
– Executing [+41276179100@from-pstn:8] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?”) in new stack
– Executing [+41276179100@from-pstn:9] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “1 ?Set(CALLERID(name)=+447834987586)”) in new stack
– Executing [+41276179100@from-pstn:10] Set(“PJSIP/to_swisscom_sec-00000019”, “__MOHCLASS=”) in new stack
– Executing [+41276179100@from-pstn:11] Set(“PJSIP/to_swisscom_sec-00000019”, “__REVERSAL_REJECT=FALSE”) in new stack
– Executing [+41276179100@from-pstn:12] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?post-reverse-charge”) in new stack
– Goto (from-pstn,+41276179100,14)
– Executing [+41276179100@from-pstn:14] NoOp(“PJSIP/to_swisscom_sec-00000019”, “”) in new stack
– Executing [+41276179100@from-pstn:15] Set(“PJSIP/to_swisscom_sec-00000019”, “__CALLINGNAMEPRES_SV=allowed_not_screened”) in new stack
– Executing [+41276179100@from-pstn:16] Set(“PJSIP/to_swisscom_sec-00000019”, “__CALLINGNUMPRES_SV=allowed_not_screened”) in new stack
– Executing [+41276179100@from-pstn:17] Set(“PJSIP/to_swisscom_sec-00000019”, “CALLERID(name-pres)=allowed_not_screened”) in new stack
– Executing [+41276179100@from-pstn:18] Set(“PJSIP/to_swisscom_sec-00000019”, “CALLERID(num-pres)=allowed_not_screened”) in new stack
– Executing [+41276179100@from-pstn:19] NoOp(“PJSIP/to_swisscom_sec-00000019”, “CallerID Entry Point”) in new stack
– Executing [+41276179100@from-pstn:20] Set(“PJSIP/to_swisscom_sec-00000019”, “__CRM_DIRECTION=INBOUND”) in new stack
– Executing [+41276179100@from-pstn:21] Set(“PJSIP/to_swisscom_sec-00000019”, “__CRM_SOURCE=+447834987586”) in new stack
– Executing [+41276179100@from-pstn:22] Set(“PJSIP/to_swisscom_sec-00000019”, “__CRM_LINKEDID=1565186322.25”) in new stack
– Executing [+41276179100@from-pstn:23] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “1?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [+41276179100@from-pstn:24] Goto(“PJSIP/to_swisscom_sec-00000019”, “from-did-direct,1001,1”) in new stack
– Goto (from-did-direct,1001,1)
– Executing [1001@from-did-direct:1] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?ext-local,1001,1:followme-check,1001,1”) in new stack
– Goto (ext-local,1001,1)
– Executing [1001@ext-local:1] Set(“PJSIP/to_swisscom_sec-00000019”, “__RINGTIMER=15”) in new stack
– Executing [1001@ext-local:2] Macro(“PJSIP/to_swisscom_sec-00000019”, “exten-vm,novm,1001,0,0,0”) in new stack
– Executing [s@macro-exten-vm:1] Macro(“PJSIP/to_swisscom_sec-00000019”, “user-callerid,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“PJSIP/to_swisscom_sec-00000019”, “TOUCH_MONITOR=1565186322.25”) in new stack
– Executing [s@macro-user-callerid:2] Set(“PJSIP/to_swisscom_sec-00000019”, “AMPUSER=+447834987586”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “1?Set(REALCALLERIDNUM=+447834987586)”) in new stack
– Executing [s@macro-user-callerid:5] Set(“PJSIP/to_swisscom_sec-00000019”, “AMPUSER=”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:7] Set(“PJSIP/to_swisscom_sec-00000019”, “AMPUSERCIDNAME=”) in new stack
– Executing [s@macro-user-callerid:8] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [s@macro-user-callerid:9] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?report”) in new stack
– Goto (macro-user-callerid,s,16)
– Executing [s@macro-user-callerid:16] NoOp(“PJSIP/to_swisscom_sec-00000019”, “Macro Depth is 2”) in new stack
– Executing [s@macro-user-callerid:17] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,18)
– Executing [s@macro-user-callerid:18] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?continue”) in new stack
– Executing [s@macro-user-callerid:19] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “1?Set(__CALLEE_ACCOUNCODE=)”) in new stack
– Executing [s@macro-user-callerid:20] Set(“PJSIP/to_swisscom_sec-00000019”, “__TTL=64”) in new stack
– Executing [s@macro-user-callerid:21] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,37)
– Executing [s@macro-user-callerid:37] Set(“PJSIP/to_swisscom_sec-00000019”, “CALLERID(number)=+447834987586”) in new stack
– Executing [s@macro-user-callerid:38] Set(“PJSIP/to_swisscom_sec-00000019”, “CALLERID(name)=+447834987586”) in new stack
– Executing [s@macro-user-callerid:39] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?cnum”) in new stack
– Executing [s@macro-user-callerid:40] Set(“PJSIP/to_swisscom_sec-00000019”, “CDR(cnam)=+447834987586”) in new stack
– Executing [s@macro-user-callerid:41] Set(“PJSIP/to_swisscom_sec-00000019”, “CDR(cnum)=+447834987586”) in new stack
– Executing [s@macro-user-callerid:42] Set(“PJSIP/to_swisscom_sec-00000019”, “CHANNEL(language)=en”) in new stack
– Executing [s@macro-exten-vm:2] Set(“PJSIP/to_swisscom_sec-00000019”, “RingGroupMethod=none”) in new stack
– Executing [s@macro-exten-vm:3] Set(“PJSIP/to_swisscom_sec-00000019”, “__EXTTOCALL=1001”) in new stack
– Executing [s@macro-exten-vm:4] Set(“PJSIP/to_swisscom_sec-00000019”, “__PICKUPMARK=1001”) in new stack
– Executing [s@macro-exten-vm:5] Set(“PJSIP/to_swisscom_sec-00000019”, “RT=”) in new stack
[2019-08-07 13:58:42] WARNING[14940][C-00000011]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:6] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Macro(vm,novm,DIRECTDIAL,)”) in new stack
[2019-08-07 13:58:42] WARNING[14940][C-00000011]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
[2019-08-07 13:58:42] WARNING[14940][C-00000011]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:7] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?MacroExit()”) in new stack
[2019-08-07 13:58:42] WARNING[14940][C-00000011]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
[2019-08-07 13:58:42] WARNING[14940][C-00000011]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:8] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Gosub(ext-intercom,*801001,1())”) in new stack
[2019-08-07 13:58:42] WARNING[14940][C-00000011]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
[2019-08-07 13:58:42] WARNING[14940][C-00000011]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:9] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?MacroExit()”) in new stack
[2019-08-07 13:58:42] WARNING[14940][C-00000011]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
[2019-08-07 13:58:42] WARNING[14940][C-00000011]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:10] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?ChanSpy(PJSIP/1001,q)”) in new stack
[2019-08-07 13:58:42] WARNING[14940][C-00000011]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
[2019-08-07 13:58:42] WARNING[14940][C-00000011]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:11] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?MacroExit()”) in new stack
[2019-08-07 13:58:42] WARNING[14940][C-00000011]: chan_sip.c:22996 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:12] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Macro(vm,novm,DIRECTDIAL,)”) in new stack
– Executing [s@macro-exten-vm:13] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:14] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Gosub(ext-intercom,*801001,1())”) in new stack
– Executing [s@macro-exten-vm:15] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:16] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?ChanSpy(PJSIP/1001,q)”) in new stack
– Executing [s@macro-exten-vm:17] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:18] Gosub(“PJSIP/to_swisscom_sec-00000019”, “sub-record-check,s,1(exten,1001,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “13?initialized”) in new stack
– Goto (sub-record-check,s,10)
– Executing [s@sub-record-check:10] NoOp(“PJSIP/to_swisscom_sec-00000019”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“PJSIP/to_swisscom_sec-00000019”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “5?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?sub-record-check,exten,1”) in new stack
– Goto (sub-record-check,exten,1)
– Executing [exten@sub-record-check:1] NoOp(“PJSIP/to_swisscom_sec-00000019”, “Exten Recording Check between +447834987586 and 1001”) in new stack
– Executing [exten@sub-record-check:2] Set(“PJSIP/to_swisscom_sec-00000019”, “CALLTYPE=external”) in new stack
– Executing [exten@sub-record-check:3] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(CALLTYPE=)”) in new stack
– Executing [exten@sub-record-check:4] Set(“PJSIP/to_swisscom_sec-00000019”, “CALLEE=dontcare”) in new stack
– Executing [exten@sub-record-check:5] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(CALLEE=dontcare)”) in new stack
– Executing [exten@sub-record-check:6] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?callee”) in new stack
– Goto (sub-record-check,exten,11)
– Executing [exten@sub-record-check:11] Gosub(“PJSIP/to_swisscom_sec-00000019”, “recordcheck,1(dontcare,external,1001)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“PJSIP/to_swisscom_sec-00000019”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“PJSIP/to_swisscom_sec-00000019”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“PJSIP/to_swisscom_sec-00000019”, “”) in new stack
– Executing [exten@sub-record-check:12] Return(“PJSIP/to_swisscom_sec-00000019”, “”) in new stack
– Executing [s@macro-exten-vm:19] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?macrodial”) in new stack
– Goto (macro-exten-vm,s,25)
– Executing [s@macro-exten-vm:25] GosubIf(“PJSIP/to_swisscom_sec-00000019”, “0?clrheader,1()”) in new stack
– Executing [s@macro-exten-vm:26] Macro(“PJSIP/to_swisscom_sec-00000019”, “dial-one,HhTtr,1001”) in new stack
– Executing [s@macro-dial-one:1] Set(“PJSIP/to_swisscom_sec-00000019”, “DEXTEN=1001”) in new stack
– Executing [s@macro-dial-one:2] Set(“PJSIP/to_swisscom_sec-00000019”, “__CRM_SOURCE=+447834987586”) in new stack
– Executing [s@macro-dial-one:3] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(__EXTTOCALL=1001)”) in new stack
– Executing [s@macro-dial-one:4] Set(“PJSIP/to_swisscom_sec-00000019”, “DIALSTATUS_CW=”) in new stack
– Executing [s@macro-dial-one:5] GosubIf(“PJSIP/to_swisscom_sec-00000019”, “0?screen,1()”) in new stack
– Executing [s@macro-dial-one:6] GosubIf(“PJSIP/to_swisscom_sec-00000019”, “0?cf,1()”) in new stack
– Executing [s@macro-dial-one:7] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,10)
– Executing [s@macro-dial-one:10] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:11] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?continue”) in new stack
– Executing [s@macro-dial-one:12] Set(“PJSIP/to_swisscom_sec-00000019”, “EXTHASCW=ENABLED”) in new stack
– Executing [s@macro-dial-one:13] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,25)
– Executing [s@macro-dial-one:25] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?next3:continue”) in new stack
– Goto (macro-dial-one,s,27)
– Executing [s@macro-dial-one:27] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:28] GosubIf(“PJSIP/to_swisscom_sec-00000019”, “1?dstring,1():dlocal,1()”) in new stack
– Executing [dstring@macro-dial-one:1] Set(“PJSIP/to_swisscom_sec-00000019”, “DSTRING=”) in new stack
– Executing [dstring@macro-dial-one:2] Set(“PJSIP/to_swisscom_sec-00000019”, “DEVICES=1001”) in new stack
– Executing [dstring@macro-dial-one:3] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Return()”) in new stack
– Executing [dstring@macro-dial-one:4] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(DEVICES=001)”) in new stack
– Executing [dstring@macro-dial-one:5] Set(“PJSIP/to_swisscom_sec-00000019”, “LOOPCNT=1”) in new stack
– Executing [dstring@macro-dial-one:6] Set(“PJSIP/to_swisscom_sec-00000019”, “ITER=1”) in new stack
– Executing [dstring@macro-dial-one:7] Set(“PJSIP/to_swisscom_sec-00000019”, “THISDIAL=PJSIP/1001”) in new stack
– Executing [dstring@macro-dial-one:8] GosubIf(“PJSIP/to_swisscom_sec-00000019”, “1?zap2dahdi,1()”) in new stack
– Executing [zap2dahdi@macro-dial-one:1] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Return()”) in new stack
– Executing [zap2dahdi@macro-dial-one:2] Set(“PJSIP/to_swisscom_sec-00000019”, “NEWDIAL=”) in new stack
– Executing [zap2dahdi@macro-dial-one:3] Set(“PJSIP/to_swisscom_sec-00000019”, “LOOPCNT2=1”) in new stack
– Executing [zap2dahdi@macro-dial-one:4] Set(“PJSIP/to_swisscom_sec-00000019”, “ITER2=1”) in new stack
– Executing [zap2dahdi@macro-dial-one:5] Set(“PJSIP/to_swisscom_sec-00000019”, “THISPART2=PJSIP/1001”) in new stack
– Executing [zap2dahdi@macro-dial-one:6] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(THISPART2=DAHDIIP/1001)”) in new stack
– Executing [zap2dahdi@macro-dial-one:7] Set(“PJSIP/to_swisscom_sec-00000019”, “NEWDIAL=PJSIP/1001&”) in new stack
– Executing [zap2dahdi@macro-dial-one:8] Set(“PJSIP/to_swisscom_sec-00000019”, “ITER2=2”) in new stack
– Executing [zap2dahdi@macro-dial-one:9] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?begin2”) in new stack
– Executing [zap2dahdi@macro-dial-one:10] Set(“PJSIP/to_swisscom_sec-00000019”, “THISDIAL=PJSIP/1001”) in new stack
– Executing [zap2dahdi@macro-dial-one:11] Return(“PJSIP/to_swisscom_sec-00000019”, “”) in new stack
– Executing [dstring@macro-dial-one:9] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?docheck”) in new stack
– Executing [dstring@macro-dial-one:10] NoOp(“PJSIP/to_swisscom_sec-00000019”, “Debug: Found PJSIP Destination PJSIP/1001”) in new stack
– Executing [dstring@macro-dial-one:11] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?doset”) in new stack
– Executing [dstring@macro-dial-one:12] NoOp(“PJSIP/to_swisscom_sec-00000019”, “Debug: Updating PJSIP Destination with PJSIP_DIAL_CONTACTS”) in new stack
– Executing [dstring@macro-dial-one:13] Set(“PJSIP/to_swisscom_sec-00000019”, “THISDIAL=PJSIP/1001/sip:[email protected]:5060”) in new stack
– Executing [dstring@macro-dial-one:14] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(DIALSTATUS=CHANUNAVAIL)”) in new stack
– Executing [dstring@macro-dial-one:15] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?skipset”) in new stack
– Executing [dstring@macro-dial-one:16] Set(“PJSIP/to_swisscom_sec-00000019”, “DSTRING=PJSIP/1001/sip:[email protected]:5060&”) in new stack
– Executing [dstring@macro-dial-one:17] Set(“PJSIP/to_swisscom_sec-00000019”, “ITER=2”) in new stack
– Executing [dstring@macro-dial-one:18] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?begin”) in new stack
– Executing [dstring@macro-dial-one:19] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Return()”) in new stack
– Executing [dstring@macro-dial-one:20] Set(“PJSIP/to_swisscom_sec-00000019”, “DSTRING=PJSIP/1001/sip:[email protected]:5060”) in new stack
– Executing [dstring@macro-dial-one:21] Return(“PJSIP/to_swisscom_sec-00000019”, “”) in new stack
– Executing [s@macro-dial-one:29] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:30] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?skiptrace”) in new stack
– Executing [s@macro-dial-one:31] GosubIf(“PJSIP/to_swisscom_sec-00000019”, “1?ctset,1():ctclear,1()”) in new stack
– Executing [ctset@macro-dial-one:1] Set(“PJSIP/to_swisscom_sec-00000019”, “DB(CALLTRACE/1001)=+447834987586”) in new stack
– Executing [ctset@macro-dial-one:2] Return(“PJSIP/to_swisscom_sec-00000019”, “”) in new stack
– Executing [s@macro-dial-one:32] Set(“PJSIP/to_swisscom_sec-00000019”, “D_OPTIONS=HhTtr”) in new stack
– Executing [s@macro-dial-one:33] GosubIf(“PJSIP/to_swisscom_sec-00000019”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
– Executing [s@macro-dial-one:34] NoOp(“PJSIP/to_swisscom_sec-00000019”, "Blind Transfer: , Attended Transfer: , User: , Alert Info: ") in new stack
– Executing [s@macro-dial-one:35] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [s@macro-dial-one:36] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [s@macro-dial-one:37] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [s@macro-dial-one:38] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(ALERT_INFO=Normal;volume=)”) in new stack
– Executing [s@macro-dial-one:39] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(ALERT_INFO=Normal;volume=)”) in new stack
– Executing [s@macro-dial-one:40] GosubIf(“PJSIP/to_swisscom_sec-00000019”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
– Executing [s@macro-dial-one:41] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(CHANNEL(musicclass)=)”) in new stack
– Executing [s@macro-dial-one:42] GosubIf(“PJSIP/to_swisscom_sec-00000019”, “0?qwait,1()”) in new stack
– Executing [s@macro-dial-one:43] Set(“PJSIP/to_swisscom_sec-00000019”, “__CWIGNORE=”) in new stack
– Executing [s@macro-dial-one:44] Set(“PJSIP/to_swisscom_sec-00000019”, “__KEEPCID=TRUE”) in new stack
– Executing [s@macro-dial-one:45] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?usegoto,1”) in new stack
– Executing [s@macro-dial-one:46] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?godial”) in new stack
– Goto (macro-dial-one,s,51)
– Executing [s@macro-dial-one:51] Macro(“PJSIP/to_swisscom_sec-00000019”, “dialout-one-predial-hook,”) in new stack
– Executing [s@macro-dialout-one-predial-hook:1] MacroExit(“PJSIP/to_swisscom_sec-00000019”, “”) in new stack
– Executing [s@macro-dial-one:52] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “1?Set(D_OPTIONS=HhtrI)”) in new stack
– Executing [s@macro-dial-one:53] NoOp(“PJSIP/to_swisscom_sec-00000019”, “”) in new stack
– Executing [s@macro-dial-one:54] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(D_OPTIONS=HhtrIg)”) in new stack
– Executing [s@macro-dial-one:55] Dial(“PJSIP/to_swisscom_sec-00000019”, “PJSIP/1001/sip:[email protected]:5060,HhtrIb(func-apply-sipheaders^s^1)”) in new stack
– PJSIP/1001-0000001a Internal Gosub(func-apply-sipheaders,s,1) start
– Executing [s@func-apply-sipheaders:1] ExecIf(“PJSIP/1001-0000001a”, “1?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [s@func-apply-sipheaders:2] NoOp(“PJSIP/1001-0000001a”, “Applying SIP Headers to channel PJSIP/1001-0000001a”) in new stack
– Executing [s@func-apply-sipheaders:3] Set(“PJSIP/1001-0000001a”, “TECH=PJSIP”) in new stack
– Executing [s@func-apply-sipheaders:4] Set(“PJSIP/1001-0000001a”, “SIPHEADERKEYS=”) in new stack
– Executing [s@func-apply-sipheaders:5] While(“PJSIP/1001-0000001a”, “0”) in new stack
– Jumping to priority 12
– Executing [s@func-apply-sipheaders:13] Return(“PJSIP/1001-0000001a”, “”) in new stack
== Spawn extension (from-internal, 1001, 1) exited non-zero on ‘PJSIP/1001-0000001a’
– PJSIP/1001-0000001a Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
– Called PJSIP/1001/sip:[email protected]:5060
== Using SIP RTP Audio TOS bits 184
== Using SIP RTP Audio TOS bits 184 in TCLASS field.
== Using SIP RTP Audio CoS mark 5
– Connected line update to PJSIP/to_swisscom_sec-00000019 prevented.
– PJSIP/1001-0000001a is ringing
– PJSIP/1001-0000001a is ringing
– PJSIP/1001-0000001a Internal Gosub(crm-hangup,s,1) start
– Executing [s@crm-hangup:1] NoOp(“PJSIP/1001-0000001a”, “Sending Hangup to CRM”) in new stack
– Executing [s@crm-hangup:2] NoOp(“PJSIP/1001-0000001a”, “HANGUP CAUSE: 0”) in new stack
– Executing [s@crm-hangup:3] ExecIf(“PJSIP/1001-0000001a”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
– Executing [s@crm-hangup:4] NoOp(“PJSIP/1001-0000001a”, “MASTER CHANNEL: 1565186322.26 = 1565186322.25”) in new stack
– Executing [s@crm-hangup:5] GotoIf(“PJSIP/1001-0000001a”, “1?return”) in new stack
– Goto (crm-hangup,s,8)
– Executing [s@crm-hangup:8] Return(“PJSIP/1001-0000001a”, “”) in new stack
== Spawn extension (from-internal, 1001, 1) exited non-zero on ‘PJSIP/1001-0000001a’
– PJSIP/1001-0000001a Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
== Spawn extension (macro-dial-one, s, 55) exited non-zero on ‘PJSIP/to_swisscom_sec-00000019’ in macro ‘dial-one’
== Spawn extension (macro-exten-vm, s, 26) exited non-zero on ‘PJSIP/to_swisscom_sec-00000019’ in macro ‘exten-vm’
== Spawn extension (ext-local, 1001, 2) exited non-zero on ‘PJSIP/to_swisscom_sec-00000019’
– Executing [h@ext-local:1] Macro(“PJSIP/to_swisscom_sec-00000019”, “hangupcall,”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [s@macro-hangupcall:4] NoOp(“PJSIP/to_swisscom_sec-00000019”, "PJSIP/1001-0000001a montior file= ") in new stack
– Executing [s@macro-hangupcall:5] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?skipagi”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [s@macro-hangupcall:7] Hangup(“PJSIP/to_swisscom_sec-00000019”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 7) exited non-zero on ‘PJSIP/to_swisscom_sec-00000019’ in macro ‘hangupcall’
== Spawn extension (ext-local, h, 1) exited non-zero on ‘PJSIP/to_swisscom_sec-00000019’
– PJSIP/to_swisscom_sec-00000019 Internal Gosub(crm-hangup,s,1) start
– Executing [s@crm-hangup:1] NoOp(“PJSIP/to_swisscom_sec-00000019”, “Sending Hangup to CRM”) in new stack
– Executing [s@crm-hangup:2] NoOp(“PJSIP/to_swisscom_sec-00000019”, “HANGUP CAUSE: 31”) in new stack
– Executing [s@crm-hangup:3] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
– Executing [s@crm-hangup:4] NoOp(“PJSIP/to_swisscom_sec-00000019”, “MASTER CHANNEL: 1565186322.25 = 1565186322.25”) in new stack
– Executing [s@crm-hangup:5] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?return”) in new stack
– Executing [s@crm-hangup:6] Set(“PJSIP/to_swisscom_sec-00000019”, “__CRM_HANGUP=1”) in new stack
– Executing [s@crm-hangup:7] AGI(“PJSIP/to_swisscom_sec-00000019”, “sangomacrm.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
– <PJSIP/to_swisscom_sec-00000019>AGI Script sangomacrm.agi completed, returning 0
– Executing [s@crm-hangup:8] Return(“PJSIP/to_swisscom_sec-00000019”, “”) in new stack
== Spawn extension (ext-local, h, 1) exited non-zero on ‘PJSIP/to_swisscom_sec-00000019’
– PJSIP/to_swisscom_sec-00000019 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=

The provider may send calls to you from various IP addresses. It may be that one call is matched as expected based on the IP address, while another uses a different IP address and thus is considered anonymous. You need to configure the trunk accordingly with the IP addresses or their subnets.

Hi, where would I configure the trunk to allow for different ip addresses/ subnets?

Usually I allow all calls from the provider and do not reject based off ip address…

Thanks
Anthony

@lgaetz can likely answer. I just work on Asterisk. :smiley:

Edit PJSIP Trunk, PJSIP settings tab, Advanced tab, Match (Permit). Multiple entries separated by commas. Note that entries in this field are not automatically white listed in firewall as you might expect.
https://issues.freepbx.org/browse/FREEPBX-18741

1 Like

Thanks, this is strange. At the moment, I do not use authenticate (set to none in PJSIP trunk settings), and " Match" is set to default…therefore shouldn’t it allow all calls?

This is a PJ-SIP Misconfiguration. You need to add all of the providers IP addresses to the “matching” field (bottom of the first config stanza).

1 Like

I was looking at Match Inbound Authentication… sorry my bad… I will try listing the known ips of the SBC from the SIP provider…

For this to work, do i need to enable inbound authentication?

Your own testing will confirm, but I would not expect to change whatever setting you have in place now.

2 Likes

@lgaetz/ @cynjut thanks for your help.

Using match in PJSIP advanced settings has worked.

I have two sip trunks setup or primary and secondary - so I thought the call would route over either of my sip trunks rather than just one.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.