diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-21 20:27:45 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-21 20:27:45 +0000 |
commit | cc2d2ea9261ade9ab2ab79887a6de791262b3c9f (patch) | |
tree | cb4e91674eb3e22eacceb4477196f29b82002a64 /apps/app_queue.c | |
parent | db00af8d48447cf1a9bd8c1de13912a8c12902c5 (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: http://svn.digium.com/svn/asterisk/trunk@117625 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-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)) { |