[asterisk-commits] kmoore: trunk r397244 - /trunk/res/res_stasis.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 21 09:08:25 CDT 2013


Author: kmoore
Date: Wed Aug 21 09:08:23 2013
New Revision: 397244

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=397244
Log:
Allow channels in app_stasis to hangup properly

This detects hangups that occur while bridged to allow channels to exit
app_stasis even if the hangup frame was absorbed by the bridge the
channel was in.

Reported by: David Lee
(closes issue ASTERISK-22297)

Modified:
    trunk/res/res_stasis.c

Modified: trunk/res/res_stasis.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_stasis.c?view=diff&rev=397244&r1=397243&r2=397244
==============================================================================
--- trunk/res/res_stasis.c (original)
+++ trunk/res/res_stasis.c Wed Aug 21 09:08:23 2013
@@ -596,6 +596,11 @@
 		RAII_VAR(struct ast_frame *, f, NULL, ast_frame_dtor);
 		int r;
 		int command_count;
+
+		/* Check to see if a bridge absorbed our hangup frame */
+		if (ast_check_hangup_locked(chan)) {
+			break;
+		}
 
 		if (stasis_app_get_bridge(control)) {
 			/* Bridge is handling channel frames */




More information about the asterisk-commits mailing list