I see your point - it'd remove down gateways but can't exclude gateways it no longer knows about. What'd be needed is either an inverse operation to only distribute among a list of 'up' gateways. Which'd require a patch.

On 14 October 2015 at 09:04, Mickael Hubert <m.hubert@hexanet.fr> wrote:
Hi Steven,
Thanks for you response.

I'm already using this method (https://wiki.freeswitch.org/wiki/Mod_distributor#To_exclude_dead_gateways_in_your_dialplan) eg: my first mail.
But distributor don't know about gateway is down (down with force command: sofia profile PR1 killgw GWSBC1)

For you, there isn't "proper" / "automatic" solution to solve my issue. I must configure my freeswitch to backup on specific reasons (INVALID_GATEWAY or GATEWAY_DOWN) ?

thanks

++


2015-10-13 10:58 GMT+02:00 Steven Ayre <steveayre@gmail.com>:

On 13 October 2015 at 09:57, Steven Ayre <steveayre@gmail.com> wrote:
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@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       NOREG
Status      DOWN

Thanks in advance



--
Cordialement

HUBERT Mickaël
Ingénieur VOIP - Hexanet


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



--
Cordialement

HUBERT Mickaël
Ingénieur VOIP - Hexanet