Hi, I would like to implement a random route selection based on some arbitrary percentage. Does anyone know if there is any good way of doing that within freeswitch? If there isn't any api that I can use, does freeswitch has any random generator that I can be used for this purpose? br, JB
mod_lcr will do random route selection if the rates are the same. But that gives an equal distribution. There is no weighting/percentage supported. On Wed, Aug 12, 2009 at 12:21 PM, Juan Backson<juanbackson@gmail.com> wrote:
Hi,
I would like to implement a random route selection based on some arbitrary percentage.
Does anyone know if there is any good way of doing that within freeswitch?
If there isn't any api that I can use, does freeswitch has any random generator that I can be used for this purpose?
br, JB
-- -Rupa
Write you a small C app to randomly return them based on the percentages... Currently we do something similar to this but use a random round robin based thing using a simple sql backend and doing a select order by random sort of thing... Contact me off list if you need some profession help figuring this out K From: Juan Backson <juanbackson@gmail.com> Reply-To: <freeswitch-users@lists.freeswitch.org> Date: Thu, 13 Aug 2009 01:21:07 +0800 To: <freeswitch-users@lists.freeswitch.org> Subject: [Freeswitch-users] random route selection Hi, I would like to implement a random route selection based on some arbitrary percentage. Does anyone know if there is any good way of doing that within freeswitch? If there isn't any api that I can use, does freeswitch has any random generator that I can be used for this purpose? br, JB _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Juan Backson
-
Ken Rice
-
Rupa Schomaker