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 [[email protected]:1] NoOp(“PJSIP/anonymous-00000307”, “Received incoming SIP connection from unknown peer to +41276179100”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/anonymous-00000307”, “DID=+41276179100”) in new stack
– Executing [[email protected]:3] Goto(“PJSIP/anonymous-00000307”, “s,1”) in new stack
– Goto (from-sip-external,s,1)
– Executing [[email protected]:1] GotoIf(“PJSIP/anonymous-00000307”, “1?setlanguage:checkanon”) in new stack
– Goto (from-sip-external,s,2)
– Executing [[email protected]:2] Set(“PJSIP/anonymous-00000307”, “CHANNEL(language)=en”) in new stack
– Executing [[email protected]:3] GotoIf(“PJSIP/anonymous-00000307”, “1?noanonymous”) in new stack
– Goto (from-sip-external,s,5)
– Executing [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]:8] Wait(“PJSIP/anonymous-00000307”, “2”) in new stack
– Executing [[email protected]:9] Playback(“PJSIP/anonymous-00000307”, “ss-noservice”) in new stack
– <PJSIP/anonymous-00000307> Playing ‘ss-noservice.ulaw’ (language ‘en’)
– Executing [[email protected]: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 [[email protected]:1] Set(“PJSIP/to_swisscom_sec-00000019”, “__DIRECTION=INBOUND”) in new stack
– Executing [[email protected]:2] Gosub(“PJSIP/to_swisscom_sec-00000019”, “sub-record-check,s,1(in,+41276179100,dontcare)”) in new stack
– Executing [[email protected]:1] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?initialized”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/to_swisscom_sec-00000019”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/to_swisscom_sec-00000019”, “NOW=1565186322”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/to_swisscom_sec-00000019”, “__DAY=07”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/to_swisscom_sec-00000019”, “__MONTH=08”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/to_swisscom_sec-00000019”, “__YEAR=2019”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/to_swisscom_sec-00000019”, “__TIMESTR=20190807-135842”) in new stack
– Executing [[email protected]:8] Set(“PJSIP/to_swisscom_sec-00000019”, “__FROMEXTEN=unknown”) in new stack
– Executing [[email protected]:9] Set(“PJSIP/to_swisscom_sec-00000019”, “__MON_FMT=wav”) in new stack
– Executing [[email protected]:10] NoOp(“PJSIP/to_swisscom_sec-00000019”, “Recordings initialized”) in new stack
– Executing [[email protected]:11] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [[email protected]:12] Set(“PJSIP/to_swisscom_sec-00000019”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [[email protected]:13] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [[email protected]:14] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “2?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [[email protected]:17] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?sub-record-check,in,1”) in new stack
– Goto (sub-record-check,in,1)
– Executing [[email protected]:1] NoOp(“PJSIP/to_swisscom_sec-00000019”, “Inbound Recording Check to +41276179100”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/to_swisscom_sec-00000019”, “FROMEXTEN=unknown”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “13?Set(FROMEXTEN=+447834987586)”) in new stack
– Executing [[email protected]:4] Gosub(“PJSIP/to_swisscom_sec-00000019”, “recordcheck,1(dontcare,in,+41276179100)”) in new stack
– Executing [[email protected]:1] NoOp(“PJSIP/to_swisscom_sec-00000019”, “Starting recording check against dontcare”) in new stack
– Executing [[email protected]:2] Goto(“PJSIP/to_swisscom_sec-00000019”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [[email protected]:3] Return(“PJSIP/to_swisscom_sec-00000019”, “”) in new stack
– Executing [[email protected]:5] Return(“PJSIP/to_swisscom_sec-00000019”, “”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/to_swisscom_sec-00000019”, “CHANNEL(tonezone)=us”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/to_swisscom_sec-00000019”, “__FROM_DID=+41276179100”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/to_swisscom_sec-00000019”, “returnhere=1”) in new stack
– Executing [[email protected]:6] Gosub(“PJSIP/to_swisscom_sec-00000019”, “app-blacklist-check,s,1()”) in new stack
– Executing [[email protected]:1] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?blacklisted”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/to_swisscom_sec-00000019”, “CALLED_BLACKLIST=1”) in new stack
– Executing [[email protected]:3] Return(“PJSIP/to_swisscom_sec-00000019”, “”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/to_swisscom_sec-00000019”, “CDR(did)=+41276179100”) in new stack
– Executing [[email protected]:8] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?”) in new stack
– Executing [[email protected]:9] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “1 ?Set(CALLERID(name)=+447834987586)”) in new stack
– Executing [[email protected]:10] Set(“PJSIP/to_swisscom_sec-00000019”, “__MOHCLASS=”) in new stack
– Executing [[email protected]:11] Set(“PJSIP/to_swisscom_sec-00000019”, “__REVERSAL_REJECT=FALSE”) in new stack
– Executing [[email protected]:12] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?post-reverse-charge”) in new stack
– Goto (from-pstn,+41276179100,14)
– Executing [[email protected]:14] NoOp(“PJSIP/to_swisscom_sec-00000019”, “”) in new stack
– Executing [[email protected]:15] Set(“PJSIP/to_swisscom_sec-00000019”, “__CALLINGNAMEPRES_SV=allowed_not_screened”) in new stack
– Executing [[email protected]:16] Set(“PJSIP/to_swisscom_sec-00000019”, “__CALLINGNUMPRES_SV=allowed_not_screened”) in new stack
– Executing [[email protected]:17] Set(“PJSIP/to_swisscom_sec-00000019”, “CALLERID(name-pres)=allowed_not_screened”) in new stack
– Executing [[email protected]:18] Set(“PJSIP/to_swisscom_sec-00000019”, “CALLERID(num-pres)=allowed_not_screened”) in new stack
– Executing [[email protected]:19] NoOp(“PJSIP/to_swisscom_sec-00000019”, “CallerID Entry Point”) in new stack
– Executing [[email protected]:20] Set(“PJSIP/to_swisscom_sec-00000019”, “__CRM_DIRECTION=INBOUND”) in new stack
– Executing [[email protected]:21] Set(“PJSIP/to_swisscom_sec-00000019”, “__CRM_SOURCE=+447834987586”) in new stack
– Executing [[email protected]:22] Set(“PJSIP/to_swisscom_sec-00000019”, “__CRM_LINKEDID=1565186322.25”) in new stack
– Executing [[email protected]:23] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “1?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [[email protected]:24] Goto(“PJSIP/to_swisscom_sec-00000019”, “from-did-direct,1001,1”) in new stack
– Goto (from-did-direct,1001,1)
– Executing [[email protected]: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 [[email protected]:1] Set(“PJSIP/to_swisscom_sec-00000019”, “__RINGTIMER=15”) in new stack
– Executing [[email protected]:2] Macro(“PJSIP/to_swisscom_sec-00000019”, “exten-vm,novm,1001,0,0,0”) in new stack
– Executing [[email protected]:1] Macro(“PJSIP/to_swisscom_sec-00000019”, “user-callerid,”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/to_swisscom_sec-00000019”, “TOUCH_MONITOR=1565186322.25”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/to_swisscom_sec-00000019”, “AMPUSER=+447834987586”) in new stack
– Executing [[email protected]:3] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?report”) in new stack
– Executing [[email protected]:4] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “1?Set(REALCALLERIDNUM=+447834987586)”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/to_swisscom_sec-00000019”, “AMPUSER=”) in new stack
– Executing [[email protected]:6] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?limit”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/to_swisscom_sec-00000019”, “AMPUSERCIDNAME=”) in new stack
– Executing [[email protected]:8] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [[email protected]:9] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?report”) in new stack
– Goto (macro-user-callerid,s,16)
– Executing [[email protected]:16] NoOp(“PJSIP/to_swisscom_sec-00000019”, “Macro Depth is 2”) in new stack
– Executing [[email protected]:17] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,18)
– Executing [[email protected]:18] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?continue”) in new stack
– Executing [[email protected]:19] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “1?Set(__CALLEE_ACCOUNCODE=)”) in new stack
– Executing [[email protected]:20] Set(“PJSIP/to_swisscom_sec-00000019”, “__TTL=64”) in new stack
– Executing [[email protected]:21] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,37)
– Executing [[email protected]:37] Set(“PJSIP/to_swisscom_sec-00000019”, “CALLERID(number)=+447834987586”) in new stack
– Executing [[email protected]:38] Set(“PJSIP/to_swisscom_sec-00000019”, “CALLERID(name)=+447834987586”) in new stack
– Executing [[email protected]:39] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?cnum”) in new stack
– Executing [[email protected]:40] Set(“PJSIP/to_swisscom_sec-00000019”, “CDR(cnam)=+447834987586”) in new stack
– Executing [[email protected]:41] Set(“PJSIP/to_swisscom_sec-00000019”, “CDR(cnum)=+447834987586”) in new stack
– Executing [[email protected]:42] Set(“PJSIP/to_swisscom_sec-00000019”, “CHANNEL(language)=en”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/to_swisscom_sec-00000019”, “RingGroupMethod=none”) in new stack
– Executing [[email protected]o-exten-vm:3] Set(“PJSIP/to_swisscom_sec-00000019”, “__EXTTOCALL=1001”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/to_swisscom_sec-00000019”, “__PICKUPMARK=1001”) in new stack
– Executing [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]:12] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Macro(vm,novm,DIRECTDIAL,)”) in new stack
– Executing [[email protected]:13] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?MacroExit()”) in new stack
– Executing [[email protected]:14] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Gosub(ext-intercom,*801001,1())”) in new stack
– Executing [[email protected]:15] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?MacroExit()”) in new stack
– Executing [[email protected]:16] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?ChanSpy(PJSIP/1001,q)”) in new stack
– Executing [[email protected]:17] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?MacroExit()”) in new stack
– Executing [[email protected]:18] Gosub(“PJSIP/to_swisscom_sec-00000019”, “sub-record-check,s,1(exten,1001,dontcare)”) in new stack
– Executing [[email protected]:1] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “13?initialized”) in new stack
– Goto (sub-record-check,s,10)
– Executing [[email protected]:10] NoOp(“PJSIP/to_swisscom_sec-00000019”, “Recordings initialized”) in new stack
– Executing [[email protected]:11] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [[email protected]:12] Set(“PJSIP/to_swisscom_sec-00000019”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [[email protected]:13] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [[email protected]:14] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “5?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [[email protected]:17] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?sub-record-check,exten,1”) in new stack
– Goto (sub-record-check,exten,1)
– Executing [[email protected]:1] NoOp(“PJSIP/to_swisscom_sec-00000019”, “Exten Recording Check between +447834987586 and 1001”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/to_swisscom_sec-00000019”, “CALLTYPE=external”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(CALLTYPE=)”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/to_swisscom_sec-00000019”, “CALLEE=dontcare”) in new stack
– Executing [[email protected]:5] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(CALLEE=dontcare)”) in new stack
– Executing [[email protected]:6] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?callee”) in new stack
– Goto (sub-record-check,exten,11)
– Executing [[email protected]:11] Gosub(“PJSIP/to_swisscom_sec-00000019”, “recordcheck,1(dontcare,external,1001)”) in new stack
– Executing [[email protected]:1] NoOp(“PJSIP/to_swisscom_sec-00000019”, “Starting recording check against dontcare”) in new stack
– Executing [[email protected]:2] Goto(“PJSIP/to_swisscom_sec-00000019”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [[email protected]:3] Return(“PJSIP/to_swisscom_sec-00000019”, “”) in new stack
– Executing [[email protected]:12] Return(“PJSIP/to_swisscom_sec-00000019”, “”) in new stack
– Executing [[email protected]:19] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?macrodial”) in new stack
– Goto (macro-exten-vm,s,25)
– Executing [[email protected]:25] GosubIf(“PJSIP/to_swisscom_sec-00000019”, “0?clrheader,1()”) in new stack
– Executing [[email protected]:26] Macro(“PJSIP/to_swisscom_sec-00000019”, “dial-one,HhTtr,1001”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/to_swisscom_sec-00000019”, “DEXTEN=1001”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/to_swisscom_sec-00000019”, “__CRM_SOURCE=+447834987586”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(__EXTTOCALL=1001)”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/to_swisscom_sec-00000019”, “DIALSTATUS_CW=”) in new stack
– Executing [[email protected]:5] GosubIf(“PJSIP/to_swisscom_sec-00000019”, “0?screen,1()”) in new stack
– Executing [[email protected]:6] GosubIf(“PJSIP/to_swisscom_sec-00000019”, “0?cf,1()”) in new stack
– Executing [[email protected]:7] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,10)
– Executing [[email protected]:10] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?nodial”) in new stack
– Executing [[email protected]:11] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?continue”) in new stack
– Executing [[email protected]:12] Set(“PJSIP/to_swisscom_sec-00000019”, “EXTHASCW=ENABLED”) in new stack
– Executing [[email protected]:13] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,25)
– Executing [[email protected]:25] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?next3:continue”) in new stack
– Goto (macro-dial-one,s,27)
– Executing [[email protected]:27] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?nodial”) in new stack
– Executing [[email protected]:28] GosubIf(“PJSIP/to_swisscom_sec-00000019”, “1?dstring,1():dlocal,1()”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/to_swisscom_sec-00000019”, “DSTRING=”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/to_swisscom_sec-00000019”, “DEVICES=1001”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Return()”) in new stack
– Executing [[email protected]:4] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(DEVICES=001)”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/to_swisscom_sec-00000019”, “LOOPCNT=1”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/to_swisscom_sec-00000019”, “ITER=1”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/to_swisscom_sec-00000019”, “THISDIAL=PJSIP/1001”) in new stack
– Executing [[email protected]:8] GosubIf(“PJSIP/to_swisscom_sec-00000019”, “1?zap2dahdi,1()”) in new stack
– Executing [[email protected]:1] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Return()”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/to_swisscom_sec-00000019”, “NEWDIAL=”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/to_swisscom_sec-00000019”, “LOOPCNT2=1”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/to_swisscom_sec-00000019”, “ITER2=1”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/to_swisscom_sec-00000019”, “THISPART2=PJSIP/1001”) in new stack
– Executing [[email protected]:6] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(THISPART2=DAHDIIP/1001)”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/to_swisscom_sec-00000019”, “NEWDIAL=PJSIP/1001&”) in new stack
– Executing [[email protected]:8] Set(“PJSIP/to_swisscom_sec-00000019”, “ITER2=2”) in new stack
– Executing [[email protected]:9] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?begin2”) in new stack
– Executing [[email protected]:10] Set(“PJSIP/to_swisscom_sec-00000019”, “THISDIAL=PJSIP/1001”) in new stack
– Executing [[email protected]:11] Return(“PJSIP/to_swisscom_sec-00000019”, “”) in new stack
– Executing [[email protected]:9] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?docheck”) in new stack
– Executing [[email protected]:10] NoOp(“PJSIP/to_swisscom_sec-00000019”, “Debug: Found PJSIP Destination PJSIP/1001”) in new stack
– Executing [[email protected]:11] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?doset”) in new stack
– Executing [[email protected]:12] NoOp(“PJSIP/to_swisscom_sec-00000019”, “Debug: Updating PJSIP Destination with PJSIP_DIAL_CONTACTS”) in new stack
– Executing [[email protected]:13] Set(“PJSIP/to_swisscom_sec-00000019”, “THISDIAL=PJSIP/1001/sip:[email protected]:5060”) in new stack
– Executing [[email protected]:14] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(DIALSTATUS=CHANUNAVAIL)”) in new stack
– Executing [[email protected]:15] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?skipset”) in new stack
– Executing [[email protected]:16] Set(“PJSIP/to_swisscom_sec-00000019”, “DSTRING=PJSIP/1001/sip:[email protected]:5060&”) in new stack
– Executing [[email protected]:17] Set(“PJSIP/to_swisscom_sec-00000019”, “ITER=2”) in new stack
– Executing [[email protected]:18] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?begin”) in new stack
– Executing [[email protected]:19] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Return()”) in new stack
– Executing [[email protected]:20] Set(“PJSIP/to_swisscom_sec-00000019”, “DSTRING=PJSIP/1001/sip:[email protected]:5060”) in new stack
– Executing [[email protected]:21] Return(“PJSIP/to_swisscom_sec-00000019”, “”) in new stack
– Executing [[email protected]:29] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?nodial”) in new stack
– Executing [[email protected]:30] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?skiptrace”) in new stack
– Executing [[email protected]:31] GosubIf(“PJSIP/to_swisscom_sec-00000019”, “1?ctset,1():ctclear,1()”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/to_swisscom_sec-00000019”, “DB(CALLTRACE/1001)=+447834987586”) in new stack
– Executing [[email protected]:2] Return(“PJSIP/to_swisscom_sec-00000019”, “”) in new stack
– Executing [[email protected]:32] Set(“PJSIP/to_swisscom_sec-00000019”, “D_OPTIONS=HhTtr”) in new stack
– Executing [[email protected]:33] GosubIf(“PJSIP/to_swisscom_sec-00000019”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
– Executing [[email protected]:34] NoOp(“PJSIP/to_swisscom_sec-00000019”, "Blind Transfer: , Attended Transfer: , User: , Alert Info: ") in new stack
– Executing [[email protected]:35] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [[email protected]:36] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [[email protected]:37] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [[email protected]:38] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(ALERT_INFO=Normal;volume=)”) in new stack
– Executing [[email protected]:39] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(ALERT_INFO=Normal;volume=)”) in new stack
– Executing [[email protected]:40] GosubIf(“PJSIP/to_swisscom_sec-00000019”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
– Executing [[email protected]:41] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(CHANNEL(musicclass)=)”) in new stack
– Executing [[email protected]:42] GosubIf(“PJSIP/to_swisscom_sec-00000019”, “0?qwait,1()”) in new stack
– Executing [[email protected]:43] Set(“PJSIP/to_swisscom_sec-00000019”, “__CWIGNORE=”) in new stack
– Executing [[email protected]:44] Set(“PJSIP/to_swisscom_sec-00000019”, “__KEEPCID=TRUE”) in new stack
– Executing [[email protected]:45] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?usegoto,1”) in new stack
– Executing [[email protected]:46] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?godial”) in new stack
– Goto (macro-dial-one,s,51)
– Executing [[email protected]:51] Macro(“PJSIP/to_swisscom_sec-00000019”, “dialout-one-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“PJSIP/to_swisscom_sec-00000019”, “”) in new stack
– Executing [[email protected]:52] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “1?Set(D_OPTIONS=HhtrI)”) in new stack
– Executing [[email protected]:53] NoOp(“PJSIP/to_swisscom_sec-00000019”, “”) in new stack
– Executing [[email protected]:54] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(D_OPTIONS=HhtrIg)”) in new stack
– Executing [[email protected]: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 [[email protected]:1] ExecIf(“PJSIP/1001-0000001a”, “1?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [[email protected]:2] NoOp(“PJSIP/1001-0000001a”, “Applying SIP Headers to channel PJSIP/1001-0000001a”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/1001-0000001a”, “TECH=PJSIP”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/1001-0000001a”, “SIPHEADERKEYS=”) in new stack
– Executing [[email protected]:5] While(“PJSIP/1001-0000001a”, “0”) in new stack
– Jumping to priority 12
– Executing [[email protected]: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 [[email protected]:1] NoOp(“PJSIP/1001-0000001a”, “Sending Hangup to CRM”) in new stack
– Executing [[email protected]:2] NoOp(“PJSIP/1001-0000001a”, “HANGUP CAUSE: 0”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/1001-0000001a”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
– Executing [[email protected]:4] NoOp(“PJSIP/1001-0000001a”, “MASTER CHANNEL: 1565186322.26 = 1565186322.25”) in new stack
– Executing [[email protected]:5] GotoIf(“PJSIP/1001-0000001a”, “1?return”) in new stack
– Goto (crm-hangup,s,8)
– Executing [[email protected]: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 [[email protected]:1] Macro(“PJSIP/to_swisscom_sec-00000019”, “hangupcall,”) in new stack
– Executing [[email protected]:1] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [[email protected]:3] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [[email protected]:4] NoOp(“PJSIP/to_swisscom_sec-00000019”, "PJSIP/1001-0000001a montior file= ") in new stack
– Executing [[email protected]:5] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “1?skipagi”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [[email protected]: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 [[email protected]:1] NoOp(“PJSIP/to_swisscom_sec-00000019”, “Sending Hangup to CRM”) in new stack
– Executing [[email protected]:2] NoOp(“PJSIP/to_swisscom_sec-00000019”, “HANGUP CAUSE: 31”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/to_swisscom_sec-00000019”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
– Executing [[email protected]:4] NoOp(“PJSIP/to_swisscom_sec-00000019”, “MASTER CHANNEL: 1565186322.25 = 1565186322.25”) in new stack
– Executing [[email protected]:5] GotoIf(“PJSIP/to_swisscom_sec-00000019”, “0?return”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/to_swisscom_sec-00000019”, “__CRM_HANGUP=1”) in new stack
– Executing [[email protected]: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 [[email protected]: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.