<p>Do you exit the app after you call uuid bridge?<br>
Your code is running in the session thread so you need to exit so it can change states.</p>
<div class="gmail_quote">On Jul 20, 2012 3:32 PM, &quot;Srini K&quot; &lt;<a href="mailto:aksrini@hotmail.com">aksrini@hotmail.com</a>&gt; wrote:<br type="attribution"><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<br>Srini<br><br>                                               </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>