<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-family: Verdana,Geneva,sans-serif'>
<p>Le 2017-07-05 18:51, Joshua Colp a écrit :</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<pre>On Wed, Jul 5, 2017, at 01:45 PM, Jean Aunis wrote:</pre>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%">Hello, I am struggling with a problem which I thought would be an easy one : bridging several channels together in a *smart* bridge. I emphasize *smart* : I want my bridge to be a native_rtp one when only two channels are involved, and switch to softmix technology when a third channel comes in. I thought I could use ConfBridge for that, but it creates a bridge that is not smart (it is of type softmix even if two channels only are involved). I can do this with ARI of course, but handling transfers will become quite difficult : I will receive replace_channels events, and channel optimization will not be performed. I managed to have something working this way, but I had to write a lot of code and some situations are very tricky to debug. The easiest way I found was to write a piece if dialplan mixing BridgeWait, Bridge and BridgeAdd. This works well, transfers are handled by the Asterisk core, and the bridge is smart. Still, it requires to maintain a list of bridged channels in order to call BridgeWait, Bridge and BridgeAdd in the right order and with the right parameters. Can you think of any other way (hopefully easier) to achieve this ?</blockquote>
<pre>Not really, there's no cookie cutter application that behaves as you
need using the bridging API.<span class="sig">
</span></pre>
</blockquote>
<p>Thank you for your quick answer.<br /><br />Do you think it could make sense to add an option to the ConfBridge application for this ? Personally I would say "not really", because many ConfBridge features may become unusable when the bridge is in native_rtp technology.</p>
<div> </div>
</body></html>