Try using uuid_media after the bridge instaed, see if that helps? <div><br></div><div><a href="http://wiki.freeswitch.org/wiki/Mod_commands#uuid_media">http://wiki.freeswitch.org/wiki/Mod_commands#uuid_media</a> <br><br><div class="gmail_quote">
On 20 July 2012 21:30, Srini K <span dir="ltr">&lt;<a href="mailto:aksrini@hotmail.com" target="_blank">aksrini@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div><div dir="ltr">



Hi,<br>Iam trying to bypass media from FS after two call legs are bridged using mod_managed.<br>The code looks like<br>        public void Run(AppContext context)<br>        {<br>            var fsApi = new FreeSWITCH.Native.Api();<br>
            var aLegSession = context.Session;<br>            // Answer the incoming call<br>            aLegSession.Answer();<br>            // Play the prompt<br>            aLegSession.StreamFile(&quot;ivr/ThankYou.wav&quot;, 0);<br>
            // Create outBound session<br>            var bLegSession = new ManagedSession(&quot;sofia/gateway/95/4151230000&quot;);<br>            <br>            // Bypass Media<br>            aLegSession.SetVariable(&quot;bypass_media_after_bridge&quot;, &quot;true&quot;);<br>
            bLegSession.SetVariable(&quot;bypass_media_after_bridge&quot;, &quot;true&quot;);<br>            fsApi.ExecuteString(string.Format(&quot;uuid_bridge {0} {1}&quot;, aLegSession.GetUuid(), bLegSession.GetUuid()));<br>
        }<br>  <br>I don&#39;t see FreeSWITCH sending re-Invite after the call is bridged.<br>What I&#39;ve already tried and did not succeed: <br>1) set bypass_media=true, on A leg only, on B leg only, on both legs <br>2) set bypass_media_after_bridge=true, on A leg only, on B leg only, on both legs <br>
 <br>When I tried without using mod_managed using only dialplan, FS sends re-Invite.<br> &lt;action application=&quot;answer&quot;/&gt;<br> &lt;action application=&quot;sleep&quot; data=&quot;1500&quot;/&gt; <br> &lt;action application=&quot;set&quot; data=&quot;bypass_media_after_bridge=true&quot;/&gt; <br>
 &lt;action application=&quot;playback&quot; data=&quot;ivr/ThankYou.wav&quot;/&gt;<br> &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/95/4151230000&quot;/&gt; <br> <br>Whether Iam doing anything stupid in mod_managed? <br>
 <br>Regards<span class="HOEnZb"><font color="#888888"><br>Srini<br><br>                                               </font></span></div></div>
<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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><b>Andrew Cassidy BSc (Hons) MBCS SSCA</b><div>Managing Director<div><div><img src="http://c1170247.r47.cf3.rackcdn.com/emailsig.png"><br></div><div><br><div>
<b style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">T</a> </b>03300 100 960 
<b style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">F</a> </b>03300 100 961</div>
<div><b style="text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">E</a> </b><a href="mailto:andrew@cassidywebservices.co.uk" target="_blank">andrew@cassidywebservices.co.uk</a></div>
<div><b style="text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">W</a> </b><a href="http://www.cassidywebservices.co.uk" target="_blank">www.cassidywebservices.co.uk</a></div>
</div></div></div><br>
</div>