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 [[email protected]:1] Macro(“SIP/4001-00000f1e”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
– Executing [[email protected]:1] Set(“SIP/4001-00000f1e”, “TOUCH_MONITOR=1628073133.4762”) in new stack
– Executing [[email protected]:2] Set(“SIP/4001-00000f1e”, “AMPUSER=4001”) in new stack
– Executing [[email protected]:3] Set(“SIP/4001-00000f1e”, “HOTDESCKCHAN=4001-00000f1e”) in new stack
– Executing [[email protected]:4] Set(“SIP/4001-00000f1e”, “HOTDESKEXTEN=4001”) in new stack
– Executing [[email protected]:5] Set(“SIP/4001-00000f1e”, “HOTDESKCALL=0”) in new stack
– Executing [[email protected]:6] ExecIf(“SIP/4001-00000f1e”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [[email protected]:7] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [[email protected]:8] GotoIf(“SIP/4001-00000f1e”, “0?report”) in new stack
– Executing [[email protected]:9] ExecIf(“SIP/4001-00000f1e”, “1?Set(REALCALLERIDNUM=4001)”) in new stack
– Executing [[email protected]:10] Set(“SIP/4001-00000f1e”, “AMPUSER=4001”) in new stack
– Executing [[email protected]:11] GotoIf(“SIP/4001-00000f1e”, “0?limit”) in new stack
– Executing [[email protected]:12] Set(“SIP/4001-00000f1e”, “AMPUSERCIDNAME=Merakchi Hamza”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/4001-00000f1e”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [[email protected]:14] GotoIf(“SIP/4001-00000f1e”, “0?report”) in new stack
– Executing [[email protected]:15] Set(“SIP/4001-00000f1e”, “AMPUSERCID=4001”) in new stack
– Executing [[email protected]:16] Set(“SIP/4001-00000f1e”, “__DIAL_OPTIONS=HhTtr”) in new stack
– Executing [[email protected]:17] Set(“SIP/4001-00000f1e”, “CALLERID(all)=“Merakchi Hamza” <4001>”) in new stack
– Executing [[email protected]:18] Set(“SIP/4001-00000f1e”, “HOTDESCKCHAN=4001-00000f1e”) in new stack
– Executing [[email protected]:19] Set(“SIP/4001-00000f1e”, “HOTDESKEXTEN=4001”) in new stack
– Executing [[email protected]:20] Set(“SIP/4001-00000f1e”, “HOTDESKCALL=0”) in new stack
– Executing [[email protected]:21] ExecIf(“SIP/4001-00000f1e”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [[email protected]:22] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [[email protected]:23] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERID(all)=”" < >)") in new stack
– Executing [[email protected]:24] ExecIf(“SIP/4001-00000f1e”, “0?Set(CUSDIAL=)”) in new stack
– Executing [[email protected]:25] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERID(all)=“Merakchi Hamza” <4001>)”) in new stack
– Executing [[email protected]:26] GotoIf(“SIP/4001-00000f1e”, “0?limit”) in new stack
– Executing [[email protected]:27] ExecIf(“SIP/4001-00000f1e”, “1?Set(GROUP(concurrency_limit)=4001)”) in new stack
– Executing [[email protected]:28] ExecIf(“SIP/4001-00000f1e”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [[email protected]:29] NoOp(“SIP/4001-00000f1e”, “Macro Depth is 1”) in new stack
– Executing [[email protected]:30] GotoIf(“SIP/4001-00000f1e”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,31)
– Executing [[email protected]:31] GotoIf(“SIP/4001-00000f1e”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,50)
– Executing [[email protected]:50] Set(“SIP/4001-00000f1e”, “CALLERID(number)=4001”) in new stack
– Executing [[email protected]:51] Set(“SIP/4001-00000f1e”, “CALLERID(name)=Merakchi Hamza”) in new stack
– Executing [[email protected]:52] GotoIf(“SIP/4001-00000f1e”, “0?cnum”) in new stack
– Executing [[email protected]:53] Set(“SIP/4001-00000f1e”, “CDR(cnam)=Merakchi Hamza”) in new stack
– Executing [[email protected]:54] Set(“SIP/4001-00000f1e”, “CDR(cnum)=4001”) in new stack
– Executing [[email protected]:55] Set(“SIP/4001-00000f1e”, “CHANNEL(language)=en”) in new stack
– Executing [[email protected]:2] Gosub(“SIP/4001-00000f1e”, “sub-record-check,s,1(out,3839,dontcare)”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/4001-00000f1e”, “0?initialized”) in new stack
– Executing [[email protected]:2] Set(“SIP/4001-00000f1e”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:3] Set(“SIP/4001-00000f1e”, “NOW=1628073133”) in new stack
– Executing [[email protected]:4] Set(“SIP/4001-00000f1e”, “__DAY=04”) in new stack
– Executing [[email protected]:5] Set(“SIP/4001-00000f1e”, “__MONTH=08”) in new stack
– Executing [[email protected]:6] Set(“SIP/4001-00000f1e”, “__YEAR=2021”) in new stack
– Executing [[email protected]:7] Set(“SIP/4001-00000f1e”, “__TIMESTR=20210804-113213”) in new stack
– Executing [[email protected]:8] Set(“SIP/4001-00000f1e”, “__FROMEXTEN=4001”) in new stack
– Executing [[email protected]:9] Set(“SIP/4001-00000f1e”, “__MON_FMT=wav”) in new stack
– Executing [[email protected]:10] NoOp(“SIP/4001-00000f1e”, “Recordings initialized”) in new stack
– Executing [[email protected]:11] ExecIf(“SIP/4001-00000f1e”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [[email protected]:12] Set(“SIP/4001-00000f1e”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/4001-00000f1e”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [[email protected]:14] GotoIf(“SIP/4001-00000f1e”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [[email protected]:17] GotoIf(“SIP/4001-00000f1e”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [[email protected]:1] NoOp(“SIP/4001-00000f1e”, “Outbound Recording Check from 4001 to 3839”) in new stack
– Executing [[email protected]:2] Set(“SIP/4001-00000f1e”, “RECMODE=dontcare”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/4001-00000f1e”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [[email protected]:7] Gosub(“SIP/4001-00000f1e”, “recordcheck,1(dontcare,out,3839)”) in new stack
– Executing [[email protected]:1] NoOp(“SIP/4001-00000f1e”, “Starting recording check against dontcare”) in new stack
– Executing [[email protected]:2] Goto(“SIP/4001-00000f1e”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [[email protected]:3] Return(“SIP/4001-00000f1e”, “”) in new stack
– Executing [[email protected]:8] Return(“SIP/4001-00000f1e”, “”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/4001-00000f1e”, “0 ?Set(CDR(accountcode)=)”) in new stack
– Executing [[email protected]:4] Set(“SIP/4001-00000f1e”, “_ROUTEID=2”) in new stack
– Executing [[email protected]:5] Set(“SIP/4001-00000f1e”, “_ROUTENAME=to_OXE”) in new stack
– Executing [[email protected]:6] Set(“SIP/4001-00000f1e”, “MOHCLASS=default”) in new stack
– Executing [[email protected]:7] Set(“SIP/4001-00000f1e”, “_CALLERIDNAMEINTERNAL=Merakchi Hamza”) in new stack
– Executing [[email protected]:8] Set(“SIP/4001-00000f1e”, “_CALLERIDNUMINTERNAL=4001”) in new stack
– Executing [[email protected]:9] Set(“SIP/4001-00000f1e”, “_EMAILNOTIFICATION=FALSE”) in new stack
– Executing [[email protected]:10] Set(“SIP/4001-00000f1e”, “_NODEST=”) in new stack
– Executing [[email protected]:11] Macro(“SIP/4001-00000f1e”, “dialout-trunk,1,6013839,off”) in new stack
– Executing [[email protected]:1] Set(“SIP/4001-00000f1e”, “DIAL_TRUNK=1”) in new stack
– Executing [[email protected]:2] ExecIf(“SIP/4001-00000f1e”, “0?Set(DIAL_OPTIONS=Hhtr)”) in new stack
– Executing [[email protected]:3] GosubIf(“SIP/4001-00000f1e”, “0?sub-pincheck,s,1()”) in new stack
– Executing [[email protected]:4] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERID(num)=4001)”) in new stack
– Executing [[email protected]:5] GotoIf(“SIP/4001-00000f1e”, “0?disabletrunk,1”) in new stack
– Executing [[email protected]:6] Set(“SIP/4001-00000f1e”, “DIAL_NUMBER=6013839”) in new stack
– Executing [[email protected]:7] Set(“SIP/4001-00000f1e”, “DIAL_TRUNK_OPTIONS=HhTtr”) in new stack
– Executing [[email protected]:8] Set(“SIP/4001-00000f1e”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [[email protected]:9] Set(“SIP/4001-00000f1e”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [[email protected]:10] GotoIf(“SIP/4001-00000f1e”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,12)
– Executing [[email protected]:12] GotoIf(“SIP/4001-00000f1e”, “0?skipoutcid”) in new stack
– Executing [[email protected]:13] Macro(“SIP/4001-00000f1e”, “outbound-callerid,1”) in new stack
– Executing [[email protected]:1] NoOp(“SIP/4001-00000f1e”, “4001”) in new stack
– Executing [[email protected]:2] NoOp(“SIP/4001-00000f1e”, “”) in new stack
– Executing [[email protected]:3] NoOp(“SIP/4001-00000f1e”, “off”) in new stack
– Executing [[email protected]:4] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
– Executing [[email protected]:5] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
– Executing [[email protected]:6] Set(“SIP/4001-00000f1e”, “HOTDESCKCHAN=4001-00000f1e”) in new stack
– Executing [[email protected]:7] Set(“SIP/4001-00000f1e”, “HOTDESKEXTEN=4001”) in new stack
– Executing [[email protected]:8] Set(“SIP/4001-00000f1e”, “HOTDESKCALL=0”) in new stack
– Executing [[email protected]:9] ExecIf(“SIP/4001-00000f1e”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [[email protected]:10] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [[email protected]:11] Set(“SIP/4001-00000f1e”, “ALLOWTHISROUTE=NO”) in new stack
– Executing [[email protected]:12] ExecIf(“SIP/4001-00000f1e”, “0?Set(ALLOWTHISROUTE=YES)”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/4001-00000f1e”, “0?Hangup()”) in new stack
– Executing [[email protected]:14] ExecIf(“SIP/4001-00000f1e”, “0?Set(REALCALLERIDNUM=4001)”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/4001-00000f1e”, “0?Set(AMPUSER=4001)”) in new stack
– Executing [[email protected]:16] GotoIf(“SIP/4001-00000f1e”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,20)
– Executing [[email protected]:20] Set(“SIP/4001-00000f1e”, “USEROUTCID=“Merakchi Hamza” <6014001>”) in new stack
– Executing [[email protected]:21] Set(“SIP/4001-00000f1e”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:22] ExecIf(“SIP/4001-00000f1e”, “0?Set(EMERGENCYCID=)”) in new stack
– Executing [[email protected]:23] Set(“SIP/4001-00000f1e”, “TRUNKOUTCID=<6014000>”) in new stack
– Executing [[email protected]:24] GotoIf(“SIP/4001-00000f1e”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,30)
– Executing [[email protected]:30] ExecIf(“SIP/4001-00000f1e”, “1?Set(CALLERID(all)=<6014000>)”) in new stack
– Executing [[email protected]:31] ExecIf(“SIP/4001-00000f1e”, “1?Set(CALLERID(all)=“Merakchi Hamza” <6014001>)”) in new stack
– Executing [[email protected]:32] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:33] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERID(all)=4001)”) in new stack
– Executing [[email protected]:34] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERID(all)=4001)”) in new stack
– Executing [[email protected]:35] Set(“SIP/4001-00000f1e”, “TIOHIDE=no”) in new stack
– Executing [[email protected]:36] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:37] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:38] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:39] ExecIf(“SIP/4001-00000f1e”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:40] Set(“SIP/4001-00000f1e”, “CDR(outbound_cnum)=6014001”) in new stack
– Executing [[email protected]:41] Set(“SIP/4001-00000f1e”, “CDR(outbound_cnam)=Merakchi Hamza”) in new stack
– Executing [[email protected]:14] GosubIf(“SIP/4001-00000f1e”, “0?sub-flp-1,s,1()”) in new stack
– Executing [[email protected]:15] Set(“SIP/4001-00000f1e”, “OUTNUM=6013839”) in new stack
– Executing [[email protected]:16] Set(“SIP/4001-00000f1e”, “custom=SIP/OXE”) in new stack
– Executing [[email protected]:17] ExecIf(“SIP/4001-00000f1e”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack
– Executing [[email protected]:18] ExecIf(“SIP/4001-00000f1e”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack
– Executing [[email protected]:19] Macro(“SIP/4001-00000f1e”, “dialout-trunk-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“SIP/4001-00000f1e”, “”) in new stack
– Executing [[email protected]:20] GotoIf(“SIP/4001-00000f1e”, “0?skipcrm”) in new stack
– Executing [[email protected]:21] Set(“SIP/4001-00000f1e”, “__CRM_DIRECTION=OUTBOUND”) in new stack
– Executing [[email protected]:22] Set(“SIP/4001-00000f1e”, “__CRM_DESTINATION=6013839”) in new stack
– Executing [[email protected]:23] Set(“SIP/4001-00000f1e”, “__CRM_SOURCE=4001”) in new stack
– Executing [[email protected]: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 [[email protected]:25] Set(“SIP/4001-00000f1e”, “CHANNEL(hangup_handler_push)=crm-hangup,s,1”) in new stack
– Executing [[email protected]:26] NoOp(“SIP/4001-00000f1e”, “CRM Finished”) in new stack
– Executing [[email protected]:27] GotoIf(“SIP/4001-00000f1e”, “0?bypass,1”) in new stack
– Executing [[email protected]:28] ExecIf(“SIP/4001-00000f1e”, “1?Set(CONNECTEDLINE(num,i)=6013839)”) in new stack
– Executing [[email protected]:29] ExecIf(“SIP/4001-00000f1e”, “1?Set(CONNECTEDLINE(name,i)=CID:6014001)”) in new stack
– Executing [[email protected]:30] ExecIf(“SIP/4001-00000f1e”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)6014001)”) in new stack
– Executing [[email protected]:31] GotoIf(“SIP/4001-00000f1e”, “0?customtrunk”) in new stack
– Executing [[email protected]:32] ExecIf(“SIP/4001-00000f1e”, “0?Set(DIAL_TRUNK_OPTIONS=)”) in new stack
– Executing [[email protected]:33] Set(“SIP/4001-00000f1e”, “HASH(__SIPHEADERS,Alert-Info)=unset”) in new stack
– Executing [[email protected]: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 [[email protected]:1] ExecIf(“SIP/OXE-00000f1f”, “0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [[email protected]:2] NoOp(“SIP/OXE-00000f1f”, “Applying SIP Headers to channel SIP/OXE-00000f1f”) in new stack
– Executing [[email protected]:3] Set(“SIP/OXE-00000f1f”, “TECH=SIP”) in new stack
– Executing [[email protected]:4] Set(“SIP/OXE-00000f1f”, “SIPHEADERKEYS=Alert-Info”) in new stack
– Executing [[email protected]:5] While(“SIP/OXE-00000f1f”, “1”) in new stack
– Executing [[email protected]:6] Set(“SIP/OXE-00000f1f”, “sipheader=unset”) in new stack
– Executing [[email protected]:7] ExecIf(“SIP/OXE-00000f1f”, “1?SIPRemoveHeader(Alert-Info:)”) in new stack
– Executing [[email protected]:8] ExecIf(“SIP/OXE-00000f1f”, “0?Set(PJSIP_HEADER(remove,Alert-Info)=)”) in new stack
– Executing [[email protected]:9] ExecIf(“SIP/OXE-00000f1f”, “0?Set(sipheader=http://127.0.0.1;info=unset)”) in new stack
– Executing [[email protected]:10] ExecIf(“SIP/OXE-00000f1f”, “0?Set(sipheader=http://127.0.0.1unset)”) in new stack
– Executing [[email protected]:11] ExecIf(“SIP/OXE-00000f1f”, “0?SIPAddHeader(Alert-Info:unset)”) in new stack
– Executing [[email protected]:12] ExecIf(“SIP/OXE-00000f1f”, “0?Set(PJSIP_HEADER(add,Alert-Info)=unset)”) in new stack
– Executing [[email protected]:13] EndWhile(“SIP/OXE-00000f1f”, “”) in new stack
– Executing [[email protected]:5] While(“SIP/OXE-00000f1f”, “0”) in new stack
– Executing [[email protected]: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/[email protected]’ (thanks to SIP/OXE-00000f1f)
– Not accepting call completion offers from call-forward recipient Local/[email protected];1
– Executing [[email protected]:1] Set(“Local/[email protected];2”, “GROUP()=OUT_1”) in new stack
– Executing [[email protected]:2] Goto(“Local/[email protected];2”, “from-trunk,6013841,1”) in new stack
– Goto (from-trunk,6013841,1)
– Executing [[email protected]:1] Set(“Local/[email protected];2”, “__FROM_DID=6013841”) in new stack
– Executing [[email protected]:2] NoOp(“Local/[email protected];2”, “Received an unknown call with DID set to 6013841”) in new stack
– Executing [[email protected]:3] Goto(“Local/[email protected];2”, “s,a2”) in new stack
– Goto (from-trunk,s,2)
– Executing [[email protected]:2] Answer(“Local/[email protected];2”, “”) in new stack
– Local/[email protected];1 answered SIP/4001-00000f1e
– Local/[email protected];1 Internal Gosub(sub-send-obroute-email,s,1(6013839,3839,1,1628073133,Merakchi Hamza,6014001)) start
– Executing [[email protected]:1] GotoIf(“Local/[email protected];1”, “0?sendEmail”) in new stack
– Executing [[email protected]:2] NoOp(“Local/[email protected];1”, “email notifications disabled…exiting.”) in new stack
– Executing [[email protected]:3] Return(“Local/[email protected];1”, “”) in new stack
== Spawn extension (from-trunk-sip-OXE, , 1) exited non-zero on ‘Local/[email protected];1’
– Local/[email protected];1 Internal Gosub(sub-send-obroute-email,s,1(6013839,3839,1,1628073133,Merakchi Hamza,6014001)) complete GOSUB_RETVAL=
– Channel Local/[email protected];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 [[email protected]:3] Log(“Local/[email protected];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 [[email protected]:4] Wait(“Local/[email protected];2”, “2”) in new stack
– Executing [[email protected]:5] Playback(“Local/[email protected];2”, “ss-noservice”) in new stack
– <Local/[email protected];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 [[email protected]:1] Macro(“SIP/4001-00000f1e”, “hangupcall”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/4001-00000f1e”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Channel Local/[email protected];1 left ‘simple_bridge’ basic-bridge <79024cfe-75fa-4ba1-ac4b-f6d90da82ef7>
– Executing [[email protected]:1] Macro(“Local/[email protected];2”, “hangupcall,”) in new stack
– Executing [[email protected]:1] GotoIf(“Local/[email protected];2”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [[email protected]:3] ExecIf(“SIP/4001-00000f1e”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [[email protected]:4] NoOp(“SIP/4001-00000f1e”, "Local/[email protected]-OXE-000001bc;1 montior file= ") in new stack
– Executing [[email protected]:5] GotoIf(“SIP/4001-00000f1e”, “1?skipagi”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [[email protected]: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 [[email protected]:1] NoOp(“SIP/4001-00000f1e”, “Sending Hangup to CRM”) in new stack
– Executing [[email protected]:2] NoOp(“SIP/4001-00000f1e”, “HANGUP CAUSE: 16”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/4001-00000f1e”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
– Executing [[email protected]:4] NoOp(“SIP/4001-00000f1e”, “MASTER CHANNEL: 1628073133.4762 = 1628073133.4762”) in new stack
– Executing [[email protected]:5] GotoIf(“SIP/4001-00000f1e”, “0?return”) in new stack
– Executing [[email protected]:6] Set(“SIP/4001-00000f1e”, “__CRM_HANGUP=1”) in new stack
– Executing [[email protected]:7] AGI(“SIP/4001-00000f1e”, “sangomacrm.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
– Executing [[email protected]:3] ExecIf(“Local/[email protected];2”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [[email protected]:4] NoOp(“Local/[email protected];2”, " montior file= ") in new stack
– Executing [[email protected]:5] GotoIf(“Local/[email protected];2”, “1?skipagi”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [[email protected]:7] Hangup(“Local/[email protected];2”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 7) exited non-zero on ‘Local/[email protected];2’ in macro ‘hangupcall’
== Spawn extension (from-trunk, h, 1) exited non-zero on ‘Local/[email protected];2’
– <SIP/4001-00000f1e>AGI Script sangomacrm.agi completed, returning 0
– Executing [[email protected]: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,