[Freeswitch-users] mod_distributor / gwlist down

Ítalo Rossi italo at freeswitch.org
Fri Feb 26 05:05:30 MSK 2016


you missed the profile keywork in your dialplan:

sofia PROFILE internal internal_trk_1 gwlist down

On Wed, Feb 24, 2016 at 1:38 PM, Dominique Jeannerod <
dominique.jeannerod at interact-iv.com> wrote:

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



-- 
Ítalo Rossi
italo at freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160225/56522835/attachment.html 


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