diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-08-06 21:29:26 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-08-06 21:29:26 +0000 |
commit | a737df8603010576ff7e4b860bb96c4b633aba15 (patch) | |
tree | 4e692e1a07b185c87940b956a2c820cf6ce21554 /apps/app_stack.c | |
parent | d669ba24d7789874dd1649c3bcc45a56f5d60812 (diff) |
Allow Gosub to recognize quote delimiters without consuming them.
(closes issue #15557)
Reported by: rain
Patches:
20090723__issue15557.diff.txt uploaded by tilghman (license 14)
Tested by: rain
Review: https://reviewboard.asterisk.org/r/316/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210908 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_stack.c')
-rw-r--r-- | apps/app_stack.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/app_stack.c b/apps/app_stack.c index 84be40ba2..1a2523122 100644 --- a/apps/app_stack.c +++ b/apps/app_stack.c @@ -380,7 +380,7 @@ static int gosub_exec(struct ast_channel *chan, const char *data) *endparen = '\0'; else ast_log(LOG_WARNING, "Ouch. No closing paren: '%s'?\n", (char *)data); - AST_STANDARD_APP_ARGS(args2, tmp); + AST_STANDARD_RAW_ARGS(args2, tmp); } else args2.argc = 0; @@ -444,13 +444,13 @@ static int gosubif_exec(struct ast_channel *chan, const char *data) } args = ast_strdupa(data); - AST_NONSTANDARD_APP_ARGS(cond, args, '?'); + AST_NONSTANDARD_RAW_ARGS(cond, args, '?'); if (cond.argc != 2) { ast_log(LOG_WARNING, "GosubIf requires an argument: GosubIf(cond?label1(args):label2(args)\n"); return 0; } - AST_NONSTANDARD_APP_ARGS(label, cond.labels, ':'); + AST_NONSTANDARD_RAW_ARGS(label, cond.labels, ':'); if (pbx_checkcondition(cond.ition)) { if (!ast_strlen_zero(label.iftrue)) @@ -532,7 +532,7 @@ static int peek_read(struct ast_channel *chan, const char *cmd, char *data, char return -1; } - AST_STANDARD_APP_ARGS(args, data); + AST_STANDARD_RAW_ARGS(args, data); n = atoi(args.n); *buf = '\0'; |