Hi,
I have been facing this problem for a while now, and I don’t seem to find a direct solution for it
topology:
FreePBX —SIP TRUNK— OXE
Scenario:
call from Freepbx extension 4001 to OXE user 3839 (blind transfer to 3841 active).
I get the message “The number you have dialed is not in service”.
after tracing the verbose a little, i found the following a little strange:
freepbxCLI> core set verbose 0
Console verbose was OFF and is now 3.
– Executing [3839@from-internal:1] Macro(“SIP/4001-00000f1e”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/4001-00000f1e”, “TOUCH_MONITOR=1628073133.4762”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/4001-00000f1e”, “AMPUSER=4001”) in new stack
– Executing [s@macro-user-callerid:3] Set(“SIP/4001-00000f1e”, “HOTDESCKCHAN=4001-00000f1e”) in new stack
– Executing [s@macro-user-callerid:4] Set(“SIP/4001-00000f1e”, “HOTDESKEXTEN=4001”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/4001-00000f1e”, “HOTDESKCALL=0”) in new stack
– Executing [s@macro-user-callerid:6] ExecIf(“SIP/4001-00000f1e”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [s@macro-user-callerid:7] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [s@macro-user-callerid:8] GotoIf(“SIP/4001-00000f1e”, “0?report”) in new stack
– Executing [s@macro-user-callerid:9] ExecIf(“SIP/4001-00000f1e”, “1?Set(REALCALLERIDNUM=4001)”) in new stack
– Executing [s@macro-user-callerid:10] Set(“SIP/4001-00000f1e”, “AMPUSER=4001”) in new stack
– Executing [s@macro-user-callerid:11] GotoIf(“SIP/4001-00000f1e”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:12] Set(“SIP/4001-00000f1e”, “AMPUSERCIDNAME=Merakchi Hamza”) in new stack
– Executing [s@macro-user-callerid:13] ExecIf(“SIP/4001-00000f1e”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [s@macro-user-callerid:14] GotoIf(“SIP/4001-00000f1e”, “0?report”) in new stack
– Executing [s@macro-user-callerid:15] Set(“SIP/4001-00000f1e”, “AMPUSERCID=4001”) in new stack
– Executing [s@macro-user-callerid:16] Set(“SIP/4001-00000f1e”, “__DIAL_OPTIONS=HhTtr”) in new stack
– Executing [s@macro-user-callerid:17] Set(“SIP/4001-00000f1e”, “CALLERID(all)=“Merakchi Hamza” <4001>”) in new stack
– Executing [s@macro-user-callerid:18] Set(“SIP/4001-00000f1e”, “HOTDESCKCHAN=4001-00000f1e”) in new stack
– Executing [s@macro-user-callerid:19] Set(“SIP/4001-00000f1e”, “HOTDESKEXTEN=4001”) in new stack
– Executing [s@macro-user-callerid:20] Set(“SIP/4001-00000f1e”, “HOTDESKCALL=0”) in new stack
– Executing [s@macro-user-callerid:21] ExecIf(“SIP/4001-00000f1e”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [s@macro-user-callerid:22] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [s@macro-user-callerid:23] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERID(all)=”" < >)") in new stack
– Executing [s@macro-user-callerid:24] ExecIf(“SIP/4001-00000f1e”, “0?Set(CUSDIAL=)”) in new stack
– Executing [s@macro-user-callerid:25] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERID(all)=“Merakchi Hamza” <4001>)”) in new stack
– Executing [s@macro-user-callerid:26] GotoIf(“SIP/4001-00000f1e”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:27] ExecIf(“SIP/4001-00000f1e”, “1?Set(GROUP(concurrency_limit)=4001)”) in new stack
– Executing [s@macro-user-callerid:28] ExecIf(“SIP/4001-00000f1e”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@macro-user-callerid:29] NoOp(“SIP/4001-00000f1e”, “Macro Depth is 1”) in new stack
– Executing [s@macro-user-callerid:30] GotoIf(“SIP/4001-00000f1e”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,31)
– Executing [s@macro-user-callerid:31] GotoIf(“SIP/4001-00000f1e”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,50)
– Executing [s@macro-user-callerid:50] Set(“SIP/4001-00000f1e”, “CALLERID(number)=4001”) in new stack
– Executing [s@macro-user-callerid:51] Set(“SIP/4001-00000f1e”, “CALLERID(name)=Merakchi Hamza”) in new stack
– Executing [s@macro-user-callerid:52] GotoIf(“SIP/4001-00000f1e”, “0?cnum”) in new stack
– Executing [s@macro-user-callerid:53] Set(“SIP/4001-00000f1e”, “CDR(cnam)=Merakchi Hamza”) in new stack
– Executing [s@macro-user-callerid:54] Set(“SIP/4001-00000f1e”, “CDR(cnum)=4001”) in new stack
– Executing [s@macro-user-callerid:55] Set(“SIP/4001-00000f1e”, “CHANNEL(language)=en”) in new stack
– Executing [3839@from-internal:2] Gosub(“SIP/4001-00000f1e”, “sub-record-check,s,1(out,3839,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/4001-00000f1e”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“SIP/4001-00000f1e”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“SIP/4001-00000f1e”, “NOW=1628073133”) in new stack
– Executing [s@sub-record-check:4] Set(“SIP/4001-00000f1e”, “__DAY=04”) in new stack
– Executing [s@sub-record-check:5] Set(“SIP/4001-00000f1e”, “__MONTH=08”) in new stack
– Executing [s@sub-record-check:6] Set(“SIP/4001-00000f1e”, “__YEAR=2021”) in new stack
– Executing [s@sub-record-check:7] Set(“SIP/4001-00000f1e”, “__TIMESTR=20210804-113213”) in new stack
– Executing [s@sub-record-check:8] Set(“SIP/4001-00000f1e”, “__FROMEXTEN=4001”) in new stack
– Executing [s@sub-record-check:9] Set(“SIP/4001-00000f1e”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“SIP/4001-00000f1e”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“SIP/4001-00000f1e”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/4001-00000f1e”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/4001-00000f1e”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“SIP/4001-00000f1e”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“SIP/4001-00000f1e”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] NoOp(“SIP/4001-00000f1e”, “Outbound Recording Check from 4001 to 3839”) in new stack
– Executing [out@sub-record-check:2] Set(“SIP/4001-00000f1e”, “RECMODE=dontcare”) in new stack
– Executing [out@sub-record-check:3] ExecIf(“SIP/4001-00000f1e”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [out@sub-record-check:7] Gosub(“SIP/4001-00000f1e”, “recordcheck,1(dontcare,out,3839)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“SIP/4001-00000f1e”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“SIP/4001-00000f1e”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“SIP/4001-00000f1e”, “”) in new stack
– Executing [out@sub-record-check:8] Return(“SIP/4001-00000f1e”, “”) in new stack
– Executing [3839@from-internal:3] ExecIf(“SIP/4001-00000f1e”, “0 ?Set(CDR(accountcode)=)”) in new stack
– Executing [3839@from-internal:4] Set(“SIP/4001-00000f1e”, “_ROUTEID=2”) in new stack
– Executing [3839@from-internal:5] Set(“SIP/4001-00000f1e”, “_ROUTENAME=to_OXE”) in new stack
– Executing [3839@from-internal:6] Set(“SIP/4001-00000f1e”, “MOHCLASS=default”) in new stack
– Executing [3839@from-internal:7] Set(“SIP/4001-00000f1e”, “_CALLERIDNAMEINTERNAL=Merakchi Hamza”) in new stack
– Executing [3839@from-internal:8] Set(“SIP/4001-00000f1e”, “_CALLERIDNUMINTERNAL=4001”) in new stack
– Executing [3839@from-internal:9] Set(“SIP/4001-00000f1e”, “_EMAILNOTIFICATION=FALSE”) in new stack
– Executing [3839@from-internal:10] Set(“SIP/4001-00000f1e”, “_NODEST=”) in new stack
– Executing [3839@from-internal:11] Macro(“SIP/4001-00000f1e”, “dialout-trunk,1,6013839,off”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/4001-00000f1e”, “DIAL_TRUNK=1”) in new stack
– Executing [s@macro-dialout-trunk:2] ExecIf(“SIP/4001-00000f1e”, “0?Set(DIAL_OPTIONS=Hhtr)”) in new stack
– Executing [s@macro-dialout-trunk:3] GosubIf(“SIP/4001-00000f1e”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:4] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERID(num)=4001)”) in new stack
– Executing [s@macro-dialout-trunk:5] GotoIf(“SIP/4001-00000f1e”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/4001-00000f1e”, “DIAL_NUMBER=6013839”) in new stack
– Executing [s@macro-dialout-trunk:7] Set(“SIP/4001-00000f1e”, “DIAL_TRUNK_OPTIONS=HhTtr”) in new stack
– Executing [s@macro-dialout-trunk:8] Set(“SIP/4001-00000f1e”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [s@macro-dialout-trunk:9] Set(“SIP/4001-00000f1e”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [s@macro-dialout-trunk:10] GotoIf(“SIP/4001-00000f1e”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,12)
– Executing [s@macro-dialout-trunk:12] GotoIf(“SIP/4001-00000f1e”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:13] Macro(“SIP/4001-00000f1e”, “outbound-callerid,1”) in new stack
– Executing [s@macro-outbound-callerid:1] NoOp(“SIP/4001-00000f1e”, “4001”) in new stack
– Executing [s@macro-outbound-callerid:2] NoOp(“SIP/4001-00000f1e”, “”) in new stack
– Executing [s@macro-outbound-callerid:3] NoOp(“SIP/4001-00000f1e”, “off”) in new stack
– Executing [s@macro-outbound-callerid:4] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:5] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:6] Set(“SIP/4001-00000f1e”, “HOTDESCKCHAN=4001-00000f1e”) in new stack
– Executing [s@macro-outbound-callerid:7] Set(“SIP/4001-00000f1e”, “HOTDESKEXTEN=4001”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/4001-00000f1e”, “HOTDESKCALL=0”) in new stack
– Executing [s@macro-outbound-callerid:9] ExecIf(“SIP/4001-00000f1e”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [s@macro-outbound-callerid:10] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [s@macro-outbound-callerid:11] Set(“SIP/4001-00000f1e”, “ALLOWTHISROUTE=NO”) in new stack
– Executing [s@macro-outbound-callerid:12] ExecIf(“SIP/4001-00000f1e”, “0?Set(ALLOWTHISROUTE=YES)”) in new stack
– Executing [s@macro-outbound-callerid:13] ExecIf(“SIP/4001-00000f1e”, “0?Hangup()”) in new stack
– Executing [s@macro-outbound-callerid:14] ExecIf(“SIP/4001-00000f1e”, “0?Set(REALCALLERIDNUM=4001)”) in new stack
– Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/4001-00000f1e”, “0?Set(AMPUSER=4001)”) in new stack
– Executing [s@macro-outbound-callerid:16] GotoIf(“SIP/4001-00000f1e”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,20)
– Executing [s@macro-outbound-callerid:20] Set(“SIP/4001-00000f1e”, “USEROUTCID=“Merakchi Hamza” <6014001>”) in new stack
– Executing [s@macro-outbound-callerid:21] Set(“SIP/4001-00000f1e”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:22] ExecIf(“SIP/4001-00000f1e”, “0?Set(EMERGENCYCID=)”) in new stack
– Executing [s@macro-outbound-callerid:23] Set(“SIP/4001-00000f1e”, “TRUNKOUTCID=<6014000>”) in new stack
– Executing [s@macro-outbound-callerid:24] GotoIf(“SIP/4001-00000f1e”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,30)
– Executing [s@macro-outbound-callerid:30] ExecIf(“SIP/4001-00000f1e”, “1?Set(CALLERID(all)=<6014000>)”) in new stack
– Executing [s@macro-outbound-callerid:31] ExecIf(“SIP/4001-00000f1e”, “1?Set(CALLERID(all)=“Merakchi Hamza” <6014001>)”) in new stack
– Executing [s@macro-outbound-callerid:32] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:33] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERID(all)=4001)”) in new stack
– Executing [s@macro-outbound-callerid:34] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERID(all)=4001)”) in new stack
– Executing [s@macro-outbound-callerid:35] Set(“SIP/4001-00000f1e”, “TIOHIDE=no”) in new stack
– Executing [s@macro-outbound-callerid:36] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:37] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:38] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:39] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:40] Set(“SIP/4001-00000f1e”, “CDR(outbound_cnum)=6014001”) in new stack
– Executing [s@macro-outbound-callerid:41] Set(“SIP/4001-00000f1e”, “CDR(outbound_cnam)=Merakchi Hamza”) in new stack
– Executing [s@macro-dialout-trunk:14] GosubIf(“SIP/4001-00000f1e”, “0?sub-flp-1,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:15] Set(“SIP/4001-00000f1e”, “OUTNUM=6013839”) in new stack
– Executing [s@macro-dialout-trunk:16] Set(“SIP/4001-00000f1e”, “custom=SIP/OXE”) in new stack
– Executing [s@macro-dialout-trunk:17] ExecIf(“SIP/4001-00000f1e”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack
– Executing [s@macro-dialout-trunk:18] ExecIf(“SIP/4001-00000f1e”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:19] Macro(“SIP/4001-00000f1e”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/4001-00000f1e”, “”) in new stack
– Executing [s@macro-dialout-trunk:20] GotoIf(“SIP/4001-00000f1e”, “0?skipcrm”) in new stack
– Executing [s@macro-dialout-trunk:21] Set(“SIP/4001-00000f1e”, “__CRM_DIRECTION=OUTBOUND”) in new stack
– Executing [s@macro-dialout-trunk:22] Set(“SIP/4001-00000f1e”, “__CRM_DESTINATION=6013839”) in new stack
– Executing [s@macro-dialout-trunk:23] Set(“SIP/4001-00000f1e”, “__CRM_SOURCE=4001”) in new stack
– Executing [s@macro-dialout-trunk:24] AGI(“SIP/4001-00000f1e”, “sangomacrm.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
– <SIP/4001-00000f1e>AGI Script sangomacrm.agi completed, returning 0
– Executing [s@macro-dialout-trunk:25] Set(“SIP/4001-00000f1e”, “CHANNEL(hangup_handler_push)=crm-hangup,s,1”) in new stack
– Executing [s@macro-dialout-trunk:26] NoOp(“SIP/4001-00000f1e”, “CRM Finished”) in new stack
– Executing [s@macro-dialout-trunk:27] GotoIf(“SIP/4001-00000f1e”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:28] ExecIf(“SIP/4001-00000f1e”, “1?Set(CONNECTEDLINE(num,i)=6013839)”) in new stack
– Executing [s@macro-dialout-trunk:29] ExecIf(“SIP/4001-00000f1e”, “1?Set(CONNECTEDLINE(name,i)=CID:6014001)”) in new stack
– Executing [s@macro-dialout-trunk:30] ExecIf(“SIP/4001-00000f1e”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)6014001)”) in new stack
– Executing [s@macro-dialout-trunk:31] GotoIf(“SIP/4001-00000f1e”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:32] ExecIf(“SIP/4001-00000f1e”, “0?Set(DIAL_TRUNK_OPTIONS=)”) in new stack
– Executing [s@macro-dialout-trunk:33] Set(“SIP/4001-00000f1e”, “HASH(__SIPHEADERS,Alert-Info)=unset”) in new stack
– Executing [s@macro-dialout-trunk:34] Dial(“SIP/4001-00000f1e”, “SIP/OXE/6013839,300,Tb(func-apply-sipheaders^s^1,(1))U(sub-send-obroute-email^6013839^3839^1^1628073133^Merakchi Hamza^6014001)”) in new stack
== Using SIP VIDEO TOS bits 136
== Using SIP VIDEO CoS mark 6
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– SIP/OXE-00000f1f Internal Gosub(func-apply-sipheaders,s,1(1)) start
– Executing [s@func-apply-sipheaders:1] ExecIf(“SIP/OXE-00000f1f”, “0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [s@func-apply-sipheaders:2] NoOp(“SIP/OXE-00000f1f”, “Applying SIP Headers to channel SIP/OXE-00000f1f”) in new stack
– Executing [s@func-apply-sipheaders:3] Set(“SIP/OXE-00000f1f”, “TECH=SIP”) in new stack
– Executing [s@func-apply-sipheaders:4] Set(“SIP/OXE-00000f1f”, “SIPHEADERKEYS=Alert-Info”) in new stack
– Executing [s@func-apply-sipheaders:5] While(“SIP/OXE-00000f1f”, “1”) in new stack
– Executing [s@func-apply-sipheaders:6] Set(“SIP/OXE-00000f1f”, “sipheader=unset”) in new stack
– Executing [s@func-apply-sipheaders:7] ExecIf(“SIP/OXE-00000f1f”, “1?SIPRemoveHeader(Alert-Info:)”) in new stack
– Executing [s@func-apply-sipheaders:8] ExecIf(“SIP/OXE-00000f1f”, “0?Set(PJSIP_HEADER(remove,Alert-Info)=)”) in new stack
– Executing [s@func-apply-sipheaders:9] ExecIf(“SIP/OXE-00000f1f”, “0?Set(sipheader=http://127.0.0.1;info=unset)”) in new stack
– Executing [s@func-apply-sipheaders:10] ExecIf(“SIP/OXE-00000f1f”, “0?Set(sipheader=http://127.0.0.1unset)”) in new stack
– Executing [s@func-apply-sipheaders:11] ExecIf(“SIP/OXE-00000f1f”, “0?SIPAddHeader(Alert-Info:unset)”) in new stack
– Executing [s@func-apply-sipheaders:12] ExecIf(“SIP/OXE-00000f1f”, “0?Set(PJSIP_HEADER(add,Alert-Info)=unset)”) in new stack
– Executing [s@func-apply-sipheaders:13] EndWhile(“SIP/OXE-00000f1f”, “”) in new stack
– Executing [s@func-apply-sipheaders:5] While(“SIP/OXE-00000f1f”, “0”) in new stack
– Executing [s@func-apply-sipheaders:14] Return(“SIP/OXE-00000f1f”, “”) in new stack
== Spawn extension (from-trunk-sip-OXE, 3839, 1) exited non-zero on ‘SIP/OXE-00000f1f’
– SIP/OXE-00000f1f Internal Gosub(func-apply-sipheaders,s,1(1)) complete GOSUB_RETVAL=
– Called SIP/OXE/6013839
– Got SIP response 302 “Moved Temporarily” back from 10.4.4.3:5060
– Now forwarding SIP/4001-00000f1e to ‘Local/6013841@from-trunk-sip-OXE’ (thanks to SIP/OXE-00000f1f)
– Not accepting call completion offers from call-forward recipient Local/6013841@from-trunk-sip-OXE-000001bc;1
– Executing [6013841@from-trunk-sip-OXE:1] Set(“Local/6013841@from-trunk-sip-OXE-000001bc;2”, “GROUP()=OUT_1”) in new stack
– Executing [6013841@from-trunk-sip-OXE:2] Goto(“Local/6013841@from-trunk-sip-OXE-000001bc;2”, “from-trunk,6013841,1”) in new stack
– Goto (from-trunk,6013841,1)
– Executing [6013841@from-trunk:1] Set(“Local/6013841@from-trunk-sip-OXE-000001bc;2”, “__FROM_DID=6013841”) in new stack
– Executing [6013841@from-trunk:2] NoOp(“Local/6013841@from-trunk-sip-OXE-000001bc;2”, “Received an unknown call with DID set to 6013841”) in new stack
– Executing [6013841@from-trunk:3] Goto(“Local/6013841@from-trunk-sip-OXE-000001bc;2”, “s,a2”) in new stack
– Goto (from-trunk,s,2)
– Executing [s@from-trunk:2] Answer(“Local/6013841@from-trunk-sip-OXE-000001bc;2”, “”) in new stack
– Local/6013841@from-trunk-sip-OXE-000001bc;1 answered SIP/4001-00000f1e
– Local/6013841@from-trunk-sip-OXE-000001bc;1 Internal Gosub(sub-send-obroute-email,s,1(6013839,3839,1,1628073133,Merakchi Hamza,6014001)) start
– Executing [s@sub-send-obroute-email:1] GotoIf(“Local/6013841@from-trunk-sip-OXE-000001bc;1”, “0?sendEmail”) in new stack
– Executing [s@sub-send-obroute-email:2] NoOp(“Local/6013841@from-trunk-sip-OXE-000001bc;1”, “email notifications disabled…exiting.”) in new stack
– Executing [s@sub-send-obroute-email:3] Return(“Local/6013841@from-trunk-sip-OXE-000001bc;1”, “”) in new stack
== Spawn extension (from-trunk-sip-OXE, , 1) exited non-zero on ‘Local/6013841@from-trunk-sip-OXE-000001bc;1’
– Local/6013841@from-trunk-sip-OXE-000001bc;1 Internal Gosub(sub-send-obroute-email,s,1(6013839,3839,1,1628073133,Merakchi Hamza,6014001)) complete GOSUB_RETVAL=
– Channel Local/6013841@from-trunk-sip-OXE-000001bc;1 joined ‘simple_bridge’ basic-bridge <79024cfe-75fa-4ba1-ac4b-f6d90da82ef7>
– Channel SIP/4001-00000f1e joined ‘simple_bridge’ basic-bridge <79024cfe-75fa-4ba1-ac4b-f6d90da82ef7>
[2021-08-04 11:32:14] WARNING[2824][C-000007b9]: chan_sip.c:23135 func_header_read: This function can only be used on SIP channels.
– Executing [s@from-trunk:3] Log(“Local/6013841@from-trunk-sip-OXE-000001bc;2”, "WARNING,Friendly Scanner from ") in new stack
[2021-08-04 11:32:14] WARNING[2824][C-000007b9]: Ext. s:3 @ from-trunk: Friendly Scanner from
– Executing [s@from-trunk:4] Wait(“Local/6013841@from-trunk-sip-OXE-000001bc;2”, “2”) in new stack
– Executing [s@from-trunk:5] Playback(“Local/6013841@from-trunk-sip-OXE-000001bc;2”, “ss-noservice”) in new stack
– <Local/6013841@from-trunk-sip-OXE-000001bc;2> Playing ‘ss-noservice.ulaw’ (language ‘en’)
– Channel SIP/4001-00000f1e left ‘simple_bridge’ basic-bridge <79024cfe-75fa-4ba1-ac4b-f6d90da82ef7>
== Spawn extension (macro-dialout-trunk, s, 34) exited non-zero on ‘SIP/4001-00000f1e’ in macro ‘dialout-trunk’
== Spawn extension (from-internal, 3839, 11) exited non-zero on ‘SIP/4001-00000f1e’
– Executing [h@from-internal:1] Macro(“SIP/4001-00000f1e”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/4001-00000f1e”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Channel Local/6013841@from-trunk-sip-OXE-000001bc;1 left ‘simple_bridge’ basic-bridge <79024cfe-75fa-4ba1-ac4b-f6d90da82ef7>
– Executing [h@from-trunk:1] Macro(“Local/6013841@from-trunk-sip-OXE-000001bc;2”, “hangupcall,”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“Local/6013841@from-trunk-sip-OXE-000001bc;2”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] ExecIf(“SIP/4001-00000f1e”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [s@macro-hangupcall:4] NoOp(“SIP/4001-00000f1e”, "Local/6013841@from-trunk-sip-OXE-000001bc;1 montior file= ") in new stack
– Executing [s@macro-hangupcall:5] GotoIf(“SIP/4001-00000f1e”, “1?skipagi”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [s@macro-hangupcall:7] Hangup(“SIP/4001-00000f1e”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 7) exited non-zero on ‘SIP/4001-00000f1e’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/4001-00000f1e’
– SIP/4001-00000f1e Internal Gosub(crm-hangup,s,1) start
– Executing [s@crm-hangup:1] NoOp(“SIP/4001-00000f1e”, “Sending Hangup to CRM”) in new stack
– Executing [s@crm-hangup:2] NoOp(“SIP/4001-00000f1e”, “HANGUP CAUSE: 16”) in new stack
– Executing [s@crm-hangup:3] ExecIf(“SIP/4001-00000f1e”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
– Executing [s@crm-hangup:4] NoOp(“SIP/4001-00000f1e”, “MASTER CHANNEL: 1628073133.4762 = 1628073133.4762”) in new stack
– Executing [s@crm-hangup:5] GotoIf(“SIP/4001-00000f1e”, “0?return”) in new stack
– Executing [s@crm-hangup:6] Set(“SIP/4001-00000f1e”, “__CRM_HANGUP=1”) in new stack
– Executing [s@crm-hangup:7] AGI(“SIP/4001-00000f1e”, “sangomacrm.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
– Executing [s@macro-hangupcall:3] ExecIf(“Local/6013841@from-trunk-sip-OXE-000001bc;2”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [s@macro-hangupcall:4] NoOp(“Local/6013841@from-trunk-sip-OXE-000001bc;2”, " montior file= ") in new stack
– Executing [s@macro-hangupcall:5] GotoIf(“Local/6013841@from-trunk-sip-OXE-000001bc;2”, “1?skipagi”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [s@macro-hangupcall:7] Hangup(“Local/6013841@from-trunk-sip-OXE-000001bc;2”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 7) exited non-zero on ‘Local/6013841@from-trunk-sip-OXE-000001bc;2’ in macro ‘hangupcall’
== Spawn extension (from-trunk, h, 1) exited non-zero on ‘Local/6013841@from-trunk-sip-OXE-000001bc;2’
– <SIP/4001-00000f1e>AGI Script sangomacrm.agi completed, returning 0
– Executing [s@crm-hangup:8] Return(“SIP/4001-00000f1e”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/4001-00000f1e’
– SIP/4001-00000f1e Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
freepbxCLI> core set verbose 0
Console verbose was 3 and is now OFF.
I used custom extensions as a quick workaround as follows:
[call_to_OXE_trunk]
exten => _0[567]XXXXXXX.,1,NoOp(TEST call via OXE trunk…)
same => n,Dial(SIP/OXE/${EXTEN},1)
same => n,Hangup()
and included it in custom contexts, but it’s not practical as it leaves all the freepbx mechanics out.
Thank you in advance.
Regards,