[Freeswitch-users] No reINVITE when bridging two sessions from mod_managed with bypass_media_after_bridge=true

Anthony Minessale anthony.minessale at gmail.com
Sat Jul 28 02:09:45 MSD 2012


Do you exit the app after you call uuid bridge?
Your code is running in the session thread so you need to exit so it can
change states.
On Jul 20, 2012 3:32 PM, "Srini K" <aksrini at hotmail.com> wrote:

>  Hi,
> Iam trying to bypass media from FS after two call legs are bridged using
> mod_managed.
> The code looks like
>         public void Run(AppContext context)
>         {
>             var fsApi = new FreeSWITCH.Native.Api();
>             var aLegSession = context.Session;
>             // Answer the incoming call
>             aLegSession.Answer();
>             // Play the prompt
>             aLegSession.StreamFile("ivr/ThankYou.wav", 0);
>             // Create outBound session
>             var bLegSession = new
> ManagedSession("sofia/gateway/95/4151230000");
>
>             // Bypass Media
>             aLegSession.SetVariable("bypass_media_after_bridge", "true");
>             bLegSession.SetVariable("bypass_media_after_bridge", "true");
>             fsApi.ExecuteString(string.Format("uuid_bridge {0} {1}",
> aLegSession.GetUuid(), bLegSession.GetUuid()));
>         }
>
> I don't see FreeSWITCH sending re-Invite after the call is bridged.
> What I've already tried and did not succeed:
> 1) set bypass_media=true, on A leg only, on B leg only, on both legs
> 2) set bypass_media_after_bridge=true, on A leg only, on B leg only, on
> both legs
>
> When I tried without using mod_managed using only dialplan, FS sends
> re-Invite.
>  <action application="answer"/>
>  <action application="sleep" data="1500"/>
>  <action application="set" data="bypass_media_after_bridge=true"/>
>  <action application="playback" data="ivr/ThankYou.wav"/>
>  <action application="bridge" data="sofia/gateway/95/4151230000"/>
>
> Whether Iam doing anything stupid in mod_managed?
>
> Regards
> Srini
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> Join Us At ClueCon - Aug 7-9, 2012
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120727/428739af/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list