[OpenSIPS-Users] RTPproxy weight question

Nick Altmann nick.altmann at gmail.com
Wed Dec 5 13:16:23 CET 2012


Will this:
modparam("rtpproxy", "rtpproxy_sock", "3 == udp:c.c.c.c:22222=10
udp:d.d.d.d:22222=10
udp:1.1.1.1:22222=20 udp:2.2.2.2:22222=20 udp:3.3.3.3:22222=20
udp:4.4.4.4:22222=20")

works as I expected?

I expect it to use c.c.c.c, d.d.d.d. If c.c.c.c and d.d.d.d are offline,
then use 1.1.1.1, 2.2.2.2, 3.3.3.3, 4.4.4.4.

--
Nick


2012/12/5 Bogdan-Andrei Iancu <bogdan at opensips.org>

> **
> Hi Nick,
>
> Do not use weights 0, but something not zero, as this will affect the
> weight sum (when doing the selection).
>
> Try replacing the weights with 10, let's say.
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
>
>
> On 12/05/2012 10:10 AM, Nick Altmann wrote:
>
> My configuration:
> modparam("rtpproxy", "rtpproxy_sock", "1 == udp:1.1.1.1:22222=0
> udp:2.2.2.2:22222=0 udp:3.3.3.3:22222=0 udp:4.4.4.4:22222=0")
>
>  Why used only first rtpproxy from set?
>
>  My configs generated from m4 and may be minimum like this:
>  modparam("rtpproxy", "rtpproxy_sock", "1 == udp:1.1.1.1:22222=0
> udp:2.2.2.2:22222=0 udp:3.3.3.3:22222=0 udp:4.4.4.4:22222=0")
>
>  and maximum like this:
>  modparam("rtpproxy", "rtpproxy_sock", "1 == udp:1.1.1.1:22222=0
> udp:2.2.2.2:22222=0 udp:3.3.3.3:22222=0 udp:4.4.4.4:22222=0")
>  modparam("rtpproxy", "rtpproxy_sock", "2
> == udp:a.a.a.a:22222=1 udp:b.b.b.b:22222=1 udp:1.1.1.1:22222=0
> udp:2.2.2.2:22222=0 udp:3.3.3.3:22222=0 udp:4.4.4.4:22222=0")
>  modparam("rtpproxy", "rtpproxy_sock", "3
> == udp:c.c.c.c:22222=1 udp:d.d.d.d:22222=1 udp:1.1.1.1:22222=0
> udp:2.2.2.2:22222=0 udp:3.3.3.3:22222=0 udp:4.4.4.4:22222=0")
>
>
>  Expected behavior:
> When set for set number 3 (for example):
> Balance between c.c.c.c and d.d.d.d, if they are not available, balance
> between 1.1.1.1, 2.2.2.2, 3.3.3.3, 4.4.4.4.
> For set number 1 - only balance between 1.1.1.1, 2.2.2.2, 3.3.3.3, 4.4.4.4.
>
>  How can I configure it to work as expected?
>
>  --
> Nick
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121205/d9a9c236/attachment.htm>


More information about the Users mailing list