<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace">How do I configure fifo to transfer a call out whenever a channel opens up.</div><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">I'm sending the calls through an Adtran which has a limited number of channels available and we don't want this one DID to use all the channels but we don't just want to USER_BUSY the calls either. We want to leave them in a fifo listening to music until a channel becomes available to allow the next call through. How do I configure the fifo to allow the next call through once there are no longer 5 calls (for example) already sent to the Adtran for that DID?</div><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">I was thinking I could execute something on orbit, but then it won't be a fifo any more. We want them exiting the fifo in the order they enter. Also, the orbit could mean they wait in the fifo longer than they should, so I think that's definitely not the right approach.</div><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">I know I could write a lua script that monitors the fifo and transfers out the next available caller, but I was hoping for a built-in way to do this.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div><span style="font-family:arial;font-size:small"><br></span></div><div><span style="font-family:arial;font-size:small"><br></span></div><span style="font-family:arial;font-size:small">Royce Mitchell, </span>IT Consultant<div style="font-family:arial;font-size:small">ITAS Solutions</div><div style="font-family:arial;font-size:small"><a href="mailto:royce3@itas-solutions.com" target="_blank">royce3@itas-solutions.com</a></div></div></div>
<br><div class="gmail_quote">On Wed, Dec 6, 2017 at 5:07 AM, Vallimamod Abdullah <span dir="ltr"><<a href="mailto:vma@vallimamod.org" target="_blank">vma@vallimamod.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
With the limit app, you can also send the call to a different extension instead of rejecting it with user_busy:<br>
<br>
<action application="limit" data="hash inbound ${destination_number} ${call_limit} queue_ext XML queue_context"/><br>
<br>
The over limit calls will be transferred to the queue_context context with queue_ext extension.<br>
<br>
But for your use case, I think the limit is no more necessary, you can directly use mod_fifo.<br>
<br>
Best Regards,<br>
--<br>
Vallimamod Abdullah<br>
SIP Solutions<br>
<a href="mailto:vma@sipsolutions.fr">vma@sipsolutions.fr</a><br>
.<br>
<div><div class="h5"><br>
<br>
> On 6 Dec 2017, at 04:22, Royce Mitchell III <<a href="mailto:royce3@gmail.com">royce3@gmail.com</a>> wrote:<br>
><br>
> I am currently using hash to limit the number of calls that can get through on a specific destination_number and giving any excess a USER_BUSY, something like this:<br>
><br>
> <action application="limit" data="hash inbound ${destination_number} ${call_limit} !USER_BUSY"/><br>
><br>
> However, now they're asking me to queue those calls with a recording and let them through in order as the call_limit reduces back down and then send the call to a different destination if it stays in that queue for a minute.<br>
><br>
> In other words, if call_limit is 5, the 6th call would get queued until one of those first 5 calls clears. If none of the 5 calls clears before a minute has elapsed, I want to transfer that 6th call to a different destination. If a 7th call enters the queue, the 6th call should be the next to get a channel because it has been in the queue longer.<br>
><br>
> I'm digging through the documentation and I haven't been able to figure out a way to do this so far. It seems like maybe using fifo in combination with limit would be in order, but I can't think of how to make them work together to accomplish this.<br>
><br>
><br>
><br>
><br>
> Royce Mitchell, IT Consultant<br>
> ITAS Solutions<br>
> <a href="mailto:royce3@itas-solutions.com">royce3@itas-solutions.com</a><br>
<br>
<br>
</div></div>______________________________<wbr>______________________________<wbr>_____________<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.<wbr>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.<wbr>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.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></blockquote></div><br></div>