[Freeswitch-users] mod_distributor / gwlist down

Dominique Jeannerod dominique.jeannerod at interact-iv.com
Wed Feb 24 19:38:28 MSK 2016


Hello,

i'm currently working with mod_distributor, to load balance calls to
gateways.
The load balancing works well, and it's rather simple to configure, no
problem.

I'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't make it work.

I'm using freeswitch 1.6.6.
I configured a profile internal_trk_1, and 2 gateways (svc-isr-fr-301, and
non_existent_gw), with ping option.
One of the gateways, called (non_existent_gw) is down, and detected down by
sofia

When I check the status of the gateways, the result is ok :
sofia profile internal_trk_1 gwlist down
non_existent_gw

When I check with distributor command in the cli, it's also ok :
expand distributor I_MUT_SIPGTW ${sofia profile internal_trk_1 gwlist down}
svc-isr-fr-301

But I can't make it work inside the dialplan. I tested using the 2 syntaxes
listed in
https://freeswitch.org/confluence/display/FREESWITCH/mod_distributor :

<action application="bridge" data="sofia/gateway/${distributor I_MUT_SIPGTW
${sofia internal_trk_1 gwlist down}}/${destination_number}"/>

<action application="bridge" data="sofia/gateway\${expand(distributor
I_MUT_SIPGTW \${sofia(internal_trk_1 gwlist
down)})}/${destination_number}"/>

The dead gateway still gets used by the load balancer.

What I am doing wrong ?

Best regards


Dominique Jeannerod
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160224/ad0f5ff5/attachment.html 


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