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@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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org