mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
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
This commit is contained in:
@@ -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)) {
|
||||
|
@@ -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
|
||||
------
|
||||
|
Reference in New Issue
Block a user