<br><br><div class="gmail_quote">On Mon, Dec 10, 2012 at 12:42 PM, Marc de Corny <span dir="ltr">&lt;<a href="mailto:marcdecorny@gmail.com" target="_blank">marcdecorny@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">
Thanks for your response Peter, that sounds very likely.<div><br></div><div>My diaplan sends everything into the queue and then my background lua script empties the queue every 10 seconds and tries to connect the call. Ideally my lua scripts &quot;forgets&quot; about the connected call so that it does not get stuck and can take another call out of the queue 10 seconds later independantly of the previous call being hung up.</div>

<div><br></div><div><br></div><div>Am i going about this the wrong way? the only reason I do this is that the mod_fifo as it is does not give me enough flexibility.</div><div><br></div><div>My script basically calls out from the FS and if connected successfully ( new_session), perform a</div>
</blockquote><div>What does this mean? You have something like this?<br>&lt;action application=&quot;lua&quot; data=&quot;my_script.lua&quot;/&gt;<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>new_session:execute(&quot;transfer&quot;, &quot;agent_to_queue_paymentsense_queue_service XML default&quot;); </div><div>and connect via the dialplan with :&lt;action application=&quot;fifo&quot; data=&quot;queue77 out nowait&quot;/&gt;</div>

<div><br></div><div>if I use a bridge instead of the transfer, the scripts sleeps until the call is hung up, with transfer, it can go 10 seconds later and take another call out of the queue.</div><div><br></div><div>so is there a command I need to add to the dialplan like hangup_after_bridge on the outbound call?</div>

<div>&lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<br></div><div><br></div><div>any ideas?</div></blockquote><div>What, exactly does your Lua script do? Do you have an explicit exit clause in there anywhere?<br>
-MC<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></div><div>thanks</div><div>marc</div><div><br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Dec 10, 2012 at 4:40 PM, Peter Olsson <span dir="ltr">&lt;<a href="mailto:peter.olsson@visionutveckling.se" target="_blank">peter.olsson@visionutveckling.se</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Are you exiting the lua script? Usually when this happens it means you have not<br>
released all references to the call session object.<br>
<br>
/Peter<br>
<br>
10 dec 2012 kl. 16:28 skrev &quot;Marc de Corny&quot; &lt;<a href="mailto:marcdecorny@gmail.com" target="_blank">marcdecorny@gmail.com</a>&lt;mailto:<a href="mailto:marcdecorny@gmail.com" target="_blank">marcdecorny@gmail.com</a>&gt;&gt;:<br>

<div><div><br>
Hi<br>
<br>
I have calls that come into a queue and then get pulled out by a lua script in background and transfered to a destination. all works fine except that it looks like the sessions a not clearing from FS when all the parties clear the calls.<br>


<br>
When I do show channels, I get this for example:<br>
uuid    direction       created created_epoch   name    state   cid_name        cid_num ip_addr dest    presence_id     presence_data   callstate       callee_name     callee_num      callee_direction        call_uuid       hostname        sent_callee_name        sent_callee_num<br>


5e8215e7-b036-4cce-9b96-e57db92f13ee    outbound        03/12/2012 09:32        1.35E+09        sofia/external/02031950164      CS_HANGUP       Outbound Call   2031950164      135.196.144.32  agent_to_queue_paymentsense_queue_service                       ACTIVE                  SEND    5e8215e7-b036-4cce-9b96-e57db92f13ee    freeswitch2     4.4209E+11      2089623100<br>


<br>
But when I try to get kill or query it, I get a message that the call is not anywhere in the FS.<br>
<br>
/usr/local/freeswitch/bin/fs_cli -H 10.5.2.105 -x &quot;uuid_kill 5e8215e7-b036-4cce-9b96-e57db92f13ee&quot;<br>
-ERR No Such Channel!<br>
<br>
/usr/local/freeswitch/bin/fs_cli -H 10.5.2.105 -x &quot;uuid_exists 5e8215e7-b036-4cce-9b96-e57db92f13ee&quot;<br>
false<br>
<br>
Does anyone have an idea how I can kill that call. If I restart the FS, they clear, but the problem is that they are hitting my limit on number of simultaneous calls.<br>
<br>
Any help much appreciated.<br>
<br>
Thansk<br>
marc<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div></div>!DSPAM:50c5fb8c32767955115405!<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>&lt;mailto:<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>&gt;<br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.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>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" 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>&lt;mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>&gt;<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>&lt;<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>&gt;<br>


<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
!DSPAM:50c5fb8c32767955115405!<br>
<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>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.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://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" 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" 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>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.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>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" 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" 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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><br>