diff options
author | Joshua Colp <jcolp@digium.com> | 2015-05-06 07:42:16 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2015-05-06 07:42:16 -0500 |
commit | a4d16c182221b1796485a45b523275601aafe5bb (patch) | |
tree | 2b741bb6037273ec1ddf3d090dc944611b0a3820 | |
parent | 54e83b594a6e16df599a2f92d615defbd8dfc2d1 (diff) | |
parent | 90bfc02e8484d2788ebe43be9a50ac8ef9fb59f2 (diff) |
Merge "app_queue: Fix queue_log EXITWITHTIMEOUT containing only 1 parameter"
-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 d2c6406be..069ef37ac 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -7835,7 +7835,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; } @@ -7864,7 +7865,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; |