<div dir="ltr"><div>Thank you for the advice, Mike. <br>Have tried  'uuid_bridge', however call is dropped immediately (as per log becouse of script exit: has executed the last dialplan instruction, hanging up).<br>Tried  another bridge option - 'intercept', together with 'uuid_media off' - it allowed to achieved desired behavior - FS send re-invite, excluding itself from RTP path.<div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">--<br><a href="http://obelousov.tel" target="_blank">obelousov.tel</a></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 31, 2019 at 9:51 PM Mike Jerris <<a href="mailto:mike@freeswitch.org">mike@freeswitch.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">May not work with freeswitch.bridge.  try doing a uuid_bridge and see if it makes any difference.  <br><div><br><blockquote type="cite"><div>On Dec 31, 2019, at 7:40 AM, Oleg Belousov <<a href="mailto:obelousov@gmail.com" target="_blank">obelousov@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div>Happy festive season.<br><br>Would you please guide me with usage of 'bypass_media_after_bridge' feature?</div><div><br>Call flow is as following (running in lua script):<br>1. freeswitch preanswer call from UAC, then play some prompts</div><div><div>2, create second_session<br>3. when second session is ready - assign bypass_media_after_bridge=true and, see var is assigned.<br></div><div>EXECUTE [depth=0] sofia/external/XXXXXXXXXX

 set(bypass_media_after_bridge=true)<br>2019-12-31 14:21:19.253279 [DEBUG] mod_dptools.c:1672 SET sofia/external/XXXXXXXXXX [bypass_media_after_bridge]=[true]<br>4. bridge both calls. At that time expect freeswtch fire re-invite to get out of rtp path, however do not see any re-invites.<br></div><div><br></div>extract from script:</div><div>----<br><pre style="font-family:Consolas">ConnectStr <span style="color:rgb(0,0,128);font-weight:bold">=</span> <span style="color:rgb(101,138,186);font-weight:bold">"sofia/gateway/aed8dd2f-202f-4093-9851-436e21bafcf4/"</span><span style="color:rgb(0,0,128);font-weight:bold">..</span>DN<br>second_session <span style="color:rgb(0,0,128);font-weight:bold">=</span> freeswitch.Session(ConnectStr)<br><br><span style="color:rgb(0,0,128);font-weight:bold">if</span> (second_session:ready()) <span style="color:rgb(0,0,128);font-weight:bold">then<br></span>    second_session:execute(<span style="color:rgb(101,138,186);font-weight:bold">"set"</span>,<span style="color:rgb(101,138,186);font-weight:bold">"bypass_media_after_bridge=true"</span>)<br>    freeswitch.bridge(session, second_session)</pre></div><div>---</div><div><br></div><div>What could be wrong in my script?<br>version: FreeSWITCH Version 1.10.1-release-12<br></div></div></div></blockquote></div><br></div>_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>