From: Russell Bryant Date: Mon, 9 Jul 2007 16:35:43 +0000 (+0000) Subject: Add Queue and DestinationChannel headers to the AgentCalled manager event X-Git-Tag: 1.6.0-beta1~3^2~2114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=262dfb44cdbc87bb1713f43b41db563e5c9c3016;p=thirdparty%2Fasterisk.git Add Queue and DestinationChannel headers to the AgentCalled manager event to be more like the rest of the events in this module. (closes issue #10114, patch by kwakwaversal) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74084 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index bc4d1243d7..ce38d2fff0 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1763,15 +1763,17 @@ static int ring_entry(struct queue_ent *qe, struct callattempt *tmp, int *busies char vars[2048]; manager_event(EVENT_FLAG_AGENT, "AgentCalled", + "Queue: %s\r\n" "AgentCalled: %s\r\n" "ChannelCalling: %s\r\n" + "DestinationChannel: %s\r\n" "CallerIDNum: %s\r\n" "CallerIDName: %s\r\n" "Context: %s\r\n" "Extension: %s\r\n" "Priority: %d\r\n" "%s", - tmp->interface, qe->chan->name, + qe->parent->name, tmp->interface, qe->chan->name, tmp->chan->name, tmp->chan->cid.cid_num ? tmp->chan->cid.cid_num : "unknown", tmp->chan->cid.cid_name ? tmp->chan->cid.cid_name : "unknown", qe->chan->context, qe->chan->exten, qe->chan->priority,