diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-20 21:38:49 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-20 21:38:49 +0000 |
commit | 5d0ac5c2e193a26b32a7f6061a893e2781cc2c6a (patch) | |
tree | c340b3907d7eb60d75551488a478f3dcb66d0f22 /apps/app_dial.c | |
parent | c346de7673a83232ae20417094e01d6c692a6fe8 (diff) |
As per 9228, now app_queue should have the proper machinery to do gosubs.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@70531 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_dial.c')
-rw-r--r-- | apps/app_dial.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index 8bec88b76..7d92d6d8c 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -1637,7 +1637,6 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags struct ast_app *theapp; const char *gosub_result; char *gosub_args, *gosub_argstart; - ast_log(LOG_ERROR, "In OPT_CALLEE_GOSUB code!\n"); res = ast_autoservice_start(chan); if (res) { @@ -1655,7 +1654,6 @@ 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; - ast_log(LOG_ERROR, "Gosub stuff is: %s\n", opt_args[OPT_ARG_CALLEE_GOSUB]); gosub_argstart = strchr(opt_args[OPT_ARG_CALLEE_GOSUB], '|'); if (gosub_argstart) { *gosub_argstart = 0; @@ -1664,12 +1662,10 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags } else { asprintf(&gosub_args, "%s|s|1", opt_args[OPT_ARG_CALLEE_GOSUB]); } - ast_log(LOG_DEBUG, "Gosub_args is: %s\n", gosub_args); + if (gosub_args) { - ast_log(LOG_ERROR, "About to pbx_exec!\n"); res = pbx_exec(peer, theapp, gosub_args); ast_pbx_run(peer); - ast_log(LOG_ERROR, "pbx_exec returns %d!\n", res); free(gosub_args); if (option_debug) ast_log(LOG_DEBUG, "Gosub exited with status %d\n", res); |