[Freeswitch-users] FIFO behaviour
Michael Jerris
mike at jerris.com
Thu Jun 12 16:41:34 MSD 2014
Recently quite a bit of commenting was added to mod_fifo.c. I would suggest reading all that to understand the interaction a bit better. Its not such a simple answer, it depends on the strategy and a number of other factors.
Mike
On Jun 12, 2014, at 10:27 AM, Alvaro Mari-Thompson <alvaro at voicebooth.com> wrote:
> Hi all,
>
> I’d like to clarify the intended behaviour of a FIFO queue, with regards to the delivery strategy – by default, do FIFO-placed calls ring through to all members of the queue, or do they do it round-robin?
>
> I have the following simple configuration:
>
> <fifo name="2000 at sample.com" importance="0">
> <member timeout="20" simo="1" lag="5">{fifo_member_wait=nowait}user/1001 at sample.com</member>
> <member timeout="20" simo="1" lag="5">{fifo_member_wait=nowait}user/1002 at sample.com</member>
> </fifo>
>
> The behaviour I’m seeing is this: When I put a call through to the FIFO, it first tries to deliver it to 1001, then 1002, and so on. If I put a call through the first time, it goes to 1001, but if I call again, it starts at 1002.
>
> If on the other hand, I put the following in the dialplan:
>
> <action application=”set” data=”fifo_destroy_after_use=true” />
>
> The first time I place a call, it follows the round-robin behaviour described above, but any subsequent calls get delivered simulatenously to the FIFO members (i.e. 1001 and 1002 ring at the same time until one picks it up).
>
> I can’t make head nor tail of how this is supposed to work. I’ve read various posts on this list which describe the behaviour as being concurrent, but so far I have only managed to reliable get it working sequentially.
>
> Any comments or ideas welcome.
>
>
> Regards,
> Alvaro
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140612/b95e07f6/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list