[Freeswitch-users] Gateway failover with LUA
Michael Collins
msc at freeswitch.org
Wed May 30 03:49:32 MSD 2012
Dave,
That sounds like a clever way to handle it. I'd like to see more people
give that a try and report back how it works in their various scenarios.
-MC
On Tue, May 29, 2012 at 4:05 PM, Dave R. Kompel <drk at drkngs.net> wrote:
> **
> One trick I've noticed that nobody is doing for outbound limit, is using
> "execute_on_originate" to do the limit there on each channel. You can
> specify it in the local variables per channel.
>
> The following would do it for each B-Leg, w/o messing associating the
> coun't to your a-leg session:
>
> bridge:[execute_on_originate=limit hash foo gwa
> 10]sofia/gateway/gwa/$1|[execute_on_originate=limit hash foo gwb
> 10]sofia/gateway/gwb/$1 ... and so on...
>
> I use this all the time in a more extended way. I use execute_on_originate
> to call my own dialplan app, but you could use it to invoke a lua script as
> well on the session of the B-Leg, before the call is originated. If you
> just return from your dialplan app, the b-leg will continue, but if you
> hangup the channel, then it will look like the b-leg failed with the hangup
> cause you specify, and will get passed back as if the far end returned that
> cause.
>
> --Dave
>
> ------------------------------
> *From:* Muhammad Naseer Bhatti [mailto:nbhatti at gmail.com]
> *To:* FreeSWITCH Users Help [mailto:freeswitch-users at lists.freeswitch.org]
> *Sent:* Tue, 29 May 2012 14:12:01 -0700
> *Subject:* Re: [Freeswitch-users] Gateway failover with LUA
>
>
> They are two different gateways with two different names, but the same
> IP address yet the port is different. Possible that limit subsystem is
> imposing the limit on the IP address itself and not able to
> distinguish between the different ports.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120529/b61e3c99/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list