diff options
author | Joshua Colp <jcolp@digium.com> | 2015-05-06 07:42:05 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2015-05-06 07:42:05 -0500 |
commit | d6ffbe39b0ffac581c341bda01c88bd8eb4f5073 (patch) | |
tree | 1d37a7384d634ac87d39433c2df5fa9e095181a8 | |
parent | dfb292ce3e69670bb68818a4fff5ee8c261e3bd3 (diff) | |
parent | 87263b47b51bf727e04f352f988acb508924e423 (diff) |
Merge "app_queue: Fix queue_log EXITWITHTIMEOUT containing only 1 parameter" into 13
-rw-r--r-- | apps/app_queue.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index df5ff306e..c0018b555 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -7817,7 +7817,8 @@ check_turns: record_abandoned(&qe); reason = QUEUE_TIMEOUT; res = 0; - ast_queue_log(args.queuename, ast_channel_uniqueid(chan), "NONE", "EXITWITHTIMEOUT", "%d", qe.pos); + ast_queue_log(args.queuename, ast_channel_uniqueid(chan), "NONE", "EXITWITHTIMEOUT", + "%d|%d|%ld", qe.pos, qe.opos, (long) (time(NULL) - qe.start)); break; } @@ -7846,7 +7847,8 @@ check_turns: /* exit after 'timeout' cycle if 'n' option enabled */ if (noption && tries >= ao2_container_count(qe.parent->members)) { ast_verb(3, "Exiting on time-out cycle\n"); - ast_queue_log(args.queuename, ast_channel_uniqueid(chan), "NONE", "EXITWITHTIMEOUT", "%d", qe.pos); + ast_queue_log(args.queuename, ast_channel_uniqueid(chan), "NONE", "EXITWITHTIMEOUT", + "%d|%d|%ld", qe.pos, qe.opos, (long) (time(NULL) - qe.start)); record_abandoned(&qe); reason = QUEUE_TIMEOUT; res = 0; |