mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Reduce channel snapshot creation and publishing by up to 50%.
This change introduces the ability to stage channel snapshot creation and publishing by suppressing the implicit creation and publishing that some functions have. Once all operations are executed the staging is marked as done and a single snapshot is created and published. Review: https://reviewboard.asterisk.org/r/2889/ ........ Merged revisions 400265 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@400266 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1151,8 +1151,10 @@ static void check_bridge_play_sounds(struct ast_bridge *bridge)
|
||||
|
||||
static void update_bridge_vars_set(struct ast_channel *chan, const char *name, const char *pvtid)
|
||||
{
|
||||
ast_channel_stage_snapshot(chan);
|
||||
pbx_builtin_setvar_helper(chan, "BRIDGEPEER", name);
|
||||
pbx_builtin_setvar_helper(chan, "BRIDGEPVTCALLID", pvtid);
|
||||
ast_channel_stage_snapshot_done(chan);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Reference in New Issue
Block a user