<div dir="ltr">ha ok, reverse the behavior. good point ;)<br><br>maybe create a patch, but I&#39;m not developper :(<br><br>thanks<br><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-14 10:52 GMT+02:00 Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I see your point - it&#39;d remove down gateways but can&#39;t exclude gateways it no longer knows about. What&#39;d be needed is either an inverse operation to only distribute among a list of &#39;up&#39; gateways. Which&#39;d require a patch.<div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On 14 October 2015 at 09:04, Mickael Hubert <span dir="ltr">&lt;<a href="mailto:m.hubert@hexanet.fr" target="_blank">m.hubert@hexanet.fr</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div>Hi Steven,<br></div>Thanks for you response.<br><br></div>I&#39;m already using this method (<a href="https://wiki.freeswitch.org/wiki/Mod_distributor#To_exclude_dead_gateways_in_your_dialplan" target="_blank">https://wiki.freeswitch.org/wiki/Mod_distributor#To_exclude_dead_gateways_in_your_dialplan</a>) eg: my first mail. <br></div><div>But distributor don&#39;t know about gateway is down (down with force command: <i>sofia profile PR1 killgw GWSBC1)<br><br></i></div><div>For you, there isn&#39;t &quot;proper&quot; / &quot;automatic&quot; solution to solve my issue. I must configure my freeswitch to backup on specific reasons (INVALID_GATEWAY or GATEWAY_DOWN) ?<br><br></div><div>thanks<br></div><div><br>++<br><i> </i></div><div><br></div></div></div></div><div><div><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2015-10-13 10:58 GMT+02:00 Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Or even better, try:<div><a href="https://wiki.freeswitch.org/wiki/Mod_distributor#To_exclude_dead_gateways_in_your_dialplan" target="_blank">https://wiki.freeswitch.org/wiki/Mod_distributor#To_exclude_dead_gateways_in_your_dialplan</a><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 13 October 2015 at 09:57, Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">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&#39;d then handle if SIP OPTIONS ping marks a gateway as offline as well.<div class="gmail_extra"><br><div class="gmail_quote"><div><div>On 12 October 2015 at 15:16, Mickael Hubert <span dir="ltr">&lt;<a href="mailto:m.hubert@hexanet.fr" target="_blank">m.hubert@hexanet.fr</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div dir="ltr"><div><div><div>Hi list,<br></div>I have an issue when I want force a gateway go down with distributor module.<br></div><br><u>- My distributor conf:</u><br><i><br>&lt;list name=&quot;LISTPR1&quot; total-weight=&quot;2&quot;&gt;<br>      &lt;node name=&quot;GWSBC1&quot; weight=&quot;1&quot;/&gt;<br>      &lt;node name=&quot;GWSBC2&quot; weight=&quot;1&quot;/&gt;<br>    &lt;/list&gt;<br>  &lt;/lists&gt;</i><br><br></div><u>- My dialplan conf:</u><br><i>sofia/gateway/${distributor(LISTPR1 ${sofia(profile PR1 gwlist down)})}/${destination_number}&quot;/&gt;</i><br><div><br clear="all"><div><div><div>When the SBC&#39;s provider works fine, calls are load balanced. It works perfectly.<br><br>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.<br><br></div><div>I run this command to force GW go down:<br><i>sofia profile PR1 killgw GWSBC1</i><br><br></div><div>With this command, GWSBC1 was down, OK, but distributor don&#39;t know it.<br></div><div>Endeed, when GW is kill with (killgw) command, bridge command &quot;<i>${sofia(profile PR1 gwlist down)&quot; </i>returns 0 gwdown<i>.<br><br></i></div><div>When a call arrive, distributor sends it to all gateways.<i><br></i></div><div><br>&quot;<i>${sofia(profile PR1 gwlist down)&quot; </i>is OK only when ping options not responding.<br><br><br></div><div><u>My question:</u><br></div><div>How can I force GW go down (simulate ping option not responding) with a simple command (compliant with mod_ditributor) ?<i> </i>It&#39;s possible ?<i><br></i></div><div><i>Ex:<br>State       NOREG<br>Status      DOWN<br><br></i></div><div>Thanks in advance<span><font color="#888888"><br></font></span></div><span><font color="#888888"><div><br></div><div><br></div><div><br>-- <br><div><div dir="ltr">Cordialement<br><br>HUBERT Mickaël<br>Ingénieur VOIP - Hexanet<br></div></div>
</div></font></span></div></div></div></div><span><font color="#888888">

<br>
<img src="http://www.hexanet.fr/sites/files/hexanet/files/utilities/signature_hexanet.gif"></font></span><br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div></div>
</blockquote></div><br></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><br>-- <br><div><div dir="ltr">Cordialement<br><br>HUBERT Mickaël<br>Ingénieur VOIP - Hexanet<br></div></div>
</div>

<br>
</div></div><img src="http://www.hexanet.fr/sites/files/hexanet/files/utilities/signature_hexanet.gif"></div></div></blockquote></div><br></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Cordialement<br><br>HUBERT Mickaël<br>Ingénieur VOIP - Hexanet<br></div></div>
</div></div></div></div></div>

<br>
<img src="http://www.hexanet.fr/sites/files/hexanet/files/utilities/signature_hexanet.gif">