diff options
author | Mark Michelson <mmichelson@digium.com> | 2008-05-21 20:27:45 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2008-05-21 20:27:45 +0000 |
commit | b0e637791c6381a21ac618503a4652bf596865f5 (patch) | |
tree | cb4e91674eb3e22eacceb4477196f29b82002a64 /apps | |
parent | c126127fd54895641809d48df12fb429242f8a0c (diff) |
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)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117625 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_queue.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 0e9ed7403..4a4993215 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -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)) { |