Skip to content
Snippets Groups Projects
Commit 20d67cc6 authored by zuul's avatar zuul Committed by Gerrit Code Review
Browse files

Merge "app_stasis: Don't hang up if app is not registered"

parents 3fa60762 7964e260
No related branches found
No related tags found
No related merge requests found
......@@ -110,10 +110,16 @@ static int app_exec(struct ast_channel *chan, const char *data)
args.app_argv);
}
if (ret == -1) {
pbx_builtin_setvar_helper(chan, "STASISSTATUS", "FAILED");
if (ret) {
/* set ret to 0 so pbx_core doesnt hangup the channel */
if (!ast_check_hangup(chan)) {
ret = 0;
} else {
ret = -1;
}
pbx_builtin_setvar_helper(chan, "STASISSTATUS", "FAILED");
} else {
pbx_builtin_setvar_helper(chan, "STASISSTATUS", "SUCCESS");
pbx_builtin_setvar_helper(chan, "STASISSTATUS", "SUCCESS");
}
return ret;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment