[Home]

Summary:ASTERISK-01750: [patch] Adds events and queue_log messages for Callback Agents
Reporter:Frank Mandarino (fmandarino)Labels:
Date Opened:2004-06-03 10:59:08Date Closed:2008-01-15 14:57:12.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_queue
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) agent_callback_patch.txt
( 1) agent_callback_patch2.txt
Description:This patch adds the missing manager events and queue_log messages for Callback Agents, to allow tracking/monitoring of such agents. Currently, events and queue_log messages are only available for Always-connected Agents.

This bug obsoletes Bug 1420.

****** ADDITIONAL INFORMATION ******

The new events are:

Event: Agentcallbacklogin
Agent: 1234
Loginchan: 1234567@office
Uniqueid: 1084212578.11

Event: Agentcallbacklogoff
Agent: 1234
Loginchan: 1234567@office
Logintime: 2072
Reason: Autologoff          <-- If agent was auto-logged off
Uniqueid: 1084214649.19

The new queue_log messages are:

1084212591|1084212578.11|NONE|Agent/1234|AGENTCALLBACKLOGIN|1234567@office

1084214663|1084214649.19|NONE|Agent/1234|AGENTCALLBACKLOGOFF|1234567@office|2072|Autologoff

The patch applies to chan_agent.c 1.72 of CVS HEAD.  It also updates the documentation the documentation in doc/queuelog.txt.

A disclaimer was previously faxed.
Comments:By: Mark Spencer (markster) 2004-06-03 11:28:11

When strncpy'ing into an array, please be sure the array is initialized to "" at its declaration so tha the trailing 0 is always placed.  thanks!

By: Frank Mandarino (fmandarino) 2004-06-03 11:41:25

Ooops.  Sorry about that.  File agent_callback_patch2.txt has the initialization.

By: Mark Spencer (markster) 2004-06-03 12:13:42

Okay last thing, do you have a disclaimer on file?

By: Frank Mandarino (fmandarino) 2004-06-03 12:19:18

Yes.  I faxed one for Bug 1420.  Do you need me to re-fax?

By: Mark Spencer (markster) 2004-06-03 12:32:26

Nope, you only need send it once.  Added to CVS.  Thanks for your contribution!

By: Digium Subversion (svnbot) 2008-01-15 14:57:12.000-0600

Repository: asterisk
Revision: 3139

U   trunk/channels/chan_agent.c
U   trunk/doc/queuelog.txt

------------------------------------------------------------------------
r3139 | markster | 2008-01-15 14:57:11 -0600 (Tue, 15 Jan 2008) | 2 lines

Merge agent callback login/logoff events and logging (bug ASTERISK-1750)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=3139