Hi, I need to have logs of transferred calls in queue_log, In asterisk docs, it’s possible to have but on my PBX there are no logs of transferred calls. So, what to do?
What version of Asterisk are you using? What type of transfer? How was the transfer done? Are Local channels being involved? Do you have a console log?
asterisk version 13
Type of feature code (*2, or ##)
here is log but it doesn’t include smthing important I think.
<SIP/101-00000044> Playing 'pbx-transfer.ulaw' (language 'en')
-- Started music on hold, class 'default', on channel 'SIP/peer-24732051-00000043'
-- Channel SIP/101-00000044 left 'simple_bridge' basic-bridge <f97e766c-6495-41f1-8334-9b650f5021d3>
-- Stopped music on hold on SIP/peer-24732051-00000043
-- Channel SIP/peer-24732051-00000043 left 'simple_bridge' basic-bridge <f97e766c-6495-41f1-8334-9b650f5021d3>
-- Executing [33@from-internal-xfer:1] Macro("SIP/peer-24732051-00000043", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/peer-24732051-00000043", "TOUCH_MONITOR=1560510097.263") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/peer-24732051-00000043", "AMPUSER=995322470000") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/peer-24732051-00000043", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/peer-24732051-00000043", "0?Set(REALCALLERIDNUM=995322470000)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/peer-24732051-00000043", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/peer-24732051-00000043", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/peer-24732051-00000043", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:8] ExecIf("SIP/peer-24732051-00000043", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
-- Executing [s@macro-user-callerid:9] GotoIf("SIP/peer-24732051-00000043", "1?report") in new stack
-- Goto (macro-user-callerid,s,16)
-- Executing [s@macro-user-callerid:16] NoOp("SIP/peer-24732051-00000043", "Macro Depth is 1") in new stack
-- Executing [s@macro-user-callerid:17] GotoIf("SIP/peer-24732051-00000043", "1?report2:macroerror") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] GotoIf("SIP/peer-24732051-00000043", "0?continue") in new stack
-- Executing [s@macro-user-callerid:20] Set("SIP/peer-24732051-00000043", "__TTL=63") in new stack
-- Executing [s@macro-user-callerid:21] GotoIf("SIP/peer-24732051-00000043", "1?continue") in new stack
-- Goto (macro-user-callerid,s,37)
-- Executing [s@macro-user-callerid:37] Set("SIP/peer-24732051-00000043", "CALLERID(number)=995322470000") in new stack
-- Executing [s@macro-user-callerid:38] Set("SIP/peer-24732051-00000043", "CALLERID(name)=995322470000") in new stack
-- Executing [s@macro-user-callerid:39] GotoIf("SIP/peer-24732051-00000043", "0?cnum") in new stack
-- Executing [s@macro-user-callerid:40] Set("SIP/peer-24732051-00000043", "CDR(cnam)=995322470000") in new stack
-- Executing [s@macro-user-callerid:41] Set("SIP/peer-24732051-00000043", "CDR(cnum)=995322470000") in new stack
-- Executing [s@macro-user-callerid:42] Set("SIP/peer-24732051-00000043", "CHANNEL(language)=en") in new stack
-- Executing [33@from-internal-xfer:2] Answer("SIP/peer-24732051-00000043", "") in new stack
-- Executing [33@from-internal-xfer:3] Macro("SIP/peer-24732051-00000043", "blkvm-set,reset") in new stack
-- Executing [s@macro-blkvm-set:1] ExecIf("SIP/peer-24732051-00000043", "0?Set(__BLKVM_CHANNEL=SIP/peer-24732051-00000043)") in new stack
-- Executing [s@macro-blkvm-set:2] Set("SIP/peer-24732051-00000043", "SHARED(BLKVM,SIP/peer-24732051-00000043)=TRUE") in new stack
-- Executing [s@macro-blkvm-set:3] Set("SIP/peer-24732051-00000043", "GOSUB_RETVAL=TRUE") in new stack
-- Executing [s@macro-blkvm-set:4] MacroExit("SIP/peer-24732051-00000043", "") in new stack
-- Executing [33@from-internal-xfer:4] ExecIf("SIP/peer-24732051-00000043", "0?Set(_DIAL_OPTIONS=TtrhM(auto-blkvm)M(auto-blkvm))") in new stack
-- Executing [33@from-internal-xfer:5] Set("SIP/peer-24732051-00000043", "__NODEST=33") in new stack
-- Executing [33@from-internal-xfer:6] Set("SIP/peer-24732051-00000043", "QCIDPP=") in new stack
-- Executing [33@from-internal-xfer:7] Set("SIP/peer-24732051-00000043", "VQ_CIDPP=") in new stack
-- Executing [33@from-internal-xfer:8] ExecIf("SIP/peer-24732051-00000043", "0?Macro(prepend-cid,)") in new stack
-- Executing [33@from-internal-xfer:9] Set("SIP/peer-24732051-00000043", "QAINFO=") in new stack
-- Executing [33@from-internal-xfer:10] Set("SIP/peer-24732051-00000043", "VQ_AINFO=") in new stack
-- Executing [33@from-internal-xfer:11] ExecIf("SIP/peer-24732051-00000043", "0?Set(__ALERT_INFO=)") in new stack
-- Executing [33@from-internal-xfer:12] Set("SIP/peer-24732051-00000043", "QJOINMSG=") in new stack
-- Executing [33@from-internal-xfer:13] Set("SIP/peer-24732051-00000043", "VQ_JOINMSG=") in new stack
-- Executing [33@from-internal-xfer:14] Set("SIP/peer-24732051-00000043", "QRETRY=") in new stack
-- Executing [33@from-internal-xfer:15] Set("SIP/peer-24732051-00000043", "VQ_RETRY=") in new stack
-- Executing [33@from-internal-xfer:16] Set("SIP/peer-24732051-00000043", "QOPTIONS=t") in new stack
-- Executing [33@from-internal-xfer:17] Set("SIP/peer-24732051-00000043", "VQ_OPTIONS=") in new stack
-- Executing [33@from-internal-xfer:18] Set("SIP/peer-24732051-00000043", "QGOSUB=") in new stack
-- Executing [33@from-internal-xfer:19] Set("SIP/peer-24732051-00000043", "VQ_GOSUB=") in new stack
-- Executing [33@from-internal-xfer:20] Set("SIP/peer-24732051-00000043", "QAGI=") in new stack
-- Executing [33@from-internal-xfer:21] Set("SIP/peer-24732051-00000043", "VQ_AGI=") in new stack
-- Executing [33@from-internal-xfer:22] Set("SIP/peer-24732051-00000043", "QRULE=") in new stack
-- Executing [33@from-internal-xfer:23] Set("SIP/peer-24732051-00000043", "VQ_RULE=") in new stack
-- Executing [33@from-internal-xfer:24] Set("SIP/peer-24732051-00000043", "QPOSITION=") in new stack
-- Executing [33@from-internal-xfer:25] Set("SIP/peer-24732051-00000043", "VQ_POSITION=") in new stack
-- Executing [33@from-internal-xfer:26] Gosub("SIP/peer-24732051-00000043", "sub-record-check,s,1(q,33,dontcare)") in new stack
-- Executing [s@sub-record-check:1] GotoIf("SIP/peer-24732051-00000043", "12?initialized") in new stack
-- Goto (sub-record-check,s,10)
-- Executing [s@sub-record-check:10] NoOp("SIP/peer-24732051-00000043", "Recordings initialized") in new stack
-- Executing [s@sub-record-check:11] ExecIf("SIP/peer-24732051-00000043", "0?Set(ARG3=dontcare)") in new stack
-- Executing [s@sub-record-check:12] Set("SIP/peer-24732051-00000043", "REC_POLICY_MODE_SAVE=YES") in new stack
-- Executing [s@sub-record-check:13] ExecIf("SIP/peer-24732051-00000043", "1?Set(REC_STATUS=NO)") in new stack
-- Executing [s@sub-record-check:14] GotoIf("SIP/peer-24732051-00000043", "1?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [s@sub-record-check:17] GotoIf("SIP/peer-24732051-00000043", "0?sub-record-check,q,1") in new stack
-- Executing [s@sub-record-check:18] NoOp("SIP/peer-24732051-00000043", "Generic q Recording Check - 995322470000 33") in new stack
-- Executing [s@sub-record-check:19] Gosub("SIP/peer-24732051-00000043", "recordcheck,1(dontcare,q,33)") in new stack
-- Executing [recordcheck@sub-record-check:1] NoOp("SIP/peer-24732051-00000043", "Starting recording check against dontcare") in new stack
-- Executing [recordcheck@sub-record-check:2] Goto("SIP/peer-24732051-00000043", "dontcare") in new stack
-- Goto (sub-record-check,recordcheck,3)
-- Executing [recordcheck@sub-record-check:3] Return("SIP/peer-24732051-00000043", "") in new stack
-- Executing [s@sub-record-check:20] Return("SIP/peer-24732051-00000043", "") in new stack
-- Executing [33@from-internal-xfer:27] Set("SIP/peer-24732051-00000043", "__CWIGNORE=TRUE") in new stack
[2019-06-14 15:02:09] ERROR[8394]: tcptls.c:645 handle_tcptls_connection: Problem setting up ssl connection: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate unknown
[2019-06-14 15:02:09] WARNING[8394]: tcptls.c:731 handle_tcptls_connection: FILE * open failed!
-- Executing [33@from-internal-xfer:28] ExecIf("SIP/peer-24732051-00000043", "0?Playback(, )") in new stack
-- Executing [33@from-internal-xfer:29] QueueLog("SIP/peer-24732051-00000043", "33,1560510097.263,NONE,DID,24732051") in new stack
-- Executing [33@from-internal-xfer:30] Set("SIP/peer-24732051-00000043", "QAANNOUNCE=") in new stack
-- Executing [33@from-internal-xfer:31] Set("SIP/peer-24732051-00000043", "VQ_AANNOUNCE=") in new stack
-- Executing [33@from-internal-xfer:32] Set("SIP/peer-24732051-00000043", "QMOH=") in new stack
-- Executing [33@from-internal-xfer:33] Set("SIP/peer-24732051-00000043", "VQ_MOH=") in new stack
-- Executing [33@from-internal-xfer:34] ExecIf("SIP/peer-24732051-00000043", "0?Set(__MOHCLASS=)") in new stack
-- Executing [33@from-internal-xfer:35] ExecIf("SIP/peer-24732051-00000043", "0?Set(CHANNEL(musicclass)=)") in new stack
-- Executing [33@from-internal-xfer:36] Set("SIP/peer-24732051-00000043", "QMAXWAIT=") in new stack
-- Executing [33@from-internal-xfer:37] Set("SIP/peer-24732051-00000043", "VQ_MAXWAIT=") in new stack
-- Executing [33@from-internal-xfer:38] Set("SIP/peer-24732051-00000043", "QUEUENUM=33") in new stack
-- Executing [33@from-internal-xfer:39] Set("SIP/peer-24732051-00000043", "QUEUEJOINTIME=1560510129") in new stack
-- Executing [33@from-internal-xfer:40] Queue("SIP/peer-24732051-00000043", "33,t,,,,,,,,") in new stack
-- Started music on hold, class 'default', on channel 'SIP/peer-24732051-00000043'
-- Called Local/100@from-queue/n
It does not show the full interaction from a caller entering the queue, to being connected to an agent, that kind of thing. It’s important to see that to understand the full flow of things.
By default all dynamic agents are shown as ‘local/ext@context/n’ in logs, all function works properly but transferred calls aren’t logged in queue_log. If I use a static agent - ‘SIP/ext’, transferred calls are logged in queue_log, but for some reason, I need to use ‘local/ext…’ with logging transferred calls.
When using “local/ext@context/n” the queue has no idea that you are doing a transfer, because you aren’t doing one involving the queue. To the queue nothing has changed. It’s being done outside of it and then isn’t logged.
below dialplan can provide you all the information you required for queue_log
exten => s,n,System(echo "New Microsite Call received at {STRFTIME({EPOCH},%l:%M:%S %p %Z on %A %B %e)} details are TRACE4_QUEUE_NAME={NODEST}&TRACE3_AGENT={DIALEDPEERNUMBER}&TRACE5_SOURCE={BLKVM_CHANNEL}&TRACE6_CALL_UNIQUE_ID={UNIQUEID}&TRACE7_CUSTOMER_NUM={CONNECTEDLINEIDNum}&TRACE8_CUSTOMERNAME={CONNECTEDLINEIDName}&TRACE9_INC_NUM={FROMEXTEN}&TRACE10_CALLPICKEDUP={CALLERIDName}&TRACE12_ONEXT={EXTTOCALL}&TRACE13_CALLSTATUS={DIALSTATUS} " | mail -s "Microsite Incoming Call " -r “360Dialer Server alert@example.com” user@example.com)
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.