[Asterisk-code-review] ASTERISK-25846 return 0 when/if the app fails (asterisk[13])
Andrew Nagy
asteriskteam at digium.com
Tue Mar 15 13:35:05 CDT 2016
Andrew Nagy has uploaded a new change for review.
https://gerrit.asterisk.org/2402
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, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/02/2402/1
diff --git a/apps/app_stasis.c b/apps/app_stasis.c
index 4f53aff..93ad88d 100644
--- a/apps/app_stasis.c
+++ b/apps/app_stasis.c
@@ -111,7 +111,9 @@
}
if (ret == -1) {
- pbx_builtin_setvar_helper(chan, "STASISSTATUS", "FAILED");
+ /* 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/2402
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I63216a61f30706d5362bc0906b50b6f0544aebce
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Andrew Nagy <andrew.nagy at the159.com>
More information about the asterisk-code-review
mailing list