rtpengine readme tells in section 2:
The balancing inside a set is done automatically by the module based on the weight of each RTP proxy from the set.
i have not found in rtpengine_sock module parameter description, how is the weight of a rtp proxy is specified specified.
it contains an example:
modparam("rtpengine", "rtpengine_sock", "1 == udp:localhost:12221 udp:localhost:12222")
how can i tell what the weight of each of two proxies is?
-- juha
On 08/04/15 04:19 AM, Juha Heinanen wrote:
rtpengine readme tells in section 2:
The balancing inside a set is done automatically by the module based on the weight of each RTP proxy from the set.
i have not found in rtpengine_sock module parameter description, how is the weight of a rtp proxy is specified specified.
it contains an example:
modparam("rtpengine", "rtpengine_sock", "1 == udp:localhost:12221 udp:localhost:12222")
how can i tell what the weight of each of two proxies is?
The default weight is 1. If you wanted the second RTP proxy to be used twice as often as the first one, you would specify
modparam("rtpengine", "rtpengine_sock", "1 == udp:localhost:12221 udp:localhost:12222=2")
Cheers
Richard Fuchs writes:
The default weight is 1. If you wanted the second RTP proxy to be used twice as often as the first one, you would specify
modparam("rtpengine", "rtpengine_sock", "1 == udp:localhost:12221 udp:localhost:12222=2")
thanks, i added weights to one of the rtpengine_sock examples.
-- juha
On 10/04/15 15:38, Juha Heinanen wrote:
Richard Fuchs writes:
The default weight is 1. If you wanted the second RTP proxy to be used twice as often as the first one, you would specify
modparam("rtpengine", "rtpengine_sock", "1 == udp:localhost:12221 udp:localhost:12222=2")
thanks, i added weights to one of the rtpengine_sock examples.
How is the selection algorithm done in this case? Iirc, with the rtpproxy is hashing over the call-id, which can't really be used for ensuring any weight. Does rtpengine has different algorithms to select which instace of a rtpengine daemon to be used for a call?
Cheers, Daniel
On 10/04/15 09:41 AM, Daniel-Constantin Mierla wrote:
On 10/04/15 15:38, Juha Heinanen wrote:
Richard Fuchs writes:
The default weight is 1. If you wanted the second RTP proxy to be used twice as often as the first one, you would specify
modparam("rtpengine", "rtpengine_sock", "1 == udp:localhost:12221 udp:localhost:12222=2")
thanks, i added weights to one of the rtpengine_sock examples.
How is the selection algorithm done in this case? Iirc, with the rtpproxy is hashing over the call-id, which can't really be used for ensuring any weight. Does rtpengine has different algorithms to select which instace of a rtpengine daemon to be used for a call?
That code is unchanged from rtpproxy. In this example, it would calculate the hash of the call-id mod 3. If the result is 0 then the first proxy is used, or if the result is 1 or 2 then the second proxy is used.
Cheers