[Freeswitch-users] Gateway failover with LUA

Avi Marcus avi at avimarcus.net
Mon May 28 20:20:32 MSD 2012


How about a bridge2, bridge3, etc variable? Then your static dialplan can
see if those are set, and if so, use them.

-Avi


On Mon, May 28, 2012 at 1:09 PM, Muhammad Naseer Bhatti
<nbhatti at gmail.com>wrote:

> 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/8c55389f/attachment.html 


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