<div dir="ltr"><div>Ok, now I understand that getting a session object using uuid can be done as follows:</div><div>session = freeswitch.Session(uuid);</div><div><br></div><div>However, I am a bit confused.. </div><div><br>
</div><div>My lua script accepts 3 arguments - uuid, multicast ip &amp; port, and then does the following - create a session using freeswitch, and then execute esf_page_group with the passed multicast and port</div><div><br>
</div><div>What works is:</div><div>- Place an incoming call to FIFO queue with an orbit exten and timeout</div><div>- In the orbit exten, call lua script with uuid, multicast address and port</div><div>After a timeout, it works like a charm - caller can make PA to the listening parties</div>
<div><br></div><div>Now, what doesn&#39;t work is:</div><div>- Modify lua script to pop out the call from fifo by using execute(&quot;fifo&quot;,&quot;pa_q1 out wait&quot;); and then call esf_page_group</div><div>- Place an incoming call to FIFO queue with an orbit exten and large timeout</div>
<div>- Before the timeout occurs, call the lua script from CLI using luarun, pass the required arguments</div><div><br></div><div>In this case, the caller is unable to send the stream to multicast address - instead, there seems to be a loopback, caller hears his own audio. I think this is because of the way I am popping out I guess. However, if I don&#39;t pop out, the caller seems remain in the queue </div>
<div><br></div><div><br></div><div>I am just wondering how do I retrieve a call in a fifo queue and play around with it within a lua script?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 21, 2014 at 9:22 AM, Siri MM <span dir="ltr">&lt;<a href="mailto:sirimmfs@gmail.com" target="_blank">sirimmfs@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Brian<div><br></div><div>Thanks for the reply. My aim is to unpark the call, playback a message to the caller, and then redirect the caller to a multicast paging group(esf_page_group), so that he could do a PA. From what I understand, intercept allows you to bridge to another call, am unsure if my requirement is achievable using this app.</div>

</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 21, 2014 at 1:47 AM, Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">If you have the UUID of the session you wish to unpark why not just execute the intercept app?</div><div class="gmail_extra">

<br><br><div class="gmail_quote"><div><div>On Wed, Aug 20, 2014 at 1:05 AM, Siri MM <span dir="ltr">&lt;<a href="mailto:sirimmfs@gmail.com" target="_blank">sirimmfs@gmail.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi,<div><br></div><div>Is there a way I could create a session using an existing uuid in Lua? I see that this is possible in Javascript, but couldn&#39;t get the same to work in Lua.</div>


<div><br></div><div>
I am trying to retrieve the session of a parked call, so that I could unpark the same in the lua script (as fifo doesn&#39;t seem to work when not in a call context)</div></div>
<br></div></div>_________________________________________________________________________<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" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">







<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://bkw.org/whmcslogo.png"><br></font></p><p><font face="courier new, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br>


<a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p>
<p><font face="courier new, monospace"><b>T:</b><a href="tel:%2B19184209001" value="+19184209001" target="_blank">+19184209001</a> | <b>F:</b><a href="tel:%2B19184209002" value="+19184209002" target="_blank">+19184209002</a> | <b>M:</b>+1918424WEST (9378)<br>

<b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div>
</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" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>