Add original position, when logging a caller entering a queue.
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 20 Aug 2009 22:13:26 +0000 (22:13 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 20 Aug 2009 22:13:26 +0000 (22:13 +0000)
(closes issue #15146)
 Reported by: arabe
 Patches:
       asterisk-trunk.patch uploaded by arabe (license 786)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@213414 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index cc1fc18..beece4d 100644 (file)
@@ -5388,8 +5388,8 @@ static int queue_exec(struct ast_channel *chan, const char *data)
                set_queue_result(chan, reason);
                return 0;
        }
-       ast_queue_log(args.queuename, chan->uniqueid, "NONE", "ENTERQUEUE", "%s|%s", S_OR(args.url, ""),
-               S_OR(chan->cid.cid_num, ""));
+       ast_queue_log(args.queuename, chan->uniqueid, "NONE", "ENTERQUEUE", "%s|%s|%d", S_OR(args.url, ""),
+               S_OR(chan->cid.cid_num, ""), qe.opos);
        copy_rules(&qe, args.rule);
        qe.pr = AST_LIST_FIRST(&qe.qe_rules);
 check_turns: