diff options
author | Richard Mudgett <rmudgett@digium.com> | 2012-06-07 20:39:25 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2012-06-07 20:39:25 +0000 |
commit | 3f59ad990c28f472c1d01dab8d4d0091ff7e522a (patch) | |
tree | ca2dea439619f6f311bc840d1b9e853c48fb848a /apps/app_queue.c | |
parent | 9ecd6c9ab43c73d46c0a265aacd06405ba7ec05f (diff) |
Fix app_queue debug message use of args.options after the string has been parsed.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368675 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r-- | apps/app_queue.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 1740740bb..16967985d 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -6380,6 +6380,18 @@ static int queue_exec(struct ast_channel *chan, const char *data) parse = ast_strdupa(data); AST_STANDARD_APP_ARGS(args, parse); + ast_debug(1, "queue: %s, options: %s, url: %s, announce: %s, timeout: %s, agi: %s, macro: %s, gosub: %s, rule: %s, position: %s\n", + args.queuename, + S_OR(args.options, ""), + S_OR(args.url, ""), + S_OR(args.announceoverride, ""), + S_OR(args.queuetimeoutstr, ""), + S_OR(args.agi, ""), + S_OR(args.macro, ""), + S_OR(args.gosub, ""), + S_OR(args.rule, ""), + S_OR(args.position, "")); + if (!ast_strlen_zero(args.options)) { ast_app_parse_options(queue_exec_options, &opts, opt_args, args.options); } @@ -6457,8 +6469,8 @@ static int queue_exec(struct ast_channel *chan, const char *data) } } - ast_debug(1, "queue: %s, options: %s, url: %s, announce: %s, expires: %ld, priority: %d\n", - args.queuename, args.options, args.url, args.announceoverride, (long)qe.expire, prio); + ast_debug(1, "queue: %s, expires: %ld, priority: %d\n", + args.queuename, (long)qe.expire, prio); qe.chan = chan; qe.prio = prio; |