[asterisk-commits] file: branch file/bridging r100327 - /team/file/bridging/main/bridging.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jan 24 20:59:53 CST 2008
Author: file
Date: Thu Jan 24 20:59:52 2008
New Revision: 100327
URL: http://svn.digium.com/view/asterisk?view=rev&rev=100327
Log:
Add debug message to dissolving and optimize things a bit.
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=100327&r1=100326&r2=100327
==============================================================================
--- team/file/bridging/main/bridging.c (original)
+++ team/file/bridging/main/bridging.c Thu Jan 24 20:59:52 2008
@@ -132,10 +132,15 @@
if (!ast_test_flag(&bridge->feature_flags, AST_BRIDGE_FLAG_DISSOLVE))
return;
+ ast_debug(1, "Dissolving bridge %p\n", bridge);
+
AST_LIST_TRAVERSE(&bridge->channels, bridge_channel, list) {
if (bridge_channel->state != AST_BRIDGE_CHANNEL_STATE_END && bridge_channel->state != AST_BRIDGE_CHANNEL_STATE_DEPART)
ast_bridge_change_state(bridge_channel, AST_BRIDGE_CHANNEL_STATE_HANGUP);
}
+
+ /* Since all the channels are going away let's go ahead and stop our on thread */
+ bridge->thread = AST_PTHREADT_STOP;
return;
}
More information about the asterisk-commits
mailing list