Hi All,
I am running Asterisk 1.8.28.0 with Yealink SIP-T22P PoE Handsets.
It appears that over the years, we have had some issues with blind transfers. The scenario:
- Remote party calls in to the office, one of us answers
- Caller wants to speak to someone that is outside the office but has their cellphone on them
- I hit “Transfer”, enter the cellphone number and hit “Transfer” again
- The call is now gone, I am expecting it’s been transferred but it has actually dropped with the remote party being played back a “Call cannot be completed as dialled”
Verbose output of asterisk logs is below.
64222222222 is calling 64111111111; then 64111111111 is blind transfering to 021333333 which is a cell phone.
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [[email protected]:1] Set("SIP/TRUNK01-000013f9", "GROUP()=OUT_1") in new stack
-- Executing [[email protected]:2] Goto("SIP/TRUNK01-000013f9", "from-trunk,64111111111,1") in new stack
-- Goto (from-trunk,64111111111,1)
-- Executing [[email protected]:1] Set("SIP/TRUNK01-000013f9", "__FROM_DID=64111111111") in new stack
-- Executing [[email protected]:2] Gosub("SIP/TRUNK01-000013f9", "app-blacklist-check,s,1()") in new stack
-- Executing [[email protected]:1] GotoIf("SIP/TRUNK01-000013f9", "0?blacklisted") in new stack
-- Executing [[email protected]:2] Set("SIP/TRUNK01-000013f9", "CALLED_BLACKLIST=1") in new stack
-- Executing [[email protected]:3] Return("SIP/TRUNK01-000013f9", "") in new stack
-- Executing [[email protected]:3] Set("SIP/TRUNK01-000013f9", "CDR(did)=64111111111") in new stack
-- Executing [[email protected]:4] ExecIf("SIP/TRUNK01-000013f9", "0 ?Set(CALLERID(name)=64222222222)") in new stack
-- Executing [[email protected]:5] Ringing("SIP/TRUNK01-000013f9", "") in new stack
-- Executing [[email protected]:6] Wait("SIP/TRUNK01-000013f9", "2") in new stack
-- Executing [[email protected]:7] Set("SIP/TRUNK01-000013f9", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [[email protected]:8] Set("SIP/TRUNK01-000013f9", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [[email protected]:9] Goto("SIP/TRUNK01-000013f9", "timeconditions,1,1") in new stack
-- Goto (timeconditions,1,1)
-- Executing [[email protected]:1] GotoIfTime("SIP/TRUNK01-000013f9", "08:00-17:01,mon-fri,*,*?truestate") in new stack
-- Goto (timeconditions,1,10)
-- Executing [[email protected]:10] GotoIf("SIP/TRUNK01-000013f9", "0?falsegoto") in new stack
-- Executing [[email protected]:11] ExecIf("SIP/TRUNK01-000013f9", "0?Set(DB(TC/1)=)") in new stack
-- Executing [[email protected]:12] Set("SIP/TRUNK01-000013f9", "DEVICE_STATE(Custom:TC1)=NOT_INUSE") in new stack
-- Executing [[email protected]:13] ExecIf("SIP/TRUNK01-000013f9", "0?Set(DEVICE_STATE(Custom:TCSTICKY)=INUSE)") in new stack
-- Executing [[email protected]:14] GotoIf("SIP/TRUNK01-000013f9", "1?ivr-2,s,1") in new stack
-- Goto (ivr-2,s,1)
-- Executing [[email protected]:1] Set("SIP/TRUNK01-000013f9", "TIMEOUT_LOOPCOUNT=0") in new stack
-- Executing [[email protected]:2] Set("SIP/TRUNK01-000013f9", "INVALID_LOOPCOUNT=0") in new stack
-- Executing [[email protected]:3] Set("SIP/TRUNK01-000013f9", "_IVR_CONTEXT_ivr-2=") in new stack
-- Executing [[email protected]:4] Set("SIP/TRUNK01-000013f9", "_IVR_CONTEXT=ivr-2") in new stack
-- Executing [[email protected]:5] Set("SIP/TRUNK01-000013f9", "__IVR_RETVM=") in new stack
-- Executing [[email protected]:6] GotoIf("SIP/TRUNK01-000013f9", "0?skip") in new stack
-- Executing [[email protected]:7] Answer("SIP/TRUNK01-000013f9", "") in new stack
-- Executing [[email protected]:8] Wait("SIP/TRUNK01-000013f9", "1") in new stack
-- Executing [[email protected]:9] Set("SIP/TRUNK01-000013f9", "IVR_MSG=custom/IVR-Main") in new stack
-- Executing [[email protected]:10] Set("SIP/TRUNK01-000013f9", "TIMEOUT(digit)=3") in new stack
-- Digit timeout set to 3.000
-- Executing [[email protected]:11] ExecIf("SIP/TRUNK01-000013f9", "1?Background(custom/IVR-Main)") in new stack
-- <SIP/TRUNK01-000013f9> Playing 'custom/IVR-Main.slin' (language 'en')
-- Executing [[email protected]:1] Goto("SIP/TRUNK01-000013f9", "ivr-3,s,1") in new stack
-- Goto (ivr-3,s,1)
-- Executing [[email protected]:1] Set("SIP/TRUNK01-000013f9", "TIMEOUT_LOOPCOUNT=0") in new stack
-- Executing [[email protected]:2] Set("SIP/TRUNK01-000013f9", "INVALID_LOOPCOUNT=0") in new stack
-- Executing [[email protected]:3] Set("SIP/TRUNK01-000013f9", "_IVR_CONTEXT_ivr-3=ivr-2") in new stack
-- Executing [[email protected]:4] Set("SIP/TRUNK01-000013f9", "_IVR_CONTEXT=ivr-3") in new stack
-- Executing [[email protected]:5] Set("SIP/TRUNK01-000013f9", "__IVR_RETVM=") in new stack
-- Executing [[email protected]:6] GotoIf("SIP/TRUNK01-000013f9", "1?skip") in new stack
-- Goto (ivr-3,s,9)
-- Executing [[email protected]:9] Set("SIP/TRUNK01-000013f9", "IVR_MSG=custom/Rec-AlbanyHOPress1-PenrosePress2") in new stack
-- Executing [[email protected]:10] Set("SIP/TRUNK01-000013f9", "TIMEOUT(digit)=3") in new stack
-- Digit timeout set to 3.000
-- Executing [[email protected]:11] ExecIf("SIP/TRUNK01-000013f9", "1?Background(custom/Rec-AlbanyHOPress1-PenrosePress2)") in new stack
-- <SIP/TRUNK01-000013f9> Playing 'custom/Rec-AlbanyHOPress1-PenrosePress2.slin' (language 'en')
-- Executing [[email protected]:1] Goto("SIP/TRUNK01-000013f9", "ext-group,6000,1") in new stack
-- Goto (ext-group,6000,1)
-- Executing [[email protected]:1] Macro("SIP/TRUNK01-000013f9", "user-callerid,") in new stack
-- Executing [[email protected]:1] Set("SIP/TRUNK01-000013f9", "AMPUSER=64222222222") in new stack
-- Executing [[email protected]:2] GotoIf("SIP/TRUNK01-000013f9", "0?report") in new stack
-- Executing [[email protected]:3] ExecIf("SIP/TRUNK01-000013f9", "1?Set(REALCALLERIDNUM=64222222222)") in new stack
-- Executing [[email protected]:4] Set("SIP/TRUNK01-000013f9", "AMPUSER=") in new stack
-- Executing [[email protected]:5] Set("SIP/TRUNK01-000013f9", "AMPUSERCIDNAME=") in new stack
-- Executing [[email protected]:6] GotoIf("SIP/TRUNK01-000013f9", "1?report") in new stack
-- Goto (macro-user-callerid,s,13)
-- Executing [[email protected]:13] GotoIf("SIP/TRUNK01-000013f9", "0?continue") in new stack
-- Executing [[email protected]:14] Set("SIP/TRUNK01-000013f9", "__TTL=64") in new stack
-- Executing [[email protected]:15] GotoIf("SIP/TRUNK01-000013f9", "1?continue") in new stack
-- Goto (macro-user-callerid,s,26)
-- Executing [[email protected]:26] Set("SIP/TRUNK01-000013f9", "CALLERID(number)=64222222222") in new stack
-- Executing [[email protected]:27] Set("SIP/TRUNK01-000013f9", "CALLERID(name)=64222222222") in new stack
-- Executing [[email protected]:28] Set("SIP/TRUNK01-000013f9", "CHANNEL(language)=en") in new stack
-- Executing [[email protected]:2] Macro("SIP/TRUNK01-000013f9", "blkvm-setifempty,") in new stack
-- Executing [[email protected]:1] GotoIf("SIP/TRUNK01-000013f9", "1?init") in new stack
-- Goto (macro-blkvm-setifempty,s,4)
-- Executing [[email protected]:4] Set("SIP/TRUNK01-000013f9", "__BLKVM_CHANNEL=SIP/TRUNK01-000013f9") in new stack
-- Executing [[email protected]:5] Set("SIP/TRUNK01-000013f9", "SHARED(BLKVM,SIP/TRUNK01-000013f9)=TRUE") in new stack
-- Executing [[email protected]:6] Set("SIP/TRUNK01-000013f9", "GOSUB_RETVAL=TRUE") in new stack
-- Executing [[email protected]:7] MacroExit("SIP/TRUNK01-000013f9", "") in new stack
-- Executing [[email protected]:3] GotoIf("SIP/TRUNK01-000013f9", "1?skipov") in new stack
-- Goto (ext-group,6000,6)
-- Executing [[email protected]:6] Set("SIP/TRUNK01-000013f9", "RRNODEST=") in new stack
-- Executing [[email protected]:7] Set("SIP/TRUNK01-000013f9", "__NODEST=6000") in new stack
-- Executing [[email protected]:8] GosubIf("SIP/TRUNK01-000013f9", "0?sub-rgsetcid,s,1()") in new stack
-- Executing [[email protected]:9] Gosub("SIP/TRUNK01-000013f9", "sub-record-check,s,1(rg,6000,dontcare)") in new stack
-- Executing [[email protected]:1] GotoIf("SIP/TRUNK01-000013f9", "1?check") in new stack
-- Goto (sub-record-check,s,6)
-- Executing [[email protected]:6] Set("SIP/TRUNK01-000013f9", "__MON_FMT=wav") in new stack
-- Executing [[email protected]:7] GotoIf("SIP/TRUNK01-000013f9", "1?next") in new stack
-- Goto (sub-record-check,s,10)
-- Executing [[email protected]:10] ExecIf("SIP/TRUNK01-000013f9", "0?Return()") in new stack
-- Executing [[email protected]:11] GotoIf("SIP/TRUNK01-000013f9", "0?rg,1") in new stack
-- Executing [[email protected]:12] Set("SIP/TRUNK01-000013f9", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [[email protected]:13] ExecIf("SIP/TRUNK01-000013f9", "1?Set(__REC_POLICY_MODE=dontcare)") in new stack
-- Executing [[email protected]:14] Set("SIP/TRUNK01-000013f9", "NOW=1527636419") in new stack
-- Executing [[email protected]:15] Set("SIP/TRUNK01-000013f9", "__DAY=30") in new stack
-- Executing [[email protected]:16] Set("SIP/TRUNK01-000013f9", "__MONTH=05") in new stack
-- Executing [[email protected]:17] Set("SIP/TRUNK01-000013f9", "__YEAR=2018") in new stack
-- Executing [[email protected]:18] Set("SIP/TRUNK01-000013f9", "__TIMESTR=20180530-112659") in new stack
-- Executing [[email protected]:19] Set("SIP/TRUNK01-000013f9", "__FROMEXTEN=64222222222") in new stack
-- Executing [[email protected]:20] Set("SIP/TRUNK01-000013f9", "__CALLFILENAME=rg-6000-64222222222-20180530-112659-1527636407.5116") in new stack
-- Executing [[email protected]:21] Goto("SIP/TRUNK01-000013f9", "rg,1") in new stack
-- Goto (sub-record-check,rg,1)
-- Executing [[email protected]:1] GosubIf("SIP/TRUNK01-000013f9", "0?record,1(rg,dontcare,64222222222)") in new stack
-- Executing [[email protected]:2] Return("SIP/TRUNK01-000013f9", "") in new stack
-- Executing [[email protected]:10] Set("SIP/TRUNK01-000013f9", "RingGroupMethod=hunt") in new stack
-- Executing [[email protected]:11] Macro("SIP/TRUNK01-000013f9", "dial,15,tr,1004-1002-1006") in new stack
-- Executing [[email protected]:1] GotoIf("SIP/TRUNK01-000013f9", "1?dial") in new stack
-- Goto (macro-dial,s,3)
-- Executing [[email protected]:3] AGI("SIP/TRUNK01-000013f9", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: Caller ID name is '64222222222' number is '64222222222'
> dialparties.agi: USE_CONFIRMATION: 'FALSE'
> dialparties.agi: RINGGROUP_INDEX: ''
dialparties.agi: Methodology of ring is 'hunt'
-- dialparties.agi: Added extension 1004 to extension map
-- dialparties.agi: Added extension 1002 to extension map
-- dialparties.agi: Added extension 1006 to extension map
-- dialparties.agi: Extension 1004 cf is disabled
-- dialparties.agi: Extension 1002 cf is disabled
-- dialparties.agi: Extension 1006 cf is disabled
-- dialparties.agi: Extension 1004 do not disturb is disabled
-- dialparties.agi: Extension 1002 do not disturb is disabled
-- dialparties.agi: Extension 1006 do not disturb is disabled
> dialparties.agi: extnum 1004 has: cw: 1; hascfb: 0 [] hascfu: 0 []
> dialparties.agi: extnum 1002 has: cw: 1; hascfb: 0 [] hascfu: 0 []
> dialparties.agi: extnum 1006 has: cw: 1; hascfb: 0 [] hascfu: 0 []
-- dialparties.agi: Filtered ARG3: 1004-1002-1006
> dialparties.agi: NODEST: 6000 adding M(auto-blkvm) to dialopts: trM(auto-blkvm)
> dialparties.agi: NODEST: 6000 blkvm enabled macro already in dialopts: trM(auto-blkvm)
-- <SIP/TRUNK01-000013f9>AGI Script dialparties.agi completed, returning 0
-- Executing [[email protected]:20] NoOp("SIP/TRUNK01-000013f9", "Returned from dialparties with hunt groups to dial ") in new stack
-- Executing [[email protected]:21] Set("SIP/TRUNK01-000013f9", "HuntLoop=0") in new stack
-- Executing [[email protected]:22] GotoIf("SIP/TRUNK01-000013f9", "1?a30") in new stack
-- Goto (macro-dial,s,26)
-- Executing [[email protected]ial:26] Set("SIP/TRUNK01-000013f9", "HuntMember=HuntMember0") in new stack
-- Executing [[email protected]:27] GotoIf("SIP/TRUNK01-000013f9", "1?a32:a35") in new stack
-- Goto (macro-dial,s,28)
-- Executing [[email protected]:28] Set("SIP/TRUNK01-000013f9", "CT_EXTEN=1004") in new stack
-- Executing [[email protected]:29] Set("SIP/TRUNK01-000013f9", "DB(CALLTRACE/1004)=64222222222") in new stack
-- Executing [[email protected]:30] Goto("SIP/TRUNK01-000013f9", "s,a42") in new stack
-- Goto (macro-dial,s,38)
-- Executing [[email protected]:38] Dial("SIP/TRUNK01-000013f9", "SIP/1004,15,trM(auto-blkvm)") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/1004
-- SIP/1004-000013fa is ringing
-- Nobody picked up in 15000 ms
-- Executing [[email protected]:39] GotoIf("SIP/TRUNK01-000013f9", "0?ANSWER,1") in new stack
-- Executing [[email protected]:40] Set("SIP/TRUNK01-000013f9", "HuntLoop=1") in new stack
-- Executing [[email protected]:41] GotoIf("SIP/TRUNK01-000013f9", "1?a46") in new stack
-- Goto (macro-dial,s,43)
-- Executing [[email protected]:43] Set("SIP/TRUNK01-000013f9", "HuntMembers=2") in new stack
-- Executing [[email protected]:44] Goto("SIP/TRUNK01-000013f9", "s,a22") in new stack
-- Goto (macro-dial,s,22)
-- Executing [[email protected]:22] GotoIf("SIP/TRUNK01-000013f9", "1?a30") in new stack
-- Goto (macro-dial,s,26)
-- Executing [[email protected]:26] Set("SIP/TRUNK01-000013f9", "HuntMember=HuntMember1") in new stack
-- Executing [[email protected]:27] GotoIf("SIP/TRUNK01-000013f9", "1?a32:a35") in new stack
-- Goto (macro-dial,s,28)
-- Executing [[email protected]:28] Set("SIP/TRUNK01-000013f9", "CT_EXTEN=1002") in new stack
-- Executing [[email protected]:29] Set("SIP/TRUNK01-000013f9", "DB(CALLTRACE/1002)=64222222222") in new stack
-- Executing [[email protected]:30] Goto("SIP/TRUNK01-000013f9", "s,a42") in new stack
-- Goto (macro-dial,s,38)
-- Executing [[email protected]:38] Dial("SIP/TRUNK01-000013f9", "SIP/1002,15,trM(auto-blkvm)") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/1002
-- SIP/1002-000013fb is ringing
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- SIP/1007-000013fc answered SIP/TRUNK01-000013f9
-- Executing [[email protected]:1] Set("SIP/1007-000013fc", "__MACRO_RESULT=") in new stack
-- Executing [[email protected]:2] Macro("SIP/1007-000013fc", "blkvm-clr,") in new stack
-- Executing [[email protected]:1] Set("SIP/1007-000013fc", "SHARED(BLKVM,SIP/TRUNK01-000013f9)=") in new stack
-- Executing [[email protected]:2] Set("SIP/1007-000013fc", "GOSUB_RETVAL=") in new stack
-- Executing [[email protected]:3] MacroExit("SIP/1007-000013fc", "") in new stack
-- Executing [[email protected]:3] ExecIf("SIP/1007-000013fc", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(num))=1002)") in new stack
-- Executing [[email protected]:4] ExecIf("SIP/1007-000013fc", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(name))=Aaron Low)") in new stack
-- Started music on hold, class 'default', on SIP/TRUNK01-000013f9
-- Stopped music on hold on SIP/TRUNK01-000013f9
== Spawn extension (from-internal-xfer, 021333333, 1) exited non-zero on 'SIP/TRUNK01-000013f9' in macro 'dial'
== Spawn extension (from-internal-xfer, 021333333, 1) exited non-zero on 'SIP/TRUNK01-000013f9'
-- Executing [[email protected]:1] Macro("SIP/TRUNK01-000013f9", "user-callerid,LIMIT,") in new stack
-- Executing [[email protected]:1] Set("SIP/TRUNK01-000013f9", "AMPUSER=64222222222") in new stack
-- Executing [[email protected]:2] GotoIf("SIP/TRUNK01-000013f9", "0?report") in new stack
-- Executing [[email protected]:3] ExecIf("SIP/TRUNK01-000013f9", "0?Set(REALCALLERIDNUM=64222222222)") in new stack
-- Executing [[email protected]:4] Set("SIP/TRUNK01-000013f9", "AMPUSER=") in new stack
-- Executing [[email protected]:5] Set("SIP/TRUNK01-000013f9", "AMPUSERCIDNAME=") in new stack
-- Executing [[email protected]:6] GotoIf("SIP/TRUNK01-000013f9", "1?report") in new stack
-- Goto (macro-user-callerid,s,13)
-- Executing [[email protected]:13] GotoIf("SIP/TRUNK01-000013f9", "1?continue") in new stack
-- Goto (macro-user-callerid,s,26)
-- Executing [[email protected]:26] Set("SIP/TRUNK01-000013f9", "CALLERID(number)=64222222222") in new stack
-- Executing [[email protected]:27] Set("SIP/TRUNK01-000013f9", "CALLERID(name)=64222222222") in new stack
-- Executing [[email protected]:28] Set("SIP/TRUNK01-000013f9", "CHANNEL(language)=en") in new stack
-- Executing [[email protected]:2] Set("SIP/TRUNK01-000013f9", "MOHCLASS=default") in new stack
-- Executing [[email protected]:3] Set("SIP/TRUNK01-000013f9", "_NODEST=") in new stack
-- Executing [[email protected]:4] Gosub("SIP/TRUNK01-000013f9", "sub-record-check,s,1(out,021333333,)") in new stack
-- Executing [[email protected]:1] GotoIf("SIP/TRUNK01-000013f9", "0?check") in new stack
-- Executing [[email protected]:2] ResetCDR("SIP/TRUNK01-000013f9", "") in new stack
-- Executing [[email protected]:3] GotoIf("SIP/TRUNK01-000013f9", "1?check") in new stack
-- Goto (sub-record-check,s,6)
-- Executing [[email protected]:6] Set("SIP/TRUNK01-000013f9", "__MON_FMT=wav") in new stack
-- Executing [[email protected]:7] GotoIf("SIP/TRUNK01-000013f9", "1?next") in new stack
-- Goto (sub-record-check,s,10)
-- Executing [[email protected]:10] ExecIf("SIP/TRUNK01-000013f9", "0?Return()") in new stack
-- Executing [[email protected]:11] GotoIf("SIP/TRUNK01-000013f9", "1?out,1") in new stack
-- Goto (sub-record-check,out,1)
-- Executing [[email protected]:1] ExecIf("SIP/TRUNK01-000013f9", "0?Set(__REC_POLICY_MODE=)") in new stack
-- Executing [[email protected]:2] GosubIf("SIP/TRUNK01-000013f9", "0?record,1(exten,021333333,64222222222)") in new stack
-- Executing [[email protected]:3] Return("SIP/TRUNK01-000013f9", "") in new stack
-- Executing [[email protected]:5] Macro("SIP/TRUNK01-000013f9", "outisbusy,") in new stack
-- Executing [[email protected]:1] Progress("SIP/TRUNK01-000013f9", "") in new stack
-- Executing [[email protected]:2] GotoIf("SIP/TRUNK01-000013f9", "0?emergency,1") in new stack
-- Executing [[email protected]:3] GotoIf("SIP/TRUNK01-000013f9", "0?intracompany,1") in new stack
-- Executing [[email protected]:4] Playback("SIP/TRUNK01-000013f9", "cannot-complete-as-dialed, noanswer") in new stack
-- <SIP/TRUNK01-000013f9> Playing 'cannot-complete-as-dialed.gsm' (language 'en')
-- Executing [[email protected]:5] Congestion("SIP/TRUNK01-000013f9", "20") in new stack
== Spawn extension (macro-outisbusy, s, 5) exited non-zero on 'SIP/TRUNK01-000013f9' in macro 'outisbusy'
== Spawn extension (from-internal-xfer, 021333333, 5) exited non-zero on 'SIP/TRUNK01-000013f9'
-- Executing [[email protected]:1] Macro("SIP/TRUNK01-000013f9", "hangupcall") in new stack
-- Executing [[email protected]:1] GotoIf("SIP/TRUNK01-000013f9", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [[email protected]:3] ExecIf("SIP/TRUNK01-000013f9", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [[email protected]:4] Hangup("SIP/TRUNK01-000013f9", "") in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/TRUNK01-000013f9' in macro 'hangupcall'
== Spawn extension (from-internal-xfer, h, 1) exited non-zero on 'SIP/TRUNK01-000013f9'