[OpenSIPS-Devel] [NEW FUNCTIONALITY] dynamic routing -

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Nov 21 12:43:17 CET 2008


Hi all,


Drouting module (Dynamic Routing) is now able to do load balancing or 
random selection of the destinations/GW (from a given set).

For each defined rule, you can set a list of destinations to be used. 
The list is comma or pipe separated enumeration of the destinations. The 
module will use (one by one) each destination from the list (in the 
given order).

Also the module allows the usage of groups in the destination lists. A 
group of destinations is delimited by semi-colon char. inside the whole 
destination list ( like: 2,4;5,78,23;4;7;2 ). The destinations from 
within a group may be act differently (like load-balancing, random 
selection, etc), depending of the “sort_order” module parameter:
/
0/ - destination groups are ignored and all the destinations are tried 
in the given order;
Ex: list 1,2;3,4,5;6 will lead to usage as 1,2,3,4,5,6/
/

/1/ - the destinations from each group are randomly arranged (only the 
two elements are randomly selected); groups do maintain their order (as 
given); the resulting list is used (with all the defined destinations).
Ex: 1,2;3,4,5;6 -> randomiser -> (A) 2,1;4,3,5;6 -> usage 2,1,4,3,5,6 
(B) 1,2;3,5,4;6 -> usage 1,2,3,5,4,6/
/

/2/ - from each destination group, only a single destination is randomly 
selected; groups do maintain their order (as given);
Ex: 1,2;3,4,5;6 -> randomiser -> (A) 2;4;6 -> usage 2,4,6 (B) 1;5;6 -> 
usage 1,5,6


Regards,
Bogdan





More information about the Devel mailing list