Publish bridge snapshots more often
authorKinsey Moore <kmoore@digium.com>
Fri, 14 Jun 2013 16:08:55 +0000 (16:08 +0000)
committerKinsey Moore <kmoore@digium.com>
Fri, 14 Jun 2013 16:08:55 +0000 (16:08 +0000)
Bridge snapshot events were missing some important transitions that
were noticed in subsequent snapshots. Snapshots will now be published
on all bridge reconfigurations.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@391776 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/bridging.c

index 24f8d96..7300504 100644 (file)
@@ -2083,7 +2083,7 @@ static void set_bridge_peer_vars(struct ast_bridge *bridge)
  * \details
  * After a series of bridge_channel_push and
  * bridge_channel_pull calls, you need to call this function
- * to cause the bridge to complete restruturing for the change
+ * to cause the bridge to complete restructuring for the change
  * in the channel makeup of the bridge.
  *
  * \note On entry, the bridge is already locked.
@@ -2109,6 +2109,7 @@ static void bridge_reconfigured(struct ast_bridge *bridge)
        }
        check_bridge_play_sounds(bridge);
        set_bridge_peer_vars(bridge);
+       ast_bridge_publish_state(bridge);
 }
 
 /*!