bar top left
bar top right
left curve
right curve
Welcome, Guest
Go to bottom
Post Reply
Post New Topic
Page: 1234
TOPIC: trunk load balancing?
#40937
trunk load balancing? 2 Years, 2 Months ago Karma: 33
EWT describes some ways to do load balancing on outbound trunk based on number of calls.

Does someone has a good load balancing module or script to manage the load balancing on trunk usage.

For instance, I have a trunk with a provider A that give me 2h of call included in the price, but every additional minutes is more expensive than my provider B.

I would like to change the priority order of the trunk when the 2h limit is reached within each billing cycle.

I would prefer a nice freepbx/elastix way of doing it. But I guess than an independant script with a cron job can survey the cdr and change the trunk order in an outbound route via the manager or directly in the sql database.

Any pointer somewhere?
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Patrick_elx
Gold Boarder
Posts: 1112
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Florida, USA
Reply Quote
 
#41168
Re:trunk load balancing? 2 Years, 2 Months ago Karma: 33
Ok, as nobody answered I've spend my weekend building something.

You can find the alpha release of a trunk balancing module for Freepbx here.

Links hidden for unregistered users. Login or register Here

It's an alpha release and could be a little bit more user friendly, but so far it does the job.
Please report feedback.

Patrick
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Patrick_elx
Gold Boarder
Posts: 1112
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Florida, USA
Last Edit: 2009/12/01 15:40 By Patrick_elx.
Reply Quote
 
#41309
Re:trunk load balancing? 2 Years, 2 Months ago Karma: 33
version alpha 0.0.2 is out for testing.

Same functionalities, but some bugs corrections.
Continue to send feedback.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Patrick_elx
Gold Boarder
Posts: 1112
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Florida, USA
Reply Quote
 
#55867
Re:trunk load balancing? 1 Year, 6 Months ago Karma: 0
Great work, Patrick, thanks!
I have downloaded the latest 0.3.2 version and only got one question, can we make all or more features available for ZAP trunk?
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
andydeng
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#55870
Re:trunk load balancing? 1 Year, 6 Months ago Karma: 33
With freepbx 2.6 it's not that easy as the zap trunk are handled differently (not on the same table in the database).

I'll give a look at the later freepbx version to see if they upgraded the way to handle the zap trunk.

If not, I would have to rewrite a specific behavior for these trunks that may be difficult with the way I'm injecting my agi in the dialplan.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Patrick_elx
Gold Boarder
Posts: 1112
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Florida, USA
Reply Quote
 
#58203
Re:trunk load balancing? 1 Year, 5 Months ago Karma: 0
Thanks for explanation about this. I don't know zap trunk is using different table in database.

By the way, is there a simple way to deploy trunk load balancing in your software, for example we only build one custom trunk, and put all trunks which we want to be load-balance, then it can be done. Thanks!
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
andydeng
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#58247
Re:trunk load balancing? 1 Year, 5 Months ago Karma: 33
andydeng wrote:

By the way, is there a simple way to deploy trunk load balancing in your software, for example we only build one custom trunk, and put all trunks which we want to be load-balance, then it can be done. Thanks!


That's not really the way this add on was developed.
The root concept is that each trunk has different limit/need/filter...
You then just create a go/no go filter (the balanced_trunk) for a set of condition on one trunk. And then you can continue to organized your trunk and balanced trunk within your routes the way you want.

If you are only looking for an evenly balanced load between different trunk, I could create a more simplified gui. But you will loose the fine tuning between each trunk (the ratio mode) and all the other options (like time limit, filter on number dialed, etc...)
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Patrick_elx
Gold Boarder
Posts: 1112
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Florida, USA
Reply Quote
 
#65035
Re:trunk load balancing? 1 Year, 2 Months ago Karma: 33
Version 0.0.4 is available at
projects.colsolgrp.net/projects/trunkbalance/files

added a time group condition to let you use the free night and week end minutes that some providers are giving.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Patrick_elx
Gold Boarder
Posts: 1112
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Florida, USA
Reply Quote
 
#85171
Re:trunk load balancing? 5 Months ago Karma: 0
Hi, Patrick, wich version of elastix is these module intended for?
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Hiko78
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#85195
Re:trunk load balancing? 5 Months ago Karma: 33
It's for freePBX version 2.6 and 2.7. I'm not sure about 2.8.
It should work with the Elastix versions using these versions of FreePBX.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Patrick_elx
Gold Boarder
Posts: 1112
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Florida, USA
Reply Quote
 
Go to top
Post Reply
Post New Topic
Page: 1234
Moderators: Bob, jgutierrez