Or even better, try: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:_________________________________________________________________________- My dialplan conf: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>
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 GWSBC1With 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 DOWNThanks 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
