Hello.
The blind transfer code is #2;
Disallow transfer features for inbound callers is set to YES;
Asterisk Dial Options is set to ‘Ttr’;
Asterisk Outbound Trunk Dial Options is set to ‘T’.
“Core 13.0.72 Stable Sangoma Technologies Corporation GPLv3+ Enabled and up to date” (copy and paste from the ‘Module Admin’)
As requested, below is the full calltrace, but on macro-dial-one:47 you can see that it didn’t set the Dial to ‘trI’, and it is still dialing ‘Ttrb’.
Executing [PSTN_NUMBER@from-trunk-sip-ISP_Provider:1] Set("SIP/ISP_Provider-000267e0", "GROUP()=OUT_1") in new stack
-- Executing [PSTN_NUMBER@from-trunk-sip-ISP_Provider:2] Goto("SIP/ISP_Provider-000267e0", "from-trunk,PSTN_NUMBER,1") in new stack
-- Goto (from-trunk,PSTN_NUMBER,1)
-- Executing [PSTN_NUMBER@from-trunk:1] Set("SIP/ISP_Provider-000267e0", "__FROM_DID=PSTN_NUMBER") in new stack
-- Executing [PSTN_NUMBER@from-trunk:2] Set("SIP/ISP_Provider-000267e0", "CDR(no_sentido)=incoming") in new stack
-- Executing [PSTN_NUMBER@from-trunk:3] Gosub("SIP/ISP_Provider-000267e0", "app-blacklist-check,s,1()") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("SIP/ISP_Provider-000267e0", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("SIP/ISP_Provider-000267e0", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("SIP/ISP_Provider-000267e0", "") in new stack
-- Executing [PSTN_NUMBER@from-trunk:4] Set("SIP/ISP_Provider-000267e0", "__FROM_DID=PSTN_NUMBER") in new stack
-- Executing [PSTN_NUMBER@from-trunk:5] Set("SIP/ISP_Provider-000267e0", "CDR(did)=PSTN_NUMBER") in new stack
-- Executing [PSTN_NUMBER@from-trunk:6] ExecIf("SIP/ISP_Provider-000267e0", "1 ?Set(CALLERID(name)=INCOMING_NUMBER)") in new stack
-- Executing [PSTN_NUMBER@from-trunk:7] Set("SIP/ISP_Provider-000267e0", "__MOHCLASS=") in new stack
-- Executing [PSTN_NUMBER@from-trunk:8] Set("SIP/ISP_Provider-000267e0", "__REVERSAL_REJECT=FALSE") in new stack
-- Executing [PSTN_NUMBER@from-trunk:9] GotoIf("SIP/ISP_Provider-000267e0", "1?post-reverse-charge") in new stack
-- Goto (from-trunk,PSTN_NUMBER,11)
-- Executing [PSTN_NUMBER@from-trunk:11] NoOp("SIP/ISP_Provider-000267e0", "") in new stack
-- Executing [PSTN_NUMBER@from-trunk:12] Set("SIP/ISP_Provider-000267e0", "__CALLINGNAMEPRES_SV=allowed_not_screened") in new stack
-- Executing [PSTN_NUMBER@from-trunk:13] Set("SIP/ISP_Provider-000267e0", "__CALLINGNUMPRES_SV=allowed_not_screened") in new stack
-- Executing [PSTN_NUMBER@from-trunk:14] Set("SIP/ISP_Provider-000267e0", "CALLERID(name-pres)=allowed_not_screened") in new stack
-- Executing [PSTN_NUMBER@from-trunk:15] Set("SIP/ISP_Provider-000267e0", "CALLERID(num-pres)=allowed_not_screened") in new stack
-- Executing [PSTN_NUMBER@from-trunk:16] NoOp("SIP/ISP_Provider-000267e0", "CallerID Entry Point") in new stack
-- Executing [PSTN_NUMBER@from-trunk:17] Goto("SIP/ISP_Provider-000267e0", "from-did-direct,5000,1") in new stack
-- Goto (from-did-direct,5000,1)
-- Executing [5000@from-did-direct:1] Set("SIP/ISP_Provider-000267e0", "__RINGTIMER=15") in new stack
-- Executing [5000@from-did-direct:2] Macro("SIP/ISP_Provider-000267e0", "exten-vm,novm,5000,0,0,0") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/ISP_Provider-000267e0", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/ISP_Provider-000267e0", "TOUCH_MONITOR=1461328917.177915") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/ISP_Provider-000267e0", "AMPUSER=INCOMING_NUMBER") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/ISP_Provider-000267e0", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/ISP_Provider-000267e0", "1?Set(REALCALLERIDNUM=INCOMING_NUMBER)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/ISP_Provider-000267e0", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/ISP_Provider-000267e0", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/ISP_Provider-000267e0", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/ISP_Provider-000267e0", "1?report") in new stack
-- Goto (macro-user-callerid,s,15)
-- Executing [s@macro-user-callerid:15] GotoIf("SIP/ISP_Provider-000267e0", "0?continue") in new stack
-- Executing [s@macro-user-callerid:16] ExecIf("SIP/ISP_Provider-000267e0", "1?Set(__CALLEE_ACCOUNCODE=)") in new stack
-- Executing [s@macro-user-callerid:17] Set("SIP/ISP_Provider-000267e0", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:18] GotoIf("SIP/ISP_Provider-000267e0", "1?continue") in new stack
-- Goto (macro-user-callerid,s,29)
-- Executing [s@macro-user-callerid:29] Set("SIP/ISP_Provider-000267e0", "CALLERID(number)=INCOMING_NUMBER") in new stack
-- Executing [s@macro-user-callerid:30] Set("SIP/ISP_Provider-000267e0", "CALLERID(name)=INCOMING_NUMBER") in new stack
-- Executing [s@macro-user-callerid:31] Set("SIP/ISP_Provider-000267e0", "CDR(cnum)=INCOMING_NUMBER") in new stack
-- Executing [s@macro-user-callerid:32] Set("SIP/ISP_Provider-000267e0", "CDR(cnam)=INCOMING_NUMBER") in new stack
-- Executing [s@macro-user-callerid:33] Set("SIP/ISP_Provider-000267e0", "CHANNEL(language)=pt_BR") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/ISP_Provider-000267e0", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/ISP_Provider-000267e0", "__EXTTOCALL=5000") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/ISP_Provider-000267e0", "__PICKUPMARK=5000") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/ISP_Provider-000267e0", "RT=") in new stack
-- Executing [s@macro-exten-vm:6] ExecIf("SIP/ISP_Provider-000267e0", "0?Macro(vm,novm,DIRECTDIAL,)") in new stack
-- Executing [s@macro-exten-vm:7] ExecIf("SIP/ISP_Provider-000267e0", "0?MacroExit()") in new stack
-- Executing [s@macro-exten-vm:8] Gosub("SIP/ISP_Provider-000267e0", "sub-record-check,s,1(exten,5000,dontcare)") in new stack
-- Executing [s@sub-record-check:1] GotoIf("SIP/ISP_Provider-000267e0", "0?initialized") in new stack
-- Executing [s@sub-record-check:2] Set("SIP/ISP_Provider-000267e0", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:3] Set("SIP/ISP_Provider-000267e0", "NOW=1461328917") in new stack
-- Executing [s@sub-record-check:4] Set("SIP/ISP_Provider-000267e0", "__DAY=22") in new stack
-- Executing [s@sub-record-check:5] Set("SIP/ISP_Provider-000267e0", "__MONTH=04") in new stack
-- Executing [s@sub-record-check:6] Set("SIP/ISP_Provider-000267e0", "__YEAR=2016") in new stack
-- Executing [s@sub-record-check:7] Set("SIP/ISP_Provider-000267e0", "__TIMESTR=20160422-094157") in new stack
-- Executing [s@sub-record-check:8] Set("SIP/ISP_Provider-000267e0", "__FROMEXTEN=INCOMING_NUMBER") in new stack
-- Executing [s@sub-record-check:9] Set("SIP/ISP_Provider-000267e0", "__MON_FMT=WAV") in new stack
-- Executing [s@sub-record-check:10] NoOp("SIP/ISP_Provider-000267e0", "Recordings initialized") in new stack
-- Executing [s@sub-record-check:11] ExecIf("SIP/ISP_Provider-000267e0", "0?Set(ARG3=dontcare)") in new stack
-- Executing [s@sub-record-check:12] Set("SIP/ISP_Provider-000267e0", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:13] ExecIf("SIP/ISP_Provider-000267e0", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [s@sub-record-check:14] GotoIf("SIP/ISP_Provider-000267e0", "5?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [s@sub-record-check:17] GotoIf("SIP/ISP_Provider-000267e0", "1?sub-record-check,exten,1") in new stack
-- Goto (sub-record-check,exten,1)
-- Executing [exten@sub-record-check:1] NoOp("SIP/ISP_Provider-000267e0", "Exten Recording Check between INCOMING_NUMBER and 5000") in new stack
-- Executing [exten@sub-record-check:2] Set("SIP/ISP_Provider-000267e0", "CALLTYPE=external") in new stack
-- Executing [exten@sub-record-check:3] ExecIf("SIP/ISP_Provider-000267e0", "0?Set(CALLTYPE=)") in new stack
-- Executing [exten@sub-record-check:4] Set("SIP/ISP_Provider-000267e0", "CALLEE=dontcare") in new stack
-- Executing [exten@sub-record-check:5] ExecIf("SIP/ISP_Provider-000267e0", "0?Set(CALLEE=dontcare)") in new stack
-- Executing [exten@sub-record-check:6] GotoIf("SIP/ISP_Provider-000267e0", "1?callee") in new stack
-- Goto (sub-record-check,exten,11)
-- Executing [exten@sub-record-check:11] Gosub("SIP/ISP_Provider-000267e0", "recordcheck,1(dontcare,external,5000)") in new stack
-- Executing [recordcheck@sub-record-check:1] NoOp("SIP/ISP_Provider-000267e0", "Starting recording check against dontcare") in new stack
-- Executing [recordcheck@sub-record-check:2] Goto("SIP/ISP_Provider-000267e0", "dontcare") in new stack
-- Goto (sub-record-check,recordcheck,3)
-- Executing [recordcheck@sub-record-check:3] Return("SIP/ISP_Provider-000267e0", "") in new stack
-- Executing [exten@sub-record-check:12] Return("SIP/ISP_Provider-000267e0", "") in new stack
-- Executing [s@macro-exten-vm:9] Macro("SIP/ISP_Provider-000267e0", "dial-one,,Ttr,5000") in new stack
-- Executing [s@macro-dial-one:1] Set("SIP/ISP_Provider-000267e0", "DEXTEN=5000") in new stack
-- Executing [s@macro-dial-one:2] Set("SIP/ISP_Provider-000267e0", "DIALSTATUS_CW=") in new stack
-- Executing [s@macro-dial-one:3] GosubIf("SIP/ISP_Provider-000267e0", "0?screen,1()") in new stack
-- Executing [s@macro-dial-one:4] GosubIf("SIP/ISP_Provider-000267e0", "0?cf,1()") in new stack
-- Executing [s@macro-dial-one:5] GotoIf("SIP/ISP_Provider-000267e0", "1?skip1") in new stack
-- Goto (macro-dial-one,s,8)
-- Executing [s@macro-dial-one:8] GotoIf("SIP/ISP_Provider-000267e0", "0?nodial") in new stack
-- Executing [s@macro-dial-one:9] GotoIf("SIP/ISP_Provider-000267e0", "0?continue") in new stack
-- Executing [s@macro-dial-one:10] Set("SIP/ISP_Provider-000267e0", "EXTHASCW=ENABLED") in new stack
-- Executing [s@macro-dial-one:11] GotoIf("SIP/ISP_Provider-000267e0", "0?next1:cwinusebusy") in new stack
-- Goto (macro-dial-one,s,23)
-- Executing [s@macro-dial-one:23] GotoIf("SIP/ISP_Provider-000267e0", "0?next3:continue") in new stack
-- Goto (macro-dial-one,s,25)
-- Executing [s@macro-dial-one:25] GotoIf("SIP/ISP_Provider-000267e0", "0?nodial") in new stack
-- Executing [s@macro-dial-one:26] GosubIf("SIP/ISP_Provider-000267e0", "1?dstring,1():dlocal,1()") in new stack
-- Executing [dstring@macro-dial-one:1] Set("SIP/ISP_Provider-000267e0", "DSTRING=") in new stack
-- Executing [dstring@macro-dial-one:2] Set("SIP/ISP_Provider-000267e0", "DEVICES=5000") in new stack
-- Executing [dstring@macro-dial-one:3] ExecIf("SIP/ISP_Provider-000267e0", "0?Return()") in new stack
-- Executing [dstring@macro-dial-one:4] ExecIf("SIP/ISP_Provider-000267e0", "0?Set(DEVICES=000)") in new stack
-- Executing [dstring@macro-dial-one:5] Set("SIP/ISP_Provider-000267e0", "LOOPCNT=1") in new stack
-- Executing [dstring@macro-dial-one:6] Set("SIP/ISP_Provider-000267e0", "ITER=1") in new stack
-- Executing [dstring@macro-dial-one:7] Set("SIP/ISP_Provider-000267e0", "THISDIAL=SIP/5000") in new stack
-- Executing [dstring@macro-dial-one:8] GosubIf("SIP/ISP_Provider-000267e0", "1?zap2dahdi,1()") in new stack
-- Executing [zap2dahdi@macro-dial-one:1] ExecIf("SIP/ISP_Provider-000267e0", "0?Return()") in new stack
-- Executing [zap2dahdi@macro-dial-one:2] Set("SIP/ISP_Provider-000267e0", "NEWDIAL=") in new stack
-- Executing [zap2dahdi@macro-dial-one:3] Set("SIP/ISP_Provider-000267e0", "LOOPCNT2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:4] Set("SIP/ISP_Provider-000267e0", "ITER2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:5] Set("SIP/ISP_Provider-000267e0", "THISPART2=SIP/5000") in new stack
-- Executing [zap2dahdi@macro-dial-one:6] ExecIf("SIP/ISP_Provider-000267e0", "0?Set(THISPART2=DAHDI/5000)") in new stack
-- Executing [zap2dahdi@macro-dial-one:7] Set("SIP/ISP_Provider-000267e0", "NEWDIAL=SIP/5000&") in new stack
-- Executing [zap2dahdi@macro-dial-one:8] Set("SIP/ISP_Provider-000267e0", "ITER2=2") in new stack
-- Executing [zap2dahdi@macro-dial-one:9] GotoIf("SIP/ISP_Provider-000267e0", "0?begin2") in new stack
-- Executing [zap2dahdi@macro-dial-one:10] Set("SIP/ISP_Provider-000267e0", "THISDIAL=SIP/5000") in new stack
-- Executing [zap2dahdi@macro-dial-one:11] Return("SIP/ISP_Provider-000267e0", "") in new stack
-- Executing [dstring@macro-dial-one:9] GotoIf("SIP/ISP_Provider-000267e0", "1?docheck") in new stack
-- Goto (macro-dial-one,dstring,12)
-- Executing [dstring@macro-dial-one:12] GotoIf("SIP/ISP_Provider-000267e0", "0?skipset") in new stack
-- Executing [dstring@macro-dial-one:13] Set("SIP/ISP_Provider-000267e0", "DSTRING=SIP/5000&") in new stack
-- Executing [dstring@macro-dial-one:14] Set("SIP/ISP_Provider-000267e0", "ITER=2") in new stack
-- Executing [dstring@macro-dial-one:15] GotoIf("SIP/ISP_Provider-000267e0", "0?begin") in new stack
-- Executing [dstring@macro-dial-one:16] ExecIf("SIP/ISP_Provider-000267e0", "0?Return()") in new stack
-- Executing [dstring@macro-dial-one:17] Set("SIP/ISP_Provider-000267e0", "DSTRING=SIP/5000") in new stack
-- Executing [dstring@macro-dial-one:18] Return("SIP/ISP_Provider-000267e0", "") in new stack
-- Executing [s@macro-dial-one:27] GotoIf("SIP/ISP_Provider-000267e0", "0?nodial") in new stack
-- Executing [s@macro-dial-one:28] GotoIf("SIP/ISP_Provider-000267e0", "0?skiptrace") in new stack
-- Executing [s@macro-dial-one:29] GosubIf("SIP/ISP_Provider-000267e0", "1?ctset,1():ctclear,1()") in new stack
-- Executing [ctset@macro-dial-one:1] Set("SIP/ISP_Provider-000267e0", "DB(CALLTRACE/5000)=INCOMING_NUMBER") in new stack
-- Executing [ctset@macro-dial-one:2] Return("SIP/ISP_Provider-000267e0", "") in new stack
-- Executing [s@macro-dial-one:30] Set("SIP/ISP_Provider-000267e0", "D_OPTIONS=Ttr") in new stack
-- Executing [s@macro-dial-one:31] NoOp("SIP/ISP_Provider-000267e0", "Blind Transfer: , Attended Transfer: , User: , Alert Info: ") in new stack
-- Executing [s@macro-dial-one:32] ExecIf("SIP/ISP_Provider-000267e0", "0?Set(ALERT_INFO=)") in new stack
-- Executing [s@macro-dial-one:33] ExecIf("SIP/ISP_Provider-000267e0", "0?Set(ALERT_INFO=)") in new stack
-- Executing [s@macro-dial-one:34] ExecIf("SIP/ISP_Provider-000267e0", "0?Set(ALERT_INFO=)") in new stack
-- Executing [s@macro-dial-one:35] GosubIf("SIP/ISP_Provider-000267e0", "0?func-set-sipheader,s,1(Alert-Info,)") in new stack
-- Executing [s@macro-dial-one:36] ExecIf("SIP/ISP_Provider-000267e0", "0?Set(CHANNEL(musicclass)=)") in new stack
-- Executing [s@macro-dial-one:37] GosubIf("SIP/ISP_Provider-000267e0", "0?qwait,1()") in new stack
-- Executing [s@macro-dial-one:38] Set("SIP/ISP_Provider-000267e0", "__CWIGNORE=") in new stack
-- Executing [s@macro-dial-one:39] Set("SIP/ISP_Provider-000267e0", "__KEEPCID=TRUE") in new stack
-- Executing [s@macro-dial-one:40] GotoIf("SIP/ISP_Provider-000267e0", "0?usegoto,1") in new stack
-- Executing [s@macro-dial-one:41] GotoIf("SIP/ISP_Provider-000267e0", "1?godial") in new stack
-- Goto (macro-dial-one,s,46)
-- Executing [s@macro-dial-one:46] Macro("SIP/ISP_Provider-000267e0", "dialout-one-predial-hook,") in new stack
-- Executing [s@macro-dialout-one-predial-hook:1] MacroExit("SIP/ISP_Provider-000267e0", "") in new stack
-- Executing [s@macro-dial-one:47] ExecIf("SIP/ISP_Provider-000267e0", "0?Set(D_OPTIONS=trI)") in new stack
-- Executing [s@macro-dial-one:48] Dial("SIP/ISP_Provider-000267e0", "SIP/5000,,Ttrb(func-apply-sipheaders^s^1)") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- SIP/5000-000267e1 Internal Gosub(func-apply-sipheaders,s,1) start
-- Executing [s@func-apply-sipheaders:1] NoOp("SIP/5000-000267e1", "Applying SIP Headers to channel") in new stack
-- Executing [s@func-apply-sipheaders:2] Set("SIP/5000-000267e1", "SIPHEADERKEYS=") in new stack
-- Executing [s@func-apply-sipheaders:3] While("SIP/5000-000267e1", "0") in new stack
-- Jumping to priority 7
-- Executing [s@func-apply-sipheaders:8] Return("SIP/5000-000267e1", "") in new stack
== Spawn extension (from-internal, 5000, 1) exited non-zero on 'SIP/5000-000267e1'
-- SIP/5000-000267e1 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
-- Called SIP/5000
-- SIP/5000-000267e1 is ringing
-- SIP/5000-000267e1 answered SIP/ISP_Provider-000267e0
-- Channel SIP/5000-000267e1 joined 'simple_bridge' basic-bridge <2f39e54b-eec6-4030-9124-b44860d2a281>
-- Channel SIP/ISP_Provider-000267e0 joined 'simple_bridge' basic-bridge <2f39e54b-eec6-4030-9124-b44860d2a281>
-- Channel SIP/5000-000267e1 left 'simple_bridge' basic-bridge <2f39e54b-eec6-4030-9124-b44860d2a281>
-- Channel SIP/ISP_Provider-000267e0 left 'simple_bridge' basic-bridge <2f39e54b-eec6-4030-9124-b44860d2a281>
== Spawn extension (macro-dial-one, s, 48) exited non-zero on 'SIP/ISP_Provider-000267e0' in macro 'dial-one'
== Spawn extension (macro-exten-vm, s, 9) exited non-zero on 'SIP/ISP_Provider-000267e0' in macro 'exten-vm'
== Spawn extension (from-did-direct, 5000, 2) exited non-zero on 'SIP/ISP_Provider-000267e0'
-- Executing [h@from-did-direct:1] Macro("SIP/ISP_Provider-000267e0", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/ISP_Provider-000267e0", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] ExecIf("SIP/ISP_Provider-000267e0", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:4] Hangup("SIP/ISP_Provider-000267e0", "") in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/ISP_Provider-000267e0' in macro 'hangupcall'
== Spawn extension (from-did-direct, h, 1) exited non-zero on 'SIP/ISP_Provider-000267e0'
I would really appreciate if you can help me with this one.
Thank you!