[Asterisk-code-review] ASTERISK-25846 return 0 when/if the app fails (asterisk[master])
Andrew Nagy
asteriskteam at digium.com
Tue Mar 15 16:53:46 CDT 2016
Andrew Nagy has uploaded a new change for review.
https://gerrit.asterisk.org/2417
Change subject: ASTERISK-25846 return 0 when/if the app fails
......................................................................
ASTERISK-25846 return 0 when/if the app fails
Change-Id: I63216a61f30706d5362bc0906b50b6f0544aebce
---
M apps/app_stasis.c
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/17/2417/1
diff --git a/apps/app_stasis.c b/apps/app_stasis.c
index 4f53aff..35b88df 100644
--- a/apps/app_stasis.c
+++ b/apps/app_stasis.c
@@ -111,6 +111,8 @@
}
if (ret == -1) {
+ /* set ret to 0 so pbx_core doesnt hangup the channel */
+ ret = 0;
pbx_builtin_setvar_helper(chan, "STASISSTATUS", "FAILED");
} else {
pbx_builtin_setvar_helper(chan, "STASISSTATUS", "SUCCESS");
--
To view, visit https://gerrit.asterisk.org/2417
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I63216a61f30706d5362bc0906b50b6f0544aebce
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Andrew Nagy <andrew.nagy at the159.com>
More information about the asterisk-code-review
mailing list