<div dir="ltr">you missed the profile keywork in your dialplan:<div><br></div><div>sofia PROFILE internal <span style="font-size:12.8px">internal_trk_1 gwlist down</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 24, 2016 at 1:38 PM, Dominique Jeannerod <span dir="ltr">&lt;<a href="mailto:dominique.jeannerod@interact-iv.com" target="_blank">dominique.jeannerod@interact-iv.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<br><br>i&#39;m currently working with mod_distributor, to load balance calls to gateways.<br>The load balancing works well, and it&#39;s rather simple to configure, no problem.<br><br>I&#39;m trying to automatically exclude down gateways from the load balancing, which seems quite simple, too, when reading the mod_distributor doc... but i can&#39;t make it work.<br><br>I&#39;m using freeswitch 1.6.6.<br>I configured a profile internal_trk_1, and 2 gateways (svc-isr-fr-301, and non_existent_gw), with ping option.<br>One of the gateways, called (non_existent_gw) is down, and detected down by sofia<br><br>When I check the status of the gateways, the result is ok :<br>sofia profile internal_trk_1 gwlist down<br>non_existent_gw<br><br>When I check with distributor command in the cli, it&#39;s also ok :<br>expand distributor I_MUT_SIPGTW ${sofia profile internal_trk_1 gwlist down}<br>svc-isr-fr-301<br><br>But I can&#39;t make it work inside the dialplan. I tested using the 2 syntaxes listed in <a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_distributor" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/mod_distributor</a> :<br><br>&lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/${distributor I_MUT_SIPGTW ${sofia internal_trk_1 gwlist down}}/${destination_number}&quot;/&gt;<br><br>&lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway\${expand(distributor I_MUT_SIPGTW \${sofia(internal_trk_1 gwlist down)})}/${destination_number}&quot;/&gt;<br><br>The dead gateway still gets used by the load balancer.<div><br></div><div>What I am doing wrong ?<br></div><div><br clear="all"><div><div><div dir="ltr"><p>Best regards</p><span class="HOEnZb"><font color="#888888"><p><br></p><p>Dominique Jeannerod</p></font></span></div></div></div>
</div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">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">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"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Ítalo Rossi<div><a href="mailto:italo@freeswitch.org" target="_blank">italo@freeswitch.org</a></div></div></div>
</div>