[asterisk-commits] mmichelson: trunk r117625 - in /trunk: apps/app_queue.c doc/manager_1_1.txt

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed May 21 15:27:45 CDT 2008


Author: mmichelson
Date: Wed May 21 15:27:45 2008
New Revision: 117625

URL: http://svn.digium.com/view/asterisk?view=rev&rev=117625
Log:
Add a new manager event, AgentRingNoAnswer to
app_queue.

(closes issue #12591)
Reported by: CCHAsteria
Patches:
      app_queue_RNA_event.diff uploaded by CCHAsteria (license 477)


Modified:
    trunk/apps/app_queue.c
    trunk/doc/manager_1_1.txt

Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_queue.c?view=diff&rev=117625&r1=117624&r2=117625
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Wed May 21 15:27:45 2008
@@ -2423,6 +2423,20 @@
 static void rna(int rnatime, struct queue_ent *qe, char *interface, char *membername)
 {
 	ast_verb(3, "Nobody picked up in %d ms\n", rnatime);
+	if (qe->parent->eventwhencalled)
+		manager_event(EVENT_FLAG_AGENT, "AgentRingNoAnswer",
+						"Queue: %s\r\n"
+						"Uniqueid: %s\r\n"
+						"Channel: %s\r\n"
+						"Member: %s\r\n"
+						"MemberName: %s\r\n"
+						"Ringtime: %d\r\n",
+						qe->parent->name,
+						qe->chan->uniqueid,
+						qe->chan->name,
+						interface,
+						membername,
+						rnatime);
 	ast_queue_log(qe->parent->name, qe->chan->uniqueid, membername, "RINGNOANSWER", "%d", rnatime);
 	if (qe->parent->autopause) {
 		if (!set_member_paused(qe->parent->name, interface, "Auto-Pause", 1)) {

Modified: trunk/doc/manager_1_1.txt
URL: http://svn.digium.com/view/asterisk/trunk/doc/manager_1_1.txt?view=diff&rev=117625&r1=117624&r2=117625
==============================================================================
--- trunk/doc/manager_1_1.txt (original)
+++ trunk/doc/manager_1_1.txt Wed May 21 15:27:45 2008
@@ -294,7 +294,18 @@
 		HoldTime: 47
 	If an actionID was specified for the QueueSummary action, it will be appended as the
 	last line of the QueueSummary event.
-		
+
+- Event: AgentRingNoAnswer
+	Modules: app_queue
+	Purpose: Reports when a queue member was rung but there was no answer.
+	Example:
+		Event: AgentRingNoAnswer
+		Queue: Support
+		Uniqueid: 1177530895.2
+		Channel: SIP/1000-53aee458
+		Member: SIP/1000
+		MemberName: Thaddeus McClintock
+		Ringtime: 10
 
 * TODO
 ------




More information about the asterisk-commits mailing list