Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] mod_distributor / gwlist down


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
dominique.jeannerod at...
Guest





PostPosted: Wed Feb 24, 2016 11:40 am    Post subject: [Freeswitch-users] mod_distributor / gwlist down Reply with quote

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
Back to top
italo at freeswitch.org
Guest





PostPosted: Thu Feb 25, 2016 9:06 pm    Post subject: [Freeswitch-users] mod_distributor / gwlist down Reply with quote

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@interact-iv.com (dominique.jeannerod@interact-iv.com)> wrote:
Quote:
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@freeswitch.org (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 (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




--
Ítalo Rossiitalo@freeswitch.org (italo@freeswitch.org)
Back to top
dominique.jeannerod at...
Guest





PostPosted: Mon Feb 29, 2016 3:53 am    Post subject: [Freeswitch-users] mod_distributor / gwlist down Reply with quote

Hello,

I worked again on this, and there is no problem at all related with mod_distributor.
What I found : there is a problem evaluating nested expressions.
This code works as expected :
    <action application="set" data="gwlist_down=${sofia profile  internal_trk_1 gwlist down}"/>
    <action application="set" data="gateway=${distributor I_MUT_SIPGTW ${gwlist_down}}"/>
    <action application="bridge" data="sofia/gateway/${gateway}/${destination_number}"/>


This code is not OK :
    <action application="bridge" data="sofia/gateway/${distributor I_MUT_SIPGTW ${sofia internal_trk_1 gwlist down}}/${destination_number}"/>

Any idea on the right syntax to make it work on one line as it should ?




Best regards


Dominique Jeannerod
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services