<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-06-27 7:52 GMT+03:00 Ken Rice <span dir="ltr">&lt;<a href="mailto:krice@freeswitch.org" target="_blank">krice@freeswitch.org</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><br><div>See uuid_bridge note most of the time you shouldnt be doing things like this in scripts as it leaves an interpreter running per call</div></div></blockquote><div><br></div><div>Please elaborate more about interpreter thing. If I bridge calls with intercept / uuid_bridge command in LUA script and have 1000 concurrent calls I&#39;ll end up with 1000 idle threads?<br></div><div>What is your advice about doing it more efficiently: execute intercept command from XML dialplan (does it use event loop?), external control through event socket?<br></div><div><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 dir="auto"><div>Proxy mode is not really worth it.. If you are just avoiding trancoding normal mode is just as efficient</div><div><br><div>Sent from my iPhone</div></div><div><div class="h5"><div><br>On Jun 26, 2016, at 10:32 PM, happy.neko &lt;<a href="mailto:happy.neko@gmail.com" target="_blank">happy.neko@gmail.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-06-27 4:13 GMT+03:00 Ken Rice <span dir="ltr">&lt;<a href="mailto:krice@freeswitch.org" target="_blank">krice@freeswitch.org</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div>Bypass media is a special mode, not all commands work with it. Pretty much any command that works with media does not work with it. </div></div></blockquote><div><br>Does the same stands for Proxy Media mode (&quot;inbound-proxy-media=true&quot;)?<br><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 dir="auto"><div>You need to bring the media back to fs first<br></div></div></blockquote><div><br></div><div>Please correct me if I am wrong: I should answer both legs first, than bridge them with &quot;intercept&quot; command and move FreeSwitch out of the media path with &quot;uuid_media off uuid&quot;?<br>However I thinks intercept is blocking command, how can I queue &quot;uuid_media of&quot; from LUA script to be executed right after the call is intercepted?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div><div><div>On Jun 26, 2016, at 7:46 PM, happy.neko &lt;<a href="mailto:happy.neko@gmail.com" target="_blank">happy.neko@gmail.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div><div><div><div><div><div><div><div>Hi,<br><br></div>I need to implement this scenario: <br>inbound SIP call A is waiting indefinitely for inbound call B and then they are bridged together. RTP media should flow directly from A to B and vice versa while FreeSwitch should control SIP signaling.<br></div></div></div><br></div>I made some progress but I could not make media bypass mode to work.<br></div><div><br><div>My SIP profile settings:<br>    &lt;param name=&quot;inbound-late-negotiation&quot; value=&quot;true&quot; /&gt;<br>    &lt;param name=&quot;inbound-bypass-media&quot; value=&quot;true&quot; /&gt;<br><br></div>Dialplan for leg A:<br></div><div>    &lt;!-- Somehow save leg A UUID.--&gt;<br></div><div>    &lt;action application=&quot;park&quot; /&gt;<br><br></div>LUA script for leg B:<br>    leg_a_uuid = ...<br>    session:execute(&quot;intercept&quot;, leg_a_uuid)<br><br></div>This works but FreeSwitch is still in RTP media path with following error in the log:<br>[ERR] switch_ivr.c:1718 Can&#39;t re-establsh media on sofia/myprofile/xyz<br></div>It worth mentioning that I do not answer or send early media before executing intercept command so there is no prior media on both channel A and B.<br><div><br><div></div><div>Any ideas what needs to be done to make this scenario work without RTP proxying?<br></div><div><br clear="all"><div><div><div><div><div><div><div><div><div>-- <br><div data-smartmail="gmail_signature"><font color="#888888"><div data-smartmail="gmail_signature">Best regards,<br></div><div data-smartmail="gmail_signature">I. Sokolov</div></font><br><br></div>
</div></div></div></div></div></div></div></div></div></div></div></div>
</div></blockquote></div></div><blockquote type="cite"><div><span>_________________________________________________________________________</span><br><span>Professional FreeSWITCH Consulting Services: </span><br><span><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a></span><br><span><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a></span><br><span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span><br><span><a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a></span><br><span><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a></span><br><span></span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br><span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span></div></blockquote></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.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="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div></div>
</div></blockquote><blockquote type="cite"><div><span>_________________________________________________________________________</span><br><span>Professional FreeSWITCH Consulting Services: </span><br><span><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a></span><br><span><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a></span><br><span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span><br><span><a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a></span><br><span><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a></span><br><span></span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br><span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span></div></blockquote></div></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" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><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" 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="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div></div></div>