mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merge "app_stasis: Don't hang up if app is not registered" into 13
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user