|
Can anyone tell me is openser1.1.1 dispatcher module ability same as opensips1.2, is the algorithm still same as opensips1.2 ?
1.4.1. ds_select_dst(set, alg)
The method selects a destination from addresses set.
Meaning of the parameters is as follows:
*
set - the id of the set from where to pick up destination address. It is the first column in destination list file.
*
alg - the algorithm used to select the destination address.
o
"0" - hash over callid
o
"1" - hash over from uri.
o
"2" - hash over to uri.
o
"3" - hash over request-uri.
o
"4" - round-robin (next destination).
o
"X" - if the algorithm is not implemented, the first entry in set is chosen.
If the bit 2 in 'flags' is set, the rest of the addresses from the destination set is stored in AVP list. You can use 'ds_next_dst()' to use next address to achieve serial forking to all possible destinations.
This function can be used from REQUEST_ROUTE. |