[asterisk-commits] trunk r24293 - in /trunk: UPGRADE.txt apps/app_queue.c doc/queuelog.txt

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue May 2 12:18:36 MST 2006


Author: bweschke
Date: Tue May  2 14:18:36 2006
New Revision: 24293

URL: http://svn.digium.com/view/asterisk?rev=24293&view=rev
Log:
 Record bridge channel unique id in "CONNECT" queue_log entry and the corresponding manager event. #6522 (nording) w/ documentation additions where appropriate 


Modified:
    trunk/UPGRADE.txt
    trunk/apps/app_queue.c
    trunk/doc/queuelog.txt

Modified: trunk/UPGRADE.txt
URL: http://svn.digium.com/view/asterisk/trunk/UPGRADE.txt?rev=24293&r1=24292&r2=24293&view=diff
==============================================================================
--- trunk/UPGRADE.txt (original)
+++ trunk/UPGRADE.txt Tue May  2 14:18:36 2006
@@ -68,6 +68,11 @@
 
 * OSPAuth is added to authenticate OSP tokens in in_bound call setup messages.
 
+* The CONNECT event in the queue_log from app_queue now has a second field 
+  in addition to the holdtime field. It contains the unique ID of the 
+  queue member channel that is taking the call. This is useful when trying 
+  to link recording filenames back to a particular call from the queue.  
+
 Manager:
 
 * After executing the 'status' manager action, the "Status" manager events
@@ -76,6 +81,11 @@
   "CallerIDNum".  For compatibility purposes, the CallerID parameter will remain
   until after the release of 1.4, when it will be removed.  Please use the time
   during the 1.4 release to make this transition.
+
+* The AgentConnect event now has an additional field called "BridgedChannel" 
+  which contains the unique ID of the queue member channel that is taking the 
+  call. This is useful when trying to link recording filenames back to 
+  a particular call from the queue.
 
 Variables:
 

Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_queue.c?rev=24293&r1=24292&r2=24293&view=diff
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Tue May  2 14:18:36 2006
@@ -2241,16 +2241,17 @@
 	 			ast_log(LOG_DEBUG, "app_queue: sendurl=%s.\n", url);
  			ast_channel_sendurl(peer, url);
  		}
-		ast_queue_log(queuename, qe->chan->uniqueid, peer->name, "CONNECT", "%ld", (long)time(NULL) - qe->start);
+		ast_queue_log(queuename, qe->chan->uniqueid, peer->name, "CONNECT", "%ld|%s", (long)time(NULL) - qe->start, peer->uniqueid);
 		if (qe->parent->eventwhencalled)
 			manager_event(EVENT_FLAG_AGENT, "AgentConnect",
 				      "Queue: %s\r\n"
 				      "Uniqueid: %s\r\n"
 				      "Channel: %s\r\n"
 				      "Member: %s\r\n"
-				      "Holdtime: %ld\r\n",
+				      "Holdtime: %ld\r\n"
+				      "BridgedChannel: %s\r\n",
 				      queuename, qe->chan->uniqueid, peer->name, member->interface,
-				      (long)time(NULL) - qe->start);
+				      (long)time(NULL) - qe->start,peer->uniqueid);
 		ast_copy_string(oldcontext, qe->chan->context, sizeof(oldcontext));
 		ast_copy_string(oldexten, qe->chan->exten, sizeof(oldexten));
 		time(&callstart);

Modified: trunk/doc/queuelog.txt
URL: http://svn.digium.com/view/asterisk/trunk/doc/queuelog.txt?rev=24293&r1=24292&r2=24293&view=diff
==============================================================================
--- trunk/doc/queuelog.txt (original)
+++ trunk/doc/queuelog.txt Tue May  2 14:18:36 2006
@@ -50,9 +50,12 @@
 CONFIGRELOAD
 The configuration has been reloaded (e.g. with asterisk -rx reload)
 
-CONNECT(holdtime)
+CONNECT(holdtime|bridgedchanneluniqueid)
 The caller was connected to an agent.  Hold time represents the amount
-of time the caller was on hold.
+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.
 
 ENTERQUEUE(url|callerid)
 A call has entered the queue.  URL (if specified) and Caller*ID are placed



More information about the asterisk-commits mailing list