aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/app_dial.c3
-rw-r--r--apps/app_queue.c9
2 files changed, 7 insertions, 5 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index d676fb5f5..c4ba19103 100644
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -1840,8 +1840,7 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags
ast_pbx_run_args(peer, &args);
}
ast_free(gosub_args);
- if (option_debug)
- ast_log(LOG_DEBUG, "Gosub exited with status %d\n", res);
+ ast_debug(1, "Gosub exited with status %d\n", res);
} else {
ast_log(LOG_ERROR, "Could not Allocate string for Gosub arguments -- Gosub Call Aborted!\n");
}
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 8870cff1e..9eb7128c3 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -3803,9 +3803,12 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce
if (gosub_args) {
res = pbx_exec(peer, app, gosub_args);
if (!res) {
- ast_pbx_run(peer);
+ struct ast_pbx_args args;
+ memset(&args, 0, sizeof(args));
+ args.no_hangup_chan = 1;
+ ast_pbx_run_args(peer, &args);
}
- free(gosub_args);
+ ast_free(gosub_args);
if (option_debug)
ast_log(LOG_DEBUG, "Gosub exited with status %d\n", res);
} else {
@@ -6536,7 +6539,7 @@ static int load_module(void)
if (!con)
ast_log(LOG_ERROR, "Queue virtual context 'app_queue_gosub_virtual_context' does not exist and unable to create\n");
else
- ast_add_extension2(con, 1, "s", 1, NULL, NULL, "KeepAlive", ast_strdup(""), ast_free_ptr, "app_queue");
+ ast_add_extension2(con, 1, "s", 1, NULL, NULL, "NoOp", ast_strdup(""), ast_free_ptr, "app_queue");
if (queue_persistent_members)
reload_queue_members();