bypass media after bridge not getting applied when using intercept app from within LUA script
Hi , I am setting "bypass_media_after_bridge" on both the channels and'm using intercept app to bridge two sessions which are part of 2 separate LUA scripts . However I don't see FreeSWITCH issuing Re-Invites once the calls are bridged together . Just wondering if there is any other way to go peer-to-peer once the intercept app is called from LUA script? I even tried calling uuid_media off from LUA script but it didn't seem to work . B-leg side of the script: session:setVariable("bypass_media_after_bridge","true"); if ( session:ready() ) then session:answer(); end session:execute("intercept", aleg_uuid); api:execute("uuid_media off",aleg_uuid); Thanks in advance Regards Jyotshna
Well you may want to 1. wrap it all in the if session:ready(), 2. you may wish to sleep a little giving everything time to settle before you do uuid_media off. But what exactly is your goal/intent? I’m trying to understand why you’re doing this in this manner. -- Brian West brian@freeswitch.org FreeSWITCH Solutions, LLC PO BOX 2531 Brookfield, WI 53008-2531 Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST iNUM: +883 5100 1420 9001 ISN: 410*543 Skype:briankwest PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED) On Feb 13, 2014, at 4:41 PM, Jyotshna Cherukuri <jcherukuri_necc@yahoo.com> wrote:
Hi ,
I am setting "bypass_media_after_bridge" on both the channels and'm using intercept app to bridge two sessions which are part of 2 separate LUA scripts . However I don't see FreeSWITCH issuing Re-Invites once the calls are bridged together .
Just wondering if there is any other way to go peer-to-peer once the intercept app is called from LUA script? I even tried calling uuid_media off from LUA script but it didn't seem to work .
B-leg side of the script:
session:setVariable("bypass_media_after_bridge","true"); if ( session:ready() ) then session:answer(); end session:execute("intercept", aleg_uuid); api:execute("uuid_media off",aleg_uuid);
Thanks for your input Brian. In issuing api:executeString("sched_api +10 none uuid_media off "..aleg_uuid); I see Re-INVITES going out . However I was wondering why I cannot use "bypass_media_after_bridge" channel variable. My goal is to bridge 2 incoming calls into Freeswitch and have the calls go peer-to-peer once the call is bridged . --Jyotshna On Thursday, February 13, 2014 5:41 PM, Jyotshna Cherukuri <jcherukuri_necc@yahoo.com> wrote: Hi , I am setting "bypass_media_after_bridge" on both the channels and'm using intercept app to bridge two sessions which are part of 2 separate LUA scripts . However I don't see FreeSWITCH issuing Re-Invites once the calls are bridged together . Just wondering if there is any other way to go peer-to-peer once the intercept app is called from LUA script? I even tried calling uuid_media off from LUA script but it didn't seem to work . B-leg side of the script: session:setVariable("bypass_media_after_bridge","true"); if ( session:ready() ) then session:answer(); end session:execute("intercept", aleg_uuid); api:execute("uuid_media off",aleg_uuid); Thanks in advance Regards Jyotshna
AFAIK the variable is checked by the bridge dialplan app, which you aren't using On Friday, February 14, 2014, Jyotshna Cherukuri <jcherukuri_necc@yahoo.com> wrote:
Thanks for your input Brian. In issuing api:executeString("sched_api +10 none uuid_media off "..aleg_uuid); I see Re-INVITES going out . However I was wondering why I cannot use " bypass_media_after_bridge" channel variable.
My goal is to bridge 2 incoming calls into Freeswitch and have the calls go peer-to-peer once the call is bridged .
--Jyotshna
On Thursday, February 13, 2014 5:41 PM, Jyotshna Cherukuri < jcherukuri_necc@yahoo.com<javascript:_e(%7B%7D,'cvml','jcherukuri_necc@yahoo.com');>> wrote: Hi ,
I am setting "bypass_media_after_bridge" on both the channels and'm using intercept app to bridge two sessions which are part of 2 separate LUA scripts . However I don't see FreeSWITCH issuing Re-Invites once the calls are bridged together .
Just wondering if there is any other way to go peer-to-peer once the intercept app is called from LUA script? I even tried calling uuid_media off from LUA script but it didn't seem to work .
B-leg side of the script:
session:setVariable("bypass_media_after_bridge","true"); if ( session:ready() ) then session:answer(); end session:execute("intercept", aleg_uuid); api:execute("uuid_media off",aleg_uuid);
Thanks in advance Regards Jyotshna
participants (3)
-
Brian West
-
Jyotshna Cherukuri
-
Steven Ayre