Hello, Can asteriskCDR logs tell me if a call was disconnected by the caller or the Agent ? My call flow is as follows: Caller Dials a DID >> Inbound Routes > Play Greeting > Call Enter Queue > Call sent to Dynamic Logged-in Agent(s) Thank you in advance. Best regards, Sans
Christopher Harrington
2013-Jan-10 14:25 UTC
[asterisk-users] Call Disconnected by Caller or Agent
On Thu, Jan 10, 2013 at 8:23 AM, RSCL Mumbai <rscl.mumbai at gmail.com> wrote:> Hello, > > Can asteriskCDR logs tell me if a call was disconnected by the caller > or the Agent ? > > My call flow is as follows: > Caller Dials a DID >> Inbound Routes > Play Greeting > Call Enter > Queue > Call sent to Dynamic Logged-in Agent(s) > > Thank you in advance. >Take a look at this article if you haven't already. https://wiki.asterisk.org/wiki/pages/viewpage.action?pageId=20185363 -- -Chris Harrington ACSDi Office: 763.559.5800 Mobile Phone: 612.326.4248 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130110/85ecaabe/attachment.htm>
Here at our facility, we use QueueMetrics to analyze our call queues. One of its standard reports is Disconnection causes, where it does list Agent disconnected, Caller disconnected and Transferred as options. If you wanted to try a hand at rolling your own solution to look at this, check out the following resources: Explanation of queue logs: http://www.voip-info.org/wiki/view/Asterisk+log+queue_log Location of queue logs: /var/log/asterisk/queue_log (these rotate, the newest is queue.log, older ones have a .X after them where X is a number). You are specifically looking for the lines in the log files with COMPLETEAGENT, COMPLETECALLER, and TRANSFER. You can trace any call by the second column as that is the unique identifier for a specific call. Queuemetrics (I do not have any association with them other than being a happy customer) http://www.queuemetrics.com Kevin Larsen - Systems Analyst - Pioneer Balloon - Ph: 316-688-8208 From: RSCL Mumbai <rscl.mumbai at gmail.com> To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com>, Date: 01/10/2013 08:24 AM Subject: [asterisk-users] Call Disconnected by Caller or Agent Sent by: asterisk-users-bounces at lists.digium.com Hello, Can asteriskCDR logs tell me if a call was disconnected by the caller or the Agent ? My call flow is as follows: Caller Dials a DID >> Inbound Routes > Play Greeting > Call Enter Queue > Call sent to Dynamic Logged-in Agent(s) Thank you in advance. Best regards, Sans -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130110/32359824/attachment.htm>
On Thu, Jan 10, 2013 at 7:53 PM, RSCL Mumbai <rscl.mumbai at gmail.com> wrote:> Hello, > > Can asteriskCDR logs tell me if a call was disconnected by the caller > or the Agent ? > > My call flow is as follows: > Caller Dials a DID >> Inbound Routes > Play Greeting > Call Enter > Queue > Call sent to Dynamic Logged-in Agent(s) > > Thank you in advance. > > Best regards, > Sans >I would use userfield of CDR to identify who disconnected the call and have following sort of logic in a context where I send a call to Queue application. ... ... ... ... same => n,Set(HNGPPARTY=CALLER) same => n,Queue(QNAME,c,,,60) same => n,ExecIf($["${QUEUESTATUS}" = "CONTINUE"]?Set(HNGPPARTY=AGENT):) ... ... exten => h,1,set(CDR(userfield)=${HNGPPARTY}) Note that if nobody answers a call then a variable HNGPPARTY would be empty. --Satish Barot Ahmedabad,Gujarat,India. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130111/5d2504c6/attachment.htm>
On Fri, Jan 11, 2013 at 10:29 AM, Satish Barot <satish4asterisk at gmail.com>wrote:> On Thu, Jan 10, 2013 at 7:53 PM, RSCL Mumbai <rscl.mumbai at gmail.com>wrote: > >> Hello, >> >> Can asteriskCDR logs tell me if a call was disconnected by the caller >> or the Agent ? >> >> My call flow is as follows: >> Caller Dials a DID >> Inbound Routes > Play Greeting > Call Enter >> Queue > Call sent to Dynamic Logged-in Agent(s) >> >> Thank you in advance. >> >> Best regards, >> Sans >> > > I would use userfield of CDR to identify who disconnected the call and > have following sort of logic in a context where I send a call to Queue > application. > > ... ... > ... ... > same => n,Set(HNGPPARTY=CALLER) > same => n,Queue(QNAME,c,,,60) > same => n,ExecIf($["${QUEUESTATUS}" = "CONTINUE"]?Set(HNGPPARTY=AGENT):) > ... ... > > exten => h,1,set(CDR(userfield)=${HNGPPARTY}) > > Note that if nobody answers a call then a variable HNGPPARTY would be > empty. > > --Satish Barot > Ahmedabad,Gujarat,India. >A small correction... same => n,ExecIf($["${QUEUESTATUS}" "CONTINUE"]?Set(HNGPPARTY=AGENT):Set(HNGPPARTY=)) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130111/f1fa4483/attachment.htm>