Author |
Message |
dovid Brekeke Member
Joined: 03 May 2010 Posts: 12
Location: Cyprus,
|
Posted: Sat Jul 03, 2010 11:20 pm Post subject: Round Robin |
|
|
1. Brekeke Product Name and version: 2.27.8
2. Java version: 6.2.6
3. OS type and the version: Cent OS 5.5
4. UA (phone), gateway or other hardware/software involved:
5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html :
6. Your problem:
Hi. I have seen http://www.brekeke-sip.com/bbs/viewtopic.php?t=6853&sid=531dd9c81934004cdc9a57c8cfba61fd but when looking through the Brekeke documentation I did not see an option for cntLoadBalance. Is my version to old or is it just not documented ? Also to make sure I understand what's written there if I want to round-robin between two servers I should have two rules for each "rule (so if I have 1 number and I want to load balance I would put in the rule twice ? |
|
Back to top |
|
taitan Brekeke Master Guru
Joined: 15 Mar 2008 Posts: 237
|
Posted: Tue Jul 06, 2010 1:35 pm Post subject: |
|
|
> I did not see an option for cntLoadBalance.
It is a user defined variable.
You can define your own variable name with the prefix "&".
> Is my version to old or is it just not documented ?
The version 2.2.7.8 is pretty old..
Use the latest version because a old version's DialPlan will not work as Round Robin.
> I should have two rules for each "rule (so if I have 1 number and I
> want to load balance I would put in the rule twice ?
Yes |
|
Back to top |
|
dovid Brekeke Member
Joined: 03 May 2010 Posts: 12
Location: Cyprus,
|
Posted: Wed Jul 07, 2010 12:50 am Post subject: |
|
|
tairan:
I updated to the latest version and I will try it in a bit. Can you please explained user defined variable ? Is it something that I can set e.g. &foo=bar or is it variables that are not documented. If it's the first how does the system know to do load balancing ?
Also if one host is down what will the system do ? Will it go to the other one ? Is there any option to send OPTIONS to the hosts ?
Or can I have the hosts register with brekeke and it will send round robin to the ones that are registered ?
Thanks.
Dovid |
|
Back to top |
|
dovid Brekeke Member
Joined: 03 May 2010 Posts: 12
Location: Cyprus,
|
Posted: Wed Jul 07, 2010 3:09 am Post subject: |
|
|
As an update I tried what was written in the URL and it did not work. It always just went to the second rule. |
|
Back to top |
|
taitan Brekeke Master Guru
Joined: 15 Mar 2008 Posts: 237
|
Posted: Thu Jul 08, 2010 11:18 am Post subject: |
|
|
> Is it something that I can set e.g. &foo=bar
Yes, Right!
> If it's the first how does the system know to do load balancing ?
In the example you mentioned, the DialPlan is using &cntLoadBalance as the counter for balancing the load.
> Also if one host is down what will the system do ? Will it go to the other one ? Is there any option to send OPTIONS to the hosts ?
Use this..
http://wiki.brekeke.com/wiki/How-to-make-Failover-in-the-Dial-Plan
Paste your DialPlan rules here if you have problems.. |
|
Back to top |
|
|