aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-06 22:15:19 +0000
committerjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-06 22:15:19 +0000
commit909d09a59c9b992e4a39a768dc5b006a4717d3ad (patch)
treea16c925af104d09560cf9483f236558ff817f64a /res
parent127973c8127f402166a8c7e0d8b2d73206abf089 (diff)
Make ParkedCall application stop execution of the dialplan after hang up
Just changed park_exec to always return non-zero. I really wasn't entirely sure at first if this was a bug. Decided it was since it would be surprising when not using ParkedCall in the dialplan to hang up and have dialplan execution continue. (closes issue #14555) Reported by: francesco_r git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@192858 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_features.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_features.c b/res/res_features.c
index e2f1810a9..00bacaa93 100644
--- a/res/res_features.c
+++ b/res/res_features.c
@@ -2575,7 +2575,7 @@ static int park_exec(struct ast_channel *chan, void *data)
/* Simulate the PBX hanging up */
ast_hangup(peer);
ast_module_user_remove(u);
- return res;
+ return -1;
} else {
/*! \todo XXX Play a message XXX */
if (ast_stream_and_wait(chan, "pbx-invalidpark", chan->language, ""))
@@ -2587,7 +2587,7 @@ static int park_exec(struct ast_channel *chan, void *data)
ast_module_user_remove(u);
- return res;
+ return -1;
}
static int handle_showfeatures(int fd, int argc, char *argv[])