The proposed patch enhances the DISPATCH modules. It enables the specification of weight for each destination.
For instance if destination.list contains
1 proxy1:5060 50
1 proxy2:5060 20
1 proxy3;5060 30
50% of calls will be dispatched to proxy1,
20% of calls will be disptached to proxy2
30% to proxy3
Patch on dispatch.c
Logged In: YES
user_id=1246013
Originator: NO
Please provide the patch against devel version, there is support for storing destination list in database as well. Thanks.
Patch based on trunk version of openser
Logged In: YES
user_id=1862563
Originator: YES
Ok I submitted a patch based on trunk version.
It compiles but it is not tested yet although it is based on the same algorithm than the previous one. I updated the DB schema as well.
Note: I discovered the existence of the CARRIERROUTE module that basically makes much more than this modified DISPATCH. THis is great.
Emmanuel BUU
http://www.ives.fr/
Logged In: YES
user_id=1246013
Originator: NO
Not being sure that this enhancement will preserve old behavior when having same weight for all destination, I postpone the integration for the next release, as carrierroute module satisfy the proposed enhancement.
Logged In: YES
user_id=1862563
Originator: YES
As you wish
Git master branch has weight based load balancing in dispatcher module.