Thank you for the fast answer but doesn&#39;t work. The dial plan looks:<br><br>&lt;extension name=&quot;x3_v1&quot;&gt;<br>&lt;condition field=&quot;destination_number&quot; expression=&quot;^2222([23]\d{7})$&quot;&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;inherit_codec=true&quot;/&gt;<br>&lt;action application=&quot;set&quot; data=&quot;bypass_media_after_bridge=true&quot;/&gt;<br>&lt;action application=&quot;set&quot; data=&quot;bridge_early_media=true&quot;/&gt;<br>
&lt;action application=&quot;bridge&quot; data=&quot;xxxx&quot;/&gt;<br>&lt;/condition&gt;<br>&lt;/extension&gt;<br><br>If I set the codec to G711ulaw for endpoints the call is ok. If I change the codec to something FS doesn&#39;t know I receive:<br>
<br>2012-05-19 19:50:52.130039 [INFO] mod_dptools.c:2954 Originate Failed.  Cause: INCOMPATIBLE_DESTINATION<br><br>Param inbound_late_negotiation is true in sofia internal profile.<br><br>TY<br><br><div class="gmail_quote">
On Sat, May 19, 2012 at 5:16 PM, Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The best you can do is set<br>
{inherit_codec=true,bypass_media_after_bridge=true,bridge_early_media=true}<br>
and use the inbound-late-negotiation sofia profile param.<br>
<div><div class="h5"><br>
<br>
On Sat, May 19, 2012 at 7:15 AM, Adrian Andrei &lt;<a href="mailto:koralu@gmail.com">koralu@gmail.com</a>&gt; wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt; In my dial plan I use bypass_media set to true because I want the codec<br>
&gt; negotiation be made by end points. Also I want the early_media to be bridge<br>
&gt; from Bleg to Aleg. For this setup I design this dialplan:<br>
&gt;<br>
&gt; &lt;condition field=&quot;destination_number&quot; expression=&quot;^1&quot;&gt;<br>
&gt; &lt;action application=&quot;set&quot; data=&quot;bypass_media=true&quot;/&gt;<br>
&gt; &lt;action application=&quot;set&quot; data=&quot;bridge_early_media=true&quot;/&gt;<br>
&gt; &lt;action application=&quot;bridge&quot; data=&quot;sofia/external/xxxx&quot;/&gt;<br>
&gt; &lt;/condition&gt;<br>
&gt;<br>
&gt; Setting bypass_media and bridge_early_media to true cause no early media<br>
&gt; bridge.<br>
&gt; If I set only bridge_early_media=true and uncomment bypass_media line then<br>
&gt; early media is bridged but no codec negotiation between end points.<br>
&gt;<br>
&gt; How can I have also codec neg. between end points and early media bridged?<br>
&gt;<br>
&gt; Thank you<br>
&gt;<br>
</div></div>&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; Join Us At ClueCon - Aug 7-9, 2012<br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
<br>
<br>
<br>
--<br>
Anthony Minessale II<br>
<br>
FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
<br>
AIM: anthm<br>
<a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:<a href="tel:%2B19193869900" value="+19193869900">+19193869900</a><br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br>