[Freeswitch-users] Force GW Down with mod_distributor

Steven Ayre steveayre at gmail.com
Tue Oct 13 12:57:23 MSD 2015


You could try adjusting your routing so on INVALID_GATEWAY or GATEWAY_DOWN
it tries using another gateway from the mod_distributor list (probably with
a cap on the number of attempts), which'd then handle if SIP OPTIONS ping
marks a gateway as offline as well.

On 12 October 2015 at 15:16, Mickael Hubert <m.hubert at hexanet.fr> wrote:

> Hi list,
> I have an issue when I want force a gateway go down with distributor
> module.
>
> *- My distributor conf:*
>
>
>
>
>
> *<list name="LISTPR1" total-weight="2">      <node name="GWSBC1"
> weight="1"/>      <node name="GWSBC2" weight="1"/>    </list>  </lists>*
>
> *- My dialplan conf:*
> *sofia/gateway/${distributor(LISTPR1 ${sofia(profile PR1 gwlist
> down)})}/${destination_number}"/>*
>
> When the SBC's provider works fine, calls are load balanced. It works
> perfectly.
>
> But this morning, my SIP provider was a issue in one of them SBCs. GW was
> always UP (SIG OK), but the issue was on media stream.
>
> I run this command to force GW go down:
> *sofia profile PR1 killgw GWSBC1*
>
> With this command, GWSBC1 was down, OK, but distributor don't know it.
> Endeed, when GW is kill with (killgw) command, bridge command "*${sofia(profile
> PR1 gwlist down)" *returns 0 gwdown
>
> *.*
> When a call arrive, distributor sends it to all gateways.
>
> "*${sofia(profile PR1 gwlist down)" *is OK only when ping options not
> responding.
>
>
> *My question:*
> How can I force GW go down (simulate ping option not responding) with a
> simple command (compliant with mod_ditributor) ? It's possible ?
>
>
>
>
> *Ex:State       NOREGStatus      DOWN*
> Thanks in advance
>
>
>
> --
> Cordialement
>
> HUBERT Mickaël
> Ingénieur VOIP - Hexanet
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> 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/20151013/ee09dfce/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list