diff options
author | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-02 19:18:36 +0000 |
---|---|---|
committer | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-02 19:18:36 +0000 |
commit | 1718ea2a7c0b1eaec99740d6683af68356de886c (patch) | |
tree | 4a6263af56a498bd019840413ba3025ed14184d9 /apps | |
parent | 62c2fd849ecdbcc3384091a11e971f586e7c2b7b (diff) |
Record bridge channel unique id in "CONNECT" queue_log entry and the corresponding manager event. #6522 (nording) w/ documentation additions where appropriate
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24293 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_queue.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 7d943b242..092aa7094 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2241,16 +2241,17 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce ast_log(LOG_DEBUG, "app_queue: sendurl=%s.\n", url); ast_channel_sendurl(peer, url); } - ast_queue_log(queuename, qe->chan->uniqueid, peer->name, "CONNECT", "%ld", (long)time(NULL) - qe->start); + ast_queue_log(queuename, qe->chan->uniqueid, peer->name, "CONNECT", "%ld|%s", (long)time(NULL) - qe->start, peer->uniqueid); if (qe->parent->eventwhencalled) manager_event(EVENT_FLAG_AGENT, "AgentConnect", "Queue: %s\r\n" "Uniqueid: %s\r\n" "Channel: %s\r\n" "Member: %s\r\n" - "Holdtime: %ld\r\n", + "Holdtime: %ld\r\n" + "BridgedChannel: %s\r\n", queuename, qe->chan->uniqueid, peer->name, member->interface, - (long)time(NULL) - qe->start); + (long)time(NULL) - qe->start,peer->uniqueid); ast_copy_string(oldcontext, qe->chan->context, sizeof(oldcontext)); ast_copy_string(oldexten, qe->chan->exten, sizeof(oldexten)); time(&callstart); |