[asterisk-commits] [svn-commits] file: branch file/bridging r106324 - /team/file/bridging/main/bridging.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Mar 5 21:34:03 CST 2008
Author: file
Date: Wed Mar 5 21:34:02 2008
New Revision: 106324
URL: http://svn.digium.com/view/asterisk?view=rev&rev=106324
Log:
It will soon be possible for the formats to actually change in a feature hook callback for a valid reason.
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=106324&r1=106323&r2=106324
==============================================================================
--- team/file/bridging/main/bridging.c (original)
+++ team/file/bridging/main/bridging.c Wed Mar 5 21:34:02 2008
@@ -705,11 +705,7 @@
/* If a hook was actually matched execute it on this channel, otherwise stream up the DTMF to the other channels */
if (hook) {
- int formats[2] = {bridge_channel->chan->readformat, bridge_channel->chan->writeformat};
hook->callback(bridge, bridge_channel);
- /* Ensure that formats are restored to the expected ones after this feature hook executes */
- ast_set_read_format(bridge_channel->chan, formats[0]);
- ast_set_write_format(bridge_channel->chan, formats[1]);
} else {
ast_bridge_dtmf_stream(bridge, dtmf, bridge_channel->chan);
bridge_channel->state = AST_BRIDGE_CHANNEL_STATE_WAIT;
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
svn-commits mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/svn-commits
More information about the asterisk-commits
mailing list