[asterisk-commits] file: branch file/bridging r62367 - /team/file/bridging/main/bridging.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Apr 30 07:20:57 MST 2007


Author: file
Date: Mon Apr 30 09:20:57 2007
New Revision: 62367

URL: http://svn.digium.com/view/asterisk?view=rev&rev=62367
Log:
Don't treat all control frames as hangup, only a hangup control frame.

Modified:
    team/file/bridging/main/bridging.c

Modified: team/file/bridging/main/bridging.c
URL: http://svn.digium.com/view/asterisk/team/file/bridging/main/bridging.c?view=diff&rev=62367&r1=62366&r2=62367
==============================================================================
--- team/file/bridging/main/bridging.c (original)
+++ team/file/bridging/main/bridging.c Mon Apr 30 09:20:57 2007
@@ -175,7 +175,7 @@
 			}
 
 			/* Try to read in a frame, if this fails it means they hungup */
-			if (!(frame = ast_read(winner)) || (frame->frametype == AST_FRAME_CONTROL)) {
+			if (!(frame = ast_read(winner)) || (frame->frametype == AST_FRAME_CONTROL && frame->subclass == AST_CONTROL_HANGUP)) {
 				/* Switch the bridged channel phase to end and signal it's thread */
 				ast_bridge_change_phase(bridge_channel, AST_BRIDGE_CHANNEL_PHASE_END);
 				/* If the bridge is set to dissolve upon anyone hanging up, due so */



More information about the asterisk-commits mailing list