<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, "Srini K" <<a href="mailto:aksrini@hotmail.com">aksrini@hotmail.com</a>> 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("ivr/ThankYou.wav", 0);<br>
// Create outBound session<br> var bLegSession = new ManagedSession("sofia/gateway/95/4151230000");<br> <br> // Bypass Media<br> aLegSession.SetVariable("bypass_media_after_bridge", "true");<br>
bLegSession.SetVariable("bypass_media_after_bridge", "true");<br> fsApi.ExecuteString(string.Format("uuid_bridge {0} {1}", aLegSession.GetUuid(), bLegSession.GetUuid()));<br>
}<br> <br>I don't see FreeSWITCH sending re-Invite after the call is bridged.<br>What I'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> <action application="answer"/><br> <action application="sleep" data="1500"/> <br> <action application="set" data="bypass_media_after_bridge=true"/> <br>
<action application="playback" data="ivr/ThankYou.wav"/><br> <action application="bridge" data="sofia/gateway/95/4151230000"/> <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>