summaryrefslogtreecommitdiff
path: root/apps/app_dial.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2008-05-30 16:10:46 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2008-05-30 16:10:46 +0000
commitc7191467d20b850a574ab2a87bed314a66564add (patch)
tree8c5c4485425fc139336668784159f312bfa01882 /apps/app_dial.c
parent87c9b6fc25e3e4ba5570c7d9ffe7e4ee49ba18b7 (diff)
Add native AGI command GOSUB, as invoking Gosub with EXEC does not work
properly. (closes issue #12760) Reported by: Corydon76 Patches: 20080530__bug12760.diff.txt uploaded by Corydon76 (license 14) Tested by: tim_ringenbach, Corydon76 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@119296 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_dial.c')
-rw-r--r--apps/app_dial.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index 105bce60d..205127014 100644
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -1776,13 +1776,13 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags
ast_copy_string(peer->exten, "s", sizeof(peer->exten));
peer->priority = 0;
- gosub_argstart = strchr(opt_args[OPT_ARG_CALLEE_GOSUB], '|');
+ gosub_argstart = strchr(opt_args[OPT_ARG_CALLEE_GOSUB], ',');
if (gosub_argstart) {
*gosub_argstart = 0;
- asprintf(&gosub_args, "%s|s|1(%s)", opt_args[OPT_ARG_CALLEE_GOSUB], gosub_argstart + 1);
- *gosub_argstart = '|';
+ asprintf(&gosub_args, "%s,s,1(%s)", opt_args[OPT_ARG_CALLEE_GOSUB], gosub_argstart + 1);
+ *gosub_argstart = ',';
} else {
- asprintf(&gosub_args, "%s|s|1", opt_args[OPT_ARG_CALLEE_GOSUB]);
+ asprintf(&gosub_args, "%s,s,1", opt_args[OPT_ARG_CALLEE_GOSUB]);
}
if (gosub_args) {