External Call Rings then hangs up immediately

Hi,

I have a PBX setup, firewall configured as I think it should be on both the PBX and the Firewall (pfsense)

I am making a cloud PBX, I’ve configured the endpoint manager, HTTPS provisioning etc all works fine.

However.

Calls from one phone to another work fine (1001 > 1002 etc) connect, can talk and works like a charm

However when I get a call from the VoIP provider (inbound route is set to just go to an extension) the physical phone rings once (for less than 1sec) then says it’s missed a call. The caller gets put through to the answerphone of the user.

The same also happens to VoIP phones on the same network.

I’m using the same Provider for a number of PBXs and it’s configured the same and works fine (local phones)

I can’t see any reason in the below log that would indicate a problem or that the extension is unavailable.

Any ideas?

onnected to Asterisk 13.19.1 currently running on freepbx (pid = 2943)
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [44115##DDI##@from-pstn:1] Set("SIP/PCL_OUT-00000002", "__DIRECTION=INBOUND") in new stack
    -- Executing [44115##DDI##@from-pstn:2] Gosub("SIP/PCL_OUT-00000002", "sub-record-check,s,1(in,44115##DDI##,force)") in new stack
    -- Executing [[email protected]:1] GotoIf("SIP/PCL_OUT-00000002", "0?initialized") in new stack
    -- Executing [[email protected]:2] Set("SIP/PCL_OUT-00000002", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [[email protected]:3] Set("SIP/PCL_OUT-00000002", "NOW=1551879069") in new stack
    -- Executing [[email protected]:4] Set("SIP/PCL_OUT-00000002", "__DAY=06") in new stack
    -- Executing [[email protected]:5] Set("SIP/PCL_OUT-00000002", "__MONTH=03") in new stack
    -- Executing [[email protected]:6] Set("SIP/PCL_OUT-00000002", "__YEAR=2019") in new stack
    -- Executing [[email protected]:7] Set("SIP/PCL_OUT-00000002", "__TIMESTR=20190306-133109") in new stack
    -- Executing [[email protected]:8] Set("SIP/PCL_OUT-00000002", "__FROMEXTEN=unknown") in new stack
    -- Executing [[email protected]:9] Set("SIP/PCL_OUT-00000002", "__MON_FMT=wav") in new stack
    -- Executing [[email protected]:10] NoOp("SIP/PCL_OUT-00000002", "Recordings initialized") in new stack
    -- Executing [[email protected]:11] ExecIf("SIP/PCL_OUT-00000002", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [[email protected]:12] Set("SIP/PCL_OUT-00000002", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [[email protected]:13] ExecIf("SIP/PCL_OUT-00000002", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [[email protected]:14] GotoIf("SIP/PCL_OUT-00000002", "2?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [[email protected]:17] GotoIf("SIP/PCL_OUT-00000002", "1?sub-record-check,in,1") in new stack
    -- Goto (sub-record-check,in,1)
    -- Executing [[email protected]:1] NoOp("SIP/PCL_OUT-00000002", "Inbound Recording Check to 44115##DDI##") in new stack
    -- Executing [[email protected]:2] Set("SIP/PCL_OUT-00000002", "FROMEXTEN=unknown") in new stack
    -- Executing [[email protected]:3] ExecIf("SIP/PCL_OUT-00000002", "11?Set(FROMEXTEN=0##CALLER##)") in new stack
    -- Executing [[email protected]:4] Gosub("SIP/PCL_OUT-00000002", "recordcheck,1(force,in,44115##DDI##)") in new stack
    -- Executing [[email protected]:1] NoOp("SIP/PCL_OUT-00000002", "Starting recording check against force") in new stack
    -- Executing [[email protected]:2] Goto("SIP/PCL_OUT-00000002", "force") in new stack
    -- Goto (sub-record-check,recordcheck,5)
    -- Executing [[email protected]:5] Set("SIP/PCL_OUT-00000002", "__REC_POLICY_MODE=FORCE") in new stack
    -- Executing [[email protected]:6] GotoIf("SIP/PCL_OUT-00000002", "1?startrec") in new stack
    -- Goto (sub-record-check,recordcheck,16)
    -- Executing [[email protected]:16] NoOp("SIP/PCL_OUT-00000002", "Starting recording: in, 44115##DDI##") in new stack
    -- Executing [[email protected]ck:17] Set("SIP/PCL_OUT-00000002", "__CALLFILENAME=in-44115##DDI##-0##CALLER##-20190306-133109-1551879069.8") in new stack
    -- Executing [[email protected]:18] MixMonitor("SIP/PCL_OUT-00000002", "2019/03/06/in-44115##DDI##-0##CALLER##-20190306-133109-1551879069.8.wav,abi(LOCAL_MIXMON_ID),") in new stack
    -- Executing [[email protected]:19] Set("SIP/PCL_OUT-00000002", "__MIXMON_ID=0x7f976002bd90") in new stack
    -- Executing [[email protected]:20] Set("SIP/PCL_OUT-00000002", "__RECORD_ID=SIP/PCL_OUT-00000002") in new stack
    -- Executing [[email protected]:21] Set("SIP/PCL_OUT-00000002", "__REC_STATUS=RECORDING") in new stack
    -- Executing [[email protected]:22] Set("SIP/PCL_OUT-00000002", "CDR(recordingfile)=in-44115##DDI##-0##CALLER##-20190306-133109-1551879069.8.wav") in new stack
    -- Executing [[email protected]:23] Return("SIP/PCL_OUT-00000002", "") in new stack
    -- Executing [[email protected]:5] Return("SIP/PCL_OUT-00000002", "") in new stack
    -- Executing [44115##DDI##@from-pstn:3] Set("SIP/PCL_OUT-00000002", "CHANNEL(tonezone)=us") in new stack
    -- Executing [44115##DDI##@from-pstn:4] Set("SIP/PCL_OUT-00000002", "__FROM_DID=44115##DDI##") in new stack
    -- Executing [44115##DDI##@from-pstn:5] Set("SIP/PCL_OUT-00000002", "returnhere=1") in new stack
    -- Executing [44115##DDI##@from-pstn:6] Gosub("SIP/PCL_OUT-00000002", "app-blacklist-check,s,1()") in new stack
    -- Executing [[email protected]:1] GotoIf("SIP/PCL_OUT-00000002", "0?blacklisted") in new stack
    -- Executing [[email protected]:2] Set("SIP/PCL_OUT-00000002", "CALLED_BLACKLIST=1") in new stack
    -- Executing [[email protected]:3] Return("SIP/PCL_OUT-00000002", "") in new stack
    -- Executing [44115##DDI##@from-pstn:7] Set("SIP/PCL_OUT-00000002", "CDR(did)=44115##DDI##") in new stack
    -- Executing [44115##DDI##@from-pstn:8] GotoIf("SIP/PCL_OUT-00000002", "0?") in new stack
    -- Executing [44115##DDI##@from-pstn:9] ExecIf("SIP/PCL_OUT-00000002", "0 ?Set(CALLERID(name)=0##CALLER##)") in new stack
    -- Executing [44115##DDI##@from-pstn:10] Set("SIP/PCL_OUT-00000002", "__MOHCLASS=") in new stack
    -- Executing [44115##DDI##@from-pstn:11] Ringing("SIP/PCL_OUT-00000002", "") in new stack
    -- Executing [44115##DDI##@from-pstn:12] Set("SIP/PCL_OUT-00000002", "__RINGINGSENT=TRUE") in new stack
    -- Executing [44115##DDI##@from-pstn:13] Set("SIP/PCL_OUT-00000002", "__REVERSAL_REJECT=TRUE") in new stack
    -- Executing [44115##DDI##@from-pstn:14] GotoIf("SIP/PCL_OUT-00000002", "0?post-reverse-charge") in new stack
[2019-03-06 13:31:09] WARNING[6761][C-00000002]: func_channel.c:465 func_channel_read: Unknown or unavailable item requested: 'reversecharge'
    -- Executing [44115##DDI##@from-pstn:15] GotoIf("SIP/PCL_OUT-00000002", "0?macro-hangupcall") in new stack
    -- Executing [44115##DDI##@from-pstn:16] NoOp("SIP/PCL_OUT-00000002", "") in new stack
    -- Executing [44115##DDI##@from-pstn:17] Set("SIP/PCL_OUT-00000002", "__CALLINGNAMEPRES_SV=allowed_not_screened") in new stack
    -- Executing [44115##DDI##@from-pstn:18] Set("SIP/PCL_OUT-00000002", "__CALLINGNUMPRES_SV=allowed_not_screened") in new stack
    -- Executing [44115##DDI##@from-pstn:19] Set("SIP/PCL_OUT-00000002", "CALLERID(name-pres)=allowed_not_screened") in new stack
    -- Executing [44115##DDI##@from-pstn:20] Set("SIP/PCL_OUT-00000002", "CALLERID(num-pres)=allowed_not_screened") in new stack
    -- Executing [44115##DDI##@from-pstn:21] NoOp("SIP/PCL_OUT-00000002", "CallerID Entry Point") in new stack
    -- Executing [44115##DDI##@from-pstn:22] Macro("SIP/PCL_OUT-00000002", "prepend-cid,PCL:") in new stack
    -- Executing [[email protected]:1] GotoIf("SIP/PCL_OUT-00000002", "1?REPCID") in new stack
    -- Goto (macro-prepend-cid,s,5)
    -- Executing [[email protected]:5] Set("SIP/PCL_OUT-00000002", "_RGPREFIX=PCL:") in new stack
    -- Executing [[email protected]:6] Set("SIP/PCL_OUT-00000002", "CALLERID(name)=PCL:0##CALLER##") in new stack
    -- Executing [44115##DDI##@from-pstn:23] Set("SIP/PCL_OUT-00000002", "__CRM_DIRECTION=INBOUND") in new stack
    -- Executing [44115##DDI##@from-pstn:24] Set("SIP/PCL_OUT-00000002", "__CRM_SOURCE=0##CALLER##") in new stack
    -- Executing [44115##DDI##@from-pstn:25] Set("SIP/PCL_OUT-00000002", "__CRM_LINKEDID=1551879069.8") in new stack
    -- Executing [44115##DDI##@from-pstn:26] ExecIf("SIP/PCL_OUT-00000002", "1?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
    -- Executing [44115##DDI##@from-pstn:27] Goto("SIP/PCL_OUT-00000002", "from-did-direct,1003,1") in new stack
    -- Goto (from-did-direct,1003,1)
    -- Executing [[email protected]:1] GotoIf("SIP/PCL_OUT-00000002", "1?ext-local,1003,1:followme-check,1003,1") in new stack
    -- Goto (ext-local,1003,1)
    -- Executing [[email protected]:1] Set("SIP/PCL_OUT-00000002", "__RINGTIMER=15") in new stack
    -- Executing [[email protected]:2] Macro("SIP/PCL_OUT-00000002", "exten-vm,novm,1003,0,0,0") in new stack
    -- Executing [[email protected]:1] Macro("SIP/PCL_OUT-00000002", "user-callerid,") in new stack
    -- Executing [[email protected]:1] Set("SIP/PCL_OUT-00000002", "TOUCH_MONITOR=1551879069.8") in new stack
    -- Executing [[email protected]:2] Set("SIP/PCL_OUT-00000002", "AMPUSER=0##CALLER##") in new stack
    -- Executing [[email protected]:3] GotoIf("SIP/PCL_OUT-00000002", "0?report") in new stack
    -- Executing [[email protected]:4] ExecIf("SIP/PCL_OUT-00000002", "1?Set(REALCALLERIDNUM=0##CALLER##)") in new stack
    -- Executing [[email protected]:5] Set("SIP/PCL_OUT-00000002", "AMPUSER=") in new stack
    -- Executing [[email protected]:6] GotoIf("SIP/PCL_OUT-00000002", "0?limit") in new stack
    -- Executing [[email protected]:7] Set("SIP/PCL_OUT-00000002", "AMPUSERCIDNAME=") in new stack
    -- Executing [[email protected]:8] ExecIf("SIP/PCL_OUT-00000002", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
    -- Executing [[email protected]:9] GotoIf("SIP/PCL_OUT-00000002", "1?report") in new stack
    -- Goto (macro-user-callerid,s,16)
    -- Executing [[email protected]:16] NoOp("SIP/PCL_OUT-00000002", "Macro Depth is 2") in new stack
    -- Executing [[email protected]:17] GotoIf("SIP/PCL_OUT-00000002", "1?report2:macroerror") in new stack
    -- Goto (macro-user-callerid,s,18)
    -- Executing [[email protected]:18] GotoIf("SIP/PCL_OUT-00000002", "0?continue") in new stack
    -- Executing [[email protected]:19] ExecIf("SIP/PCL_OUT-00000002", "1?Set(__CALLEE_ACCOUNCODE=)") in new stack
    -- Executing [[email protected]:20] Set("SIP/PCL_OUT-00000002", "__TTL=64") in new stack
    -- Executing [[email protected]:21] GotoIf("SIP/PCL_OUT-00000002", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,37)
    -- Executing [[email protected]:37] Set("SIP/PCL_OUT-00000002", "CALLERID(number)=0##CALLER##") in new stack
    -- Executing [[email protected]:38] Set("SIP/PCL_OUT-00000002", "CALLERID(name)=PCL:0##CALLER##") in new stack
    -- Executing [[email protected]:39] GotoIf("SIP/PCL_OUT-00000002", "0?cnum") in new stack
    -- Executing [[email protected]:40] Set("SIP/PCL_OUT-00000002", "CDR(cnam)=PCL:0##CALLER##") in new stack
  == Begin MixMonitor Recording SIP/PCL_OUT-00000002
    -- Executing [[email protected]:41] Set("SIP/PCL_OUT-00000002", "CDR(cnum)=0##CALLER##") in new stack
    -- Executing [[email protected]:42] Set("SIP/PCL_OUT-00000002", "CHANNEL(language)=en_GB") in new stack
    -- Executing [[email protected]:2] Set("SIP/PCL_OUT-00000002", "RingGroupMethod=none") in new stack
    -- Executing [[email protected]:3] Set("SIP/PCL_OUT-00000002", "__EXTTOCALL=1003") in new stack
    -- Executing [[email protected]:4] Set("SIP/PCL_OUT-00000002", "__PICKUPMARK=1003") in new stack
    -- Executing [[email protected]:5] Set("SIP/PCL_OUT-00000002", "RT=") in new stack
    -- Executing [[email protected]:6] ExecIf("SIP/PCL_OUT-00000002", "0?Macro(vm,novm,DIRECTDIAL,)") in new stack
    -- Executing [[email protected]:7] ExecIf("SIP/PCL_OUT-00000002", "0?MacroExit()") in new stack
    -- Executing [[email protected]:8] ExecIf("SIP/PCL_OUT-00000002", "0?Gosub(ext-intercom,*801003,1())") in new stack
    -- Executing [[email protected]:9] ExecIf("SIP/PCL_OUT-00000002", "0?MacroExit()") in new stack
    -- Executing [[email protected]:10] ExecIf("SIP/PCL_OUT-00000002", "0?ChanSpy(PJSIP/1003,q)") in new stack
    -- Executing [[email protected]:11] ExecIf("SIP/PCL_OUT-00000002", "0?MacroExit()") in new stack
[2019-03-06 13:31:09] ERROR[6761][C-00000002]: res_pjsip_header_funcs.c:461 func_read_header: This function requires a PJSIP channel.
    -- Executing [[email protected]:12] ExecIf("SIP/PCL_OUT-00000002", "0?Macro(vm,novm,DIRECTDIAL,)") in new stack
[2019-03-06 13:31:09] ERROR[6761][C-00000002]: res_pjsip_header_funcs.c:461 func_read_header: This function requires a PJSIP channel.
[2019-03-06 13:31:09] ERROR[6761][C-00000002]: res_pjsip_header_funcs.c:461 func_read_header: This function requires a PJSIP channel.
    -- Executing [[email protected]:13] ExecIf("SIP/PCL_OUT-00000002", "0?MacroExit()") in new stack
[2019-03-06 13:31:09] ERROR[6761][C-00000002]: res_pjsip_header_funcs.c:461 func_read_header: This function requires a PJSIP channel.
[2019-03-06 13:31:09] ERROR[6761][C-00000002]: res_pjsip_header_funcs.c:461 func_read_header: This function requires a PJSIP channel.
    -- Executing [[email protected]:14] ExecIf("SIP/PCL_OUT-00000002", "0?Gosub(ext-intercom,*801003,1())") in new stack
[2019-03-06 13:31:09] ERROR[6761][C-00000002]: res_pjsip_header_funcs.c:461 func_read_header: This function requires a PJSIP channel.
[2019-03-06 13:31:09] ERROR[6761][C-00000002]: res_pjsip_header_funcs.c:461 func_read_header: This function requires a PJSIP channel.
    -- Executing [[email protected]:15] ExecIf("SIP/PCL_OUT-00000002", "0?MacroExit()") in new stack
[2019-03-06 13:31:09] ERROR[6761][C-00000002]: res_pjsip_header_funcs.c:461 func_read_header: This function requires a PJSIP channel.
[2019-03-06 13:31:09] ERROR[6761][C-00000002]: res_pjsip_header_funcs.c:461 func_read_header: This function requires a PJSIP channel.
    -- Executing [[email protected]:16] ExecIf("SIP/PCL_OUT-00000002", "0?ChanSpy(PJSIP/1003,q)") in new stack
[2019-03-06 13:31:09] ERROR[6761][C-00000002]: res_pjsip_header_funcs.c:461 func_read_header: This function requires a PJSIP channel.
[2019-03-06 13:31:09] ERROR[6761][C-00000002]: res_pjsip_header_funcs.c:461 func_read_header: This function requires a PJSIP channel.
    -- Executing [[email protected]:17] ExecIf("SIP/PCL_OUT-00000002", "0?MacroExit()") in new stack
[2019-03-06 13:31:09] ERROR[6761][C-00000002]: res_pjsip_header_funcs.c:461 func_read_header: This function requires a PJSIP channel.
    -- Executing [[email protected]:18] Gosub("SIP/PCL_OUT-00000002", "sub-record-check,s,1(exten,1003,dontcare)") in new stack
    -- Executing [[email protected]:1] GotoIf("SIP/PCL_OUT-00000002", "11?initialized") in new stack
    -- Goto (sub-record-check,s,10)
    -- Executing [[email protected]:10] NoOp("SIP/PCL_OUT-00000002", "Recordings initialized") in new stack
    -- Executing [[email protected]:11] ExecIf("SIP/PCL_OUT-00000002", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [[email protected]:12] Set("SIP/PCL_OUT-00000002", "REC_POLICY_MODE_SAVE=FORCE") in new stack
    -- Executing [[email protected]:13] ExecIf("SIP/PCL_OUT-00000002", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [[email protected]:14] GotoIf("SIP/PCL_OUT-00000002", "5?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [[email protected]:17] GotoIf("SIP/PCL_OUT-00000002", "1?sub-record-check,exten,1") in new stack
    -- Goto (sub-record-check,exten,1)
    -- Executing [[email protected]:1] NoOp("SIP/PCL_OUT-00000002", "Exten Recording Check between 0##CALLER## and 1003") in new stack
    -- Executing [[email protected]:2] Set("SIP/PCL_OUT-00000002", "CALLTYPE=external") in new stack
    -- Executing [[email protected]:3] ExecIf("SIP/PCL_OUT-00000002", "0?Set(CALLTYPE=)") in new stack
    -- Executing [[email protected]ck:4] Set("SIP/PCL_OUT-00000002", "CALLEE=dontcare") in new stack
    -- Executing [[email protected]:5] ExecIf("SIP/PCL_OUT-00000002", "0?Set(CALLEE=dontcare)") in new stack
    -- Executing [[email protected]:6] GotoIf("SIP/PCL_OUT-00000002", "1?callee") in new stack
    -- Goto (sub-record-check,exten,11)
    -- Executing [[email protected]:11] Gosub("SIP/PCL_OUT-00000002", "recordcheck,1(dontcare,external,1003)") in new stack
    -- Executing [[email protected]:1] NoOp("SIP/PCL_OUT-00000002", "Starting recording check against dontcare") in new stack
    -- Executing [[email protected]:2] Goto("SIP/PCL_OUT-00000002", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [[email protected]:3] Return("SIP/PCL_OUT-00000002", "") in new stack
    -- Executing [[email protected]:12] Return("SIP/PCL_OUT-00000002", "") in new stack
    -- Executing [[email protected]:19] GotoIf("SIP/PCL_OUT-00000002", "1?macrodial") in new stack
    -- Goto (macro-exten-vm,s,25)
    -- Executing [[email protected]:25] GosubIf("SIP/PCL_OUT-00000002", "0?clrheader,1()") in new stack
    -- Executing [[email protected]:26] Macro("SIP/PCL_OUT-00000002", "dial-one,,HhTtr,1003") in new stack
    -- Executing [[email protected]:1] Set("SIP/PCL_OUT-00000002", "DEXTEN=1003") in new stack
    -- Executing [[email protected]:2] Set("SIP/PCL_OUT-00000002", "__CRM_SOURCE=0##CALLER##") in new stack
    -- Executing [[email protected]:3] ExecIf("SIP/PCL_OUT-00000002", "0?Set(__EXTTOCALL=1003)") in new stack
    -- Executing [[email protected]:4] Set("SIP/PCL_OUT-00000002", "DIALSTATUS_CW=") in new stack
    -- Executing [[email protected]:5] GosubIf("SIP/PCL_OUT-00000002", "0?screen,1()") in new stack
    -- Executing [[email protected]:6] GosubIf("SIP/PCL_OUT-00000002", "0?cf,1()") in new stack
    -- Executing [[email protected]:7] GotoIf("SIP/PCL_OUT-00000002", "1?skip1") in new stack
    -- Goto (macro-dial-one,s,10)
    -- Executing [[email protected]:10] GotoIf("SIP/PCL_OUT-00000002", "0?nodial") in new stack
    -- Executing [[email protected]:11] GotoIf("SIP/PCL_OUT-00000002", "0?continue") in new stack
    -- Executing [[email protected]:12] Set("SIP/PCL_OUT-00000002", "EXTHASCW=ENABLED") in new stack
    -- Executing [[email protected]:13] GotoIf("SIP/PCL_OUT-00000002", "0?next1:cwinusebusy") in new stack
    -- Goto (macro-dial-one,s,25)
    -- Executing [[email protected]:25] GotoIf("SIP/PCL_OUT-00000002", "0?next3:continue") in new stack
    -- Goto (macro-dial-one,s,27)
    -- Executing [[email protected]:27] GotoIf("SIP/PCL_OUT-00000002", "0?nodial") in new stack
    -- Executing [[email protected]:28] GosubIf("SIP/PCL_OUT-00000002", "1?dstring,1():dlocal,1()") in new stack
    -- Executing [[email protected]:1] Set("SIP/PCL_OUT-00000002", "DSTRING=") in new stack
    -- Executing [[email protected]:2] Set("SIP/PCL_OUT-00000002", "DEVICES=1003") in new stack
    -- Executing [[email protected]:3] ExecIf("SIP/PCL_OUT-00000002", "0?Return()") in new stack
    -- Executing [[email protected]:4] ExecIf("SIP/PCL_OUT-00000002", "0?Set(DEVICES=003)") in new stack
    -- Executing [[email protected]:5] Set("SIP/PCL_OUT-00000002", "LOOPCNT=1") in new stack
    -- Executing [[email protected]:6] Set("SIP/PCL_OUT-00000002", "ITER=1") in new stack
    -- Executing [[email protected]:7] Set("SIP/PCL_OUT-00000002", "THISDIAL=PJSIP/1003") in new stack
    -- Executing [[email protected]:8] GosubIf("SIP/PCL_OUT-00000002", "1?zap2dahdi,1()") in new stack
    -- Executing [[email protected]:1] ExecIf("SIP/PCL_OUT-00000002", "0?Return()") in new stack
    -- Executing [[email protected]:2] Set("SIP/PCL_OUT-00000002", "NEWDIAL=") in new stack
    -- Executing [[email protected]:3] Set("SIP/PCL_OUT-00000002", "LOOPCNT2=1") in new stack
    -- Executing [[email protected]:4] Set("SIP/PCL_OUT-00000002", "ITER2=1") in new stack
    -- Executing [[email protected]:5] Set("SIP/PCL_OUT-00000002", "THISPART2=PJSIP/1003") in new stack
    -- Executing [[email protected]:6] ExecIf("SIP/PCL_OUT-00000002", "0?Set(THISPART2=DAHDIIP/1003)") in new stack
    -- Executing [[email protected]:7] Set("SIP/PCL_OUT-00000002", "NEWDIAL=PJSIP/1003&") in new stack
    -- Executing [[email protected]:8] Set("SIP/PCL_OUT-00000002", "ITER2=2") in new stack
    -- Executing [[email protected]:9] GotoIf("SIP/PCL_OUT-00000002", "0?begin2") in new stack
    -- Executing [[email protected]:10] Set("SIP/PCL_OUT-00000002", "THISDIAL=PJSIP/1003") in new stack
    -- Executing [[email protected]:11] Return("SIP/PCL_OUT-00000002", "") in new stack
    -- Executing [[email protected]:9] GotoIf("SIP/PCL_OUT-00000002", "0?docheck") in new stack
    -- Executing [[email protected]:10] NoOp("SIP/PCL_OUT-00000002", "Debug: Found PJSIP Destination PJSIP/1003") in new stack
    -- Executing [[email protected]:11] GotoIf("SIP/PCL_OUT-00000002", "0?doset") in new stack
    -- Executing [[email protected]:12] NoOp("SIP/PCL_OUT-00000002", "Debug: Updating PJSIP Destination with PJSIP_DIAL_CONTACTS") in new stack
    -- Executing [[email protected]:13] Set("SIP/PCL_OUT-00000002", "THISDIAL=PJSIP/1003/sip:[email protected]:9422") in new stack
    -- Executing [[email protected]:14] ExecIf("SIP/PCL_OUT-00000002", "0?Set(DIALSTATUS=CHANUNAVAIL)") in new stack
    -- Executing [[email protected]:15] GotoIf("SIP/PCL_OUT-00000002", "0?skipset") in new stack
    -- Executing [[email protected]:16] Set("SIP/PCL_OUT-00000002", "DSTRING=PJSIP/1003/sip:[email protected]:9422&") in new stack
    -- Executing [[email protected]:17] Set("SIP/PCL_OUT-00000002", "ITER=2") in new stack
    -- Executing [[email protected]:18] GotoIf("SIP/PCL_OUT-00000002", "0?begin") in new stack
    -- Executing [[email protected]:19] ExecIf("SIP/PCL_OUT-00000002", "0?Return()") in new stack
    -- Executing [[email protected]:20] Set("SIP/PCL_OUT-00000002", "DSTRING=PJSIP/1003/sip:[email protected]:9422") in new stack
    -- Executing [[email protected]:21] Return("SIP/PCL_OUT-00000002", "") in new stack
    -- Executing [[email protected]:29] GotoIf("SIP/PCL_OUT-00000002", "0?nodial") in new stack
    -- Executing [[email protected]:30] GotoIf("SIP/PCL_OUT-00000002", "0?skiptrace") in new stack
    -- Executing [[email protected]:31] GosubIf("SIP/PCL_OUT-00000002", "1?ctset,1():ctclear,1()") in new stack
    -- Executing [[email protected]:1] Set("SIP/PCL_OUT-00000002", "DB(CALLTRACE/1003)=0##CALLER##") in new stack
    -- Executing [[email protected]:2] Return("SIP/PCL_OUT-00000002", "") in new stack
    -- Executing [[email protected]:32] Set("SIP/PCL_OUT-00000002", "D_OPTIONS=HhTtr") in new stack
    -- Executing [[email protected]:33] GosubIf("SIP/PCL_OUT-00000002", "0?func-set-sipheader,s,1(Alert-Info,)") in new stack
    -- Executing [[email protected]:34] NoOp("SIP/PCL_OUT-00000002", "Blind Transfer: , Attended Transfer: , User: , Alert Info: ") in new stack
    -- Executing [[email protected]:35] ExecIf("SIP/PCL_OUT-00000002", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [[email protected]:36] ExecIf("SIP/PCL_OUT-00000002", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [[email protected]:37] ExecIf("SIP/PCL_OUT-00000002", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [[email protected]:38] ExecIf("SIP/PCL_OUT-00000002", "0?Set(ALERT_INFO=Normal;volume=)") in new stack
    -- Executing [[email protected]:39] ExecIf("SIP/PCL_OUT-00000002", "0?Set(ALERT_INFO=Normal;volume=)") in new stack
    -- Executing [[email protected]:40] GosubIf("SIP/PCL_OUT-00000002", "0?func-set-sipheader,s,1(Alert-Info,)") in new stack
    -- Executing [[email protected]:41] ExecIf("SIP/PCL_OUT-00000002", "0?Set(CHANNEL(musicclass)=)") in new stack
    -- Executing [[email protected]:42] GosubIf("SIP/PCL_OUT-00000002", "0?qwait,1()") in new stack
    -- Executing [[email protected]:43] Set("SIP/PCL_OUT-00000002", "__CWIGNORE=") in new stack
    -- Executing [[email protected]:44] Set("SIP/PCL_OUT-00000002", "__KEEPCID=TRUE") in new stack
    -- Executing [[email protected]:45] GotoIf("SIP/PCL_OUT-00000002", "0?usegoto,1") in new stack
    -- Executing [[email protected]:46] GotoIf("SIP/PCL_OUT-00000002", "1?godial") in new stack
    -- Goto (macro-dial-one,s,51)
    -- Executing [[email protected]:51] Macro("SIP/PCL_OUT-00000002", "dialout-one-predial-hook,") in new stack
    -- Executing [[email protected]:1] MacroExit("SIP/PCL_OUT-00000002", "") in new stack
    -- Executing [[email protected]:52] ExecIf("SIP/PCL_OUT-00000002", "1?Set(D_OPTIONS=HhtrI)") in new stack
    -- Executing [[email protected]:53] NoOp("SIP/PCL_OUT-00000002", "") in new stack
    -- Executing [[email protected]:54] ExecIf("SIP/PCL_OUT-00000002", "0?Set(D_OPTIONS=HhtrIg)") in new stack
    -- Executing [[email protected]:55] Dial("SIP/PCL_OUT-00000002", "PJSIP/1003/sip:[email protected]:9422,,HhtrIb(func-apply-sipheaders^s^1)") in new stack
    -- PJSIP/1003-00000002 Internal Gosub(func-apply-sipheaders,s,1) start
    -- Executing [[email protected]:1] ExecIf("PJSIP/1003-00000002", "1?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
    -- Executing [[email protected]:2] NoOp("PJSIP/1003-00000002", "Applying SIP Headers to channel PJSIP/1003-00000002") in new stack
    -- Executing [[email protected]:3] Set("PJSIP/1003-00000002", "TECH=PJSIP") in new stack
    -- Executing [[email protected]:4] Set("PJSIP/1003-00000002", "SIPHEADERKEYS=") in new stack
    -- Executing [[email protected]:5] While("PJSIP/1003-00000002", "0") in new stack
    -- Jumping to priority 12
    -- Executing [[email protected]:13] Return("PJSIP/1003-00000002", "") in new stack
  == Spawn extension (from-internal, 1003, 1) exited non-zero on 'PJSIP/1003-00000002'
    -- PJSIP/1003-00000002 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
    -- Called PJSIP/1003/sip:[email protected]:9422
  == 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 SIP/PCL_OUT-00000002 prevented.
    -- PJSIP/1003-00000002 Internal Gosub(crm-hangup,s,1) start
    -- Executing [[email protected]:1] NoOp("PJSIP/1003-00000002", "Sending Hangup to CRM") in new stack
    -- Executing [[email protected]:2] NoOp("PJSIP/1003-00000002", "HANGUP CAUSE: 0") in new stack
    -- Executing [[email protected]:3] ExecIf("PJSIP/1003-00000002", "0?Set(__CRM_VOICEMAIL=)") in new stack
    -- Executing [[email protected]:4] NoOp("PJSIP/1003-00000002", "MASTER CHANNEL: 1551879069.9 = 1551879069.8") in new stack
    -- Executing [[email protected]:5] GotoIf("PJSIP/1003-00000002", "1?return") in new stack
    -- Goto (crm-hangup,s,8)
    -- Executing [[email protected]:8] Return("PJSIP/1003-00000002", "") in new stack
  == Spawn extension (from-internal, 1003, 1) exited non-zero on 'PJSIP/1003-00000002'
    -- PJSIP/1003-00000002 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
  == Spawn extension (macro-dial-one, s, 55) exited non-zero on 'SIP/PCL_OUT-00000002' in macro 'dial-one'
  == Spawn extension (macro-exten-vm, s, 26) exited non-zero on 'SIP/PCL_OUT-00000002' in macro 'exten-vm'
  == Spawn extension (ext-local, 1003, 2) exited non-zero on 'SIP/PCL_OUT-00000002'
    -- Executing [[email protected]:1] Macro("SIP/PCL_OUT-00000002", "hangupcall,") in new stack
    -- Executing [[email protected]:1] GotoIf("SIP/PCL_OUT-00000002", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [[email protected]:3] ExecIf("SIP/PCL_OUT-00000002", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [[email protected]:4] NoOp("SIP/PCL_OUT-00000002", "PJSIP/1003-00000002 monior file= /var/spool/asterisk/monitor/2019/03/06/in-44115##DDI##-0##CALLER##-20190306-133109-1551879069.8.wav") in new stack
    -- Executing [[email protected]:5] AGI("SIP/PCL_OUT-00000002", "attendedtransfer-rec-restart.php,PJSIP/1003-00000002,/var/spool/asterisk/monitor/2019/03/06/in-44115##DDI##-0##CALLER##-20190306-133109-1551879069.8.wav") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/attendedtransfer-rec-restart.php
    -- <SIP/PCL_OUT-00000002>AGI Script attendedtransfer-rec-restart.php completed, returning 0
    -- Executing [[email protected]:6] Hangup("SIP/PCL_OUT-00000002", "") in new stack
  == Spawn extension (macro-hangupcall, s, 6) exited non-zero on 'SIP/PCL_OUT-00000002' in macro 'hangupcall'
  == Spawn extension (ext-local, h, 1) exited non-zero on 'SIP/PCL_OUT-00000002'
    -- SIP/PCL_OUT-00000002 Internal Gosub(crm-hangup,s,1) start
    -- Executing [[email protected]:1] NoOp("SIP/PCL_OUT-00000002", "Sending Hangup to CRM") in new stack
    -- Executing [[email protected]:2] NoOp("SIP/PCL_OUT-00000002", "HANGUP CAUSE: 16") in new stack
    -- Executing [[email protected]:3] ExecIf("SIP/PCL_OUT-00000002", "0?Set(__CRM_VOICEMAIL=)") in new stack
    -- Executing [[email protected]:4] NoOp("SIP/PCL_OUT-00000002", "MASTER CHANNEL: 1551879069.8 = 1551879069.8") in new stack
    -- Executing [[email protected]:5] GotoIf("SIP/PCL_OUT-00000002", "0?return") in new stack
    -- Executing [[email protected]:6] Set("SIP/PCL_OUT-00000002", "__CRM_HANGUP=1") in new stack
    -- Executing [[email protected]:7] AGI("SIP/PCL_OUT-00000002", "sangomacrm.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
    -- <SIP/PCL_OUT-00000002>AGI Script sangomacrm.agi completed, returning 0
    -- Executing [[email protected]:8] Return("SIP/PCL_OUT-00000002", "") in new stack
  == Spawn extension (ext-local, h, 1) exited non-zero on 'SIP/PCL_OUT-00000002'
    -- SIP/PCL_OUT-00000002 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
  == MixMonitor close filestream (mixed)
  == End MixMonitor Recording SIP/PCL_OUT-00000002

Something looks hinky in there, but I can’t figure it out.

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