<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><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></body>
</html>