[Freeswitch-users] Gateway failover with LUA

Wesley Akio wesleyakio at tuntscorp.com
Mon May 28 16:44:43 MSD 2012


As far as you use a decent limit backend I see no problem with querying in
every call...

Sent from mobile, sorry for the typos....
Em 28/05/2012 07:11, "Muhammad Naseer Bhatti" <nbhatti at gmail.com> escreveu:

> Hi, I am trying to implement a gateway failover functionality with
> lua. Right now I am using limit and using hash backend to limit number
> of channels to each gateway. Since I am forwarding all calls with a
> default dialplan which is sending all calls to application lua and the
> bridge is done outside lua setting all the necessary vars.
> The idea is if all channels of first gateway are occupied, send the
> call to second gateway in the list and so on. Any idea how to
> implement this with lua? Can not seem to find the logic. If I query
> with limit_status it is going to be a query on every call. In a high
> call volume scenario, I don't think this would be really a good
> choice. Any ideas, thoughts?
>
> Thanks.
>
> _________________________________________________________________________
> 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
>
> Join Us At ClueCon - Aug 7-9, 2012
>
> 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/20120528/4c95b991/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list