Add a new manager event, AgentRingNoAnswer to
authorMark Michelson <mmichelson@digium.com>
Wed, 21 May 2008 20:27:45 +0000 (20:27 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 21 May 2008 20:27:45 +0000 (20:27 +0000)
app_queue.

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117625 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c
doc/manager_1_1.txt

index 0e9ed74..4a49932 100644 (file)
@@ -2423,6 +2423,20 @@ static void record_abandoned(struct queue_ent *qe)
 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)) {
index 13dee66..3d0440f 100644 (file)
@@ -294,7 +294,18 @@ Changes to manager version 1.1:
                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
 ------