<html>
<head>
<base href="https://wiki.asterisk.org/wiki">
<link rel="stylesheet" href="/wiki/s/en/2166/4/9/_/styles/combined.css?spaceKey=AST&forWysiwyg=true" type="text/css">
</head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
<h2><a href="https://wiki.asterisk.org/wiki/display/AST/Queue+Logs">Queue Logs</a></h2>
<h4>Page <b>edited</b> by <a href="https://wiki.asterisk.org/wiki/display/~mdavenport">Malcolm Davenport</a>
</h4>
<br/>
<h4>Changes (11)</h4>
<div id="page-diffs">
<table class="diff" cellpadding="0" cellspacing="0">
<tr><td class="diff-snipped" >...<br></td></tr>
<tr><td class="diff-unchanged" >These are the events (and associated information) in the queue log: <br> <br></td></tr>
<tr><td class="diff-changed-lines" >* <span class="diff-changed-words">ABANDON(position<span class="diff-added-chars"style="background-color: #dfd;">|</span>origposition<span class="diff-added-chars"style="background-color: #dfd;">|</span>waittime)</span> - The caller abandoned their position in the queue. The position is the caller's position in the queue when they hungup, the origposition is the original position the caller was when they first entered the queue, and the waittime is how long the call had been waiting in the queue at the time of disconnect. <br></td></tr>
<tr><td class="diff-unchanged" > <br>* AGENTDUMP - The agent dumped the caller while listening to the queue announcement. <br></td></tr>
<tr><td class="diff-snipped" >...<br></td></tr>
<tr><td class="diff-unchanged" >* AGENTCALLBACKLOGIN(exten@context) - The callback agent logged in. The login extension and context is recorded. <br> <br></td></tr>
<tr><td class="diff-changed-lines" >* <span class="diff-changed-words">AGENTLOGOFF(channel<span class="diff-added-chars"style="background-color: #dfd;">|</span>logintime)</span> - The agent logged off. The channel is recorded, along with the total time the agent was logged in. <br></td></tr>
<tr><td class="diff-unchanged" > <br></td></tr>
<tr><td class="diff-changed-lines" >* <span class="diff-changed-words">AGENTCALLBACKLOGOFF(exten@context<span class="diff-added-chars"style="background-color: #dfd;">|</span>logintime<span class="diff-added-chars"style="background-color: #dfd;">|</span>reason)</span> - The callback agent logged off. The last login extension and context is recorded, along with the total time the agent was logged in, and the reason for the logoff if it was not a normal logoff (e.g., Autologoff, Chanunavail) <br></td></tr>
<tr><td class="diff-unchanged" > <br></td></tr>
<tr><td class="diff-changed-lines" >* <span class="diff-changed-words">COMPLETEAGENT(holdtime<span class="diff-added-chars"style="background-color: #dfd;">|</span>calltime<span class="diff-added-chars"style="background-color: #dfd;">|</span>origposition)</span> - The caller was connected to an agent, and the call was terminated normally by the agent. The caller's hold time and the length of the call are both recorded. The caller's original position in the queue is recorded in origposition. <br></td></tr>
<tr><td class="diff-unchanged" > <br></td></tr>
<tr><td class="diff-changed-lines" >* <span class="diff-changed-words">COMPLETECALLER(holdtime<span class="diff-added-chars"style="background-color: #dfd;">|</span>calltime<span class="diff-added-chars"style="background-color: #dfd;">|</span>origposition)</span> - The caller was connected to an agent, and the call was terminated normally by the caller. The caller's hold time and the length of the call are both recorded. The caller's original position in the queue is recorded in origposition. <br></td></tr>
<tr><td class="diff-unchanged" > <br>* CONFIGRELOAD - The configuration has been reloaded (e.g. with asterisk -rx reload) <br> <br></td></tr>
<tr><td class="diff-changed-lines" >* <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">CONNECT(holdtimebridgedchanneluniqueidringtime)</span> <span class="diff-added-words"style="background-color: #dfd;">CONNECT(holdtime|bridgedchannel|uniqueid|ringtime)</span> - The caller was connected to an agent. Hold time represents the amount of time the caller was on hold. The bridged channel unique ID contains the unique ID of the queue member channel that is taking the call. This is useful when trying to link recording filenames to a particular call in the queue. Ringtime represents the time the queue members phone was ringing prior to being answered. <br></td></tr>
<tr><td class="diff-unchanged" > <br></td></tr>
<tr><td class="diff-changed-lines" >* <span class="diff-changed-words">ENTERQUEUE(url<span class="diff-added-chars"style="background-color: #dfd;">|</span>callerid)</span> - A call has entered the queue. URL (if specified) and Caller*ID are placed in the log. <br></td></tr>
<tr><td class="diff-unchanged" > <br></td></tr>
<tr><td class="diff-changed-lines" >* <span class="diff-changed-words">EXITEMPTY(position<span class="diff-added-chars"style="background-color: #dfd;">|</span>origposition<span class="diff-added-chars"style="background-color: #dfd;">|</span>waittime)</span> - The caller was exited from the queue forcefully because the queue had no reachable members and it's configured to do that to callers when there are no reachable members. The position is the caller's position in the queue when they hungup, the origposition is the original position the caller was when they first entered the queue, and the waittime is how long the call had been waiting in the queue at the time of disconnect. <br></td></tr>
<tr><td class="diff-unchanged" > <br></td></tr>
<tr><td class="diff-changed-lines" >* <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">EXITWITHKEY(keypositionorigpositionwaittime)</span> <span class="diff-added-words"style="background-color: #dfd;">EXITWITHKEY(key|position|origposition|waittime)</span> - The caller elected to use a menu key to exit the queue. The key and the caller's position in the queue are recorded. The caller's entry position and amoutn of time waited is also recorded. <br></td></tr>
<tr><td class="diff-unchanged" > <br></td></tr>
<tr><td class="diff-changed-lines" >* <span class="diff-changed-words">EXITWITHTIMEOUT(position<span class="diff-added-chars"style="background-color: #dfd;">|</span>origposition<span class="diff-added-chars"style="background-color: #dfd;">|</span>waittime)</span> - The caller was on hold too long and the timeout expired. The position in the queue when the timeout occurred, the entry position, and the amount of time waited are logged. <br></td></tr>
<tr><td class="diff-unchanged" > <br>* QUEUESTART - The queueing system has been started for the first time this session. <br></td></tr>
<tr><td class="diff-snipped" >...<br></td></tr>
<tr><td class="diff-unchanged" >* SYSCOMPAT - A call was answered by an agent, but the call was dropped because the channels were not compatible. <br> <br></td></tr>
<tr><td class="diff-changed-lines" >* <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">TRANSFER(extensioncontextholdtimecalltimeorigposition)</span> <span class="diff-added-words"style="background-color: #dfd;">TRANSFER(extension|context|holdtime|calltime|origposition)</span> - Caller was transferred to a different extension. Context and extension are recorded. The caller's hold time and the length of the call are both recorded, as is the caller's entry position at the time of the transfer. PLEASE remember that transfers performed by SIP UA's by way of a reinvite may not always be caught by Asterisk and trigger off this event. The only way to be 100% sure that you will get this event when a transfer is performed by a queue member is to use the built-in transfer functionality of Asterisk. <br></td></tr>
</table>
</div> <h4>Full Content</h4>
<div class="notificationGreySide">
<p>In order to properly manage ACD queues, it is important to be able to keep track of details of call setups and teardowns in much greater detail than traditional call detail records provide. In order to support this, extensive and detailed tracing of every queued call is stored in the queue log, located (by default) in /var/log/asterisk/queue_log. </p>
<p>These are the events (and associated information) in the queue log: </p>
<ul>
        <li>ABANDON(position|origposition|waittime) - The caller abandoned their position in the queue. The position is the caller's position in the queue when they hungup, the origposition is the original position the caller was when they first entered the queue, and the waittime is how long the call had been waiting in the queue at the time of disconnect.</li>
</ul>
<ul>
        <li>AGENTDUMP - The agent dumped the caller while listening to the queue announcement.</li>
</ul>
<ul>
        <li>AGENTLOGIN(channel) - The agent logged in. The channel is recorded.</li>
</ul>
<ul>
        <li>AGENTCALLBACKLOGIN(exten@context) - The callback agent logged in. The login extension and context is recorded.</li>
</ul>
<ul>
        <li>AGENTLOGOFF(channel|logintime) - The agent logged off. The channel is recorded, along with the total time the agent was logged in.</li>
</ul>
<ul>
        <li>AGENTCALLBACKLOGOFF(exten@context|logintime|reason) - The callback agent logged off. The last login extension and context is recorded, along with the total time the agent was logged in, and the reason for the logoff if it was not a normal logoff (e.g., Autologoff, Chanunavail)</li>
</ul>
<ul>
        <li>COMPLETEAGENT(holdtime|calltime|origposition) - The caller was connected to an agent, and the call was terminated normally by the agent. The caller's hold time and the length of the call are both recorded. The caller's original position in the queue is recorded in origposition.</li>
</ul>
<ul>
        <li>COMPLETECALLER(holdtime|calltime|origposition) - The caller was connected to an agent, and the call was terminated normally by the caller. The caller's hold time and the length of the call are both recorded. The caller's original position in the queue is recorded in origposition.</li>
</ul>
<ul>
        <li>CONFIGRELOAD - The configuration has been reloaded (e.g. with asterisk -rx reload)</li>
</ul>
<ul>
        <li>CONNECT(holdtime|bridgedchannel|uniqueid|ringtime) - The caller was connected to an agent. Hold time represents the amount of time the caller was on hold. The bridged channel unique ID contains the unique ID of the queue member channel that is taking the call. This is useful when trying to link recording filenames to a particular call in the queue. Ringtime represents the time the queue members phone was ringing prior to being answered.</li>
</ul>
<ul>
        <li>ENTERQUEUE(url|callerid) - A call has entered the queue. URL (if specified) and Caller*ID are placed in the log.</li>
</ul>
<ul>
        <li>EXITEMPTY(position|origposition|waittime) - The caller was exited from the queue forcefully because the queue had no reachable members and it's configured to do that to callers when there are no reachable members. The position is the caller's position in the queue when they hungup, the origposition is the original position the caller was when they first entered the queue, and the waittime is how long the call had been waiting in the queue at the time of disconnect.</li>
</ul>
<ul>
        <li>EXITWITHKEY(key|position|origposition|waittime) - The caller elected to use a menu key to exit the queue. The key and the caller's position in the queue are recorded. The caller's entry position and amoutn of time waited is also recorded.</li>
</ul>
<ul>
        <li>EXITWITHTIMEOUT(position|origposition|waittime) - The caller was on hold too long and the timeout expired. The position in the queue when the timeout occurred, the entry position, and the amount of time waited are logged.</li>
</ul>
<ul>
        <li>QUEUESTART - The queueing system has been started for the first time this session.</li>
</ul>
<ul>
        <li>RINGNOANSWER(ringtime) - After trying for ringtime ms to connect to the available queue member, the attempt ended without the member picking up the call. Bad queue member!</li>
</ul>
<ul>
        <li>SYSCOMPAT - A call was answered by an agent, but the call was dropped because the channels were not compatible.</li>
</ul>
<ul>
        <li>TRANSFER(extension|context|holdtime|calltime|origposition) - Caller was transferred to a different extension. Context and extension are recorded. The caller's hold time and the length of the call are both recorded, as is the caller's entry position at the time of the transfer. PLEASE remember that transfers performed by SIP UA's by way of a reinvite may not always be caught by Asterisk and trigger off this event. The only way to be 100% sure that you will get this event when a transfer is performed by a queue member is to use the built-in transfer functionality of Asterisk.</li>
</ul>
</div>
<div id="commentsSection" class="wiki-content pageSection">
<div style="float: right;" class="grey">
<a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=AST">Stop watching space</a>
<span style="padding: 0px 5px;">|</span>
<a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
<a href="https://wiki.asterisk.org/wiki/display/AST/Queue+Logs">View Online</a>
|
<a href="https://wiki.asterisk.org/wiki/pages/diffpagesbyversion.action?pageId=5243044&revisedVersion=3&originalVersion=2">View Changes</a>
|
<a href="https://wiki.asterisk.org/wiki/display/AST/Queue+Logs?showComments=true&showCommentArea=true#addcomment">Add Comment</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>