|
trunk load balancing? hace 2 Años, 2 Meses
|
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?
|
|
|
|
|
|
|
Re:trunk load balancing? hace 2 Años, 2 Meses
|
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.
Enlaces ocultos para usuarios no registrados. Inicie sesión o regístrese Aquí
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
|
|
|
|
Última edición: 01/12/2009 15:40 por Patrick_elx.
|
|
|
Re:trunk load balancing? hace 2 Años, 2 Meses
|
Karma: 33
|
|
version alpha 0.0.2 is out for testing.
Same functionalities, but some bugs corrections.
Continue to send feedback.
|
|
|
|
|
|
|
Re:trunk load balancing? hace 1 Año, 6 Meses
|
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?
|
|
|
|
|
|
|
Re:trunk load balancing? hace 1 Año, 6 Meses
|
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.
|
|
|
|
|
|
|
Re:trunk load balancing? hace 1 Año, 5 Meses
|
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!
|
|
|
|
|
|
|
Re:trunk load balancing? hace 1 Año, 5 Meses
|
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...)
|
|
|
|
|
|
|
Re:trunk load balancing? hace 5 Meses
|
Karma: 0
|
|
Hi, Patrick, wich version of elastix is these module intended for?
|
|
Hiko78
Fresh Boarder
Mensajes: 3
|
|
|
|
|
Re:trunk load balancing? hace 5 Meses
|
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.
|
|
|
|
|
|
|