Discussion:
[SR-Users] set_rtp_proxy_set behaviour
Igor Potjevlesch
2014-07-08 17:44:31 UTC
Permalink
Hello,



I set two entries of rtpproxy like :

modparam("rtpproxy", "rtpproxy_sock", "1 == udp:127.0.0.1:7722")

modparam("rtpproxy", "rtpproxy_sock", "2 == udp:127.0.0.1:7723")



For a particular case, I want to use the second RTPProxy and the first one
as the default one.

If in a conditional block I set set_rtp_proxy("2"), all other call to
rtpproxy_manage will use the first RTPProxy? Or there is a load-balancing
introduce by default.



Regards,


Igor.
Alex Balashov
2014-07-08 17:54:53 UTC
Permalink
Hi Igor,
Post by Igor Potjevlesch
Hello,
modparam("rtpproxy", "rtpproxy_sock", "1 == udp:127.0.0.1:7722")
modparam("rtpproxy", "rtpproxy_sock", "2 == udp:127.0.0.1:7723")
For a particular case, I want to use the second RTPProxy and the first
one as the default one.
If in a conditional block I set set_rtp_proxy(“2”), all other call to
rtpproxy_manage will use the first RTPProxy? Or there is a
load-balancing introduce by default.
Load-balancing by default is within a set. Since you have two different
sets defined, forcing one or the other with set_rtp_proxy_set() will
result in only one of those proxies being used.
--
Alex Balashov - Principal
Evariste Systems LLC
Tel: +1-678-954-0670
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/

Please be kind to the English language:

http://www.entrepreneur.com/article/232906
Igor Potjevlesch
2014-07-10 09:00:57 UTC
Permalink
Hi Alex,

Thank you for your answer.
But I'm not sure to understand.

If I have only one case with set_rtp_proxy_set, are the other calls of the
rtpproxy_manage() (or similar) will be load-balanced between the two sets?
Is it possible to avoid load-balance and be sure that outside my
set_rtp_proxy_set("2"), the first one will be used?

Regards,

Igor.

-----Message d'origine-----
De : sr-users-bounces-cR8azDVoa3IcDhw6gZKtMWD2FQJk+8+***@public.gmane.org
[mailto:sr-users-bounces-cR8azDVoa3IcDhw6gZKtMWD2FQJk+8+***@public.gmane.org] De la part de Alex Balashov
Envoyé : mardi 8 juillet 2014 19:55
À : sr-users-cR8azDVoa3IcDhw6gZKtMWD2FQJk+8+***@public.gmane.org
Objet : Re: [SR-Users] set_rtp_proxy_set behaviour

Hi Igor,
Post by Igor Potjevlesch
Hello,
modparam("rtpproxy", "rtpproxy_sock", "1 == udp:127.0.0.1:7722")
modparam("rtpproxy", "rtpproxy_sock", "2 == udp:127.0.0.1:7723")
For a particular case, I want to use the second RTPProxy and the first
one as the default one.
If in a conditional block I set set_rtp_proxy(“2”), all other call to
rtpproxy_manage will use the first RTPProxy? Or there is a
load-balancing introduce by default.
Load-balancing by default is within a set. Since you have two different sets
defined, forcing one or the other with set_rtp_proxy_set() will result in
only one of those proxies being used.

--
Alex Balashov - Principal
Evariste Systems LLC
Tel: +1-678-954-0670
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/

Please be kind to the English language:

http://www.entrepreneur.com/article/232906
Igor Potjevlesch
2014-07-15 15:23:30 UTC
Permalink
Hi,

Just to complete my findings, I think that I got a working config with these
instructions:
modparam("rtpproxy", "rtpproxy_sock", "udp:127.0.0.1:7722") -> keep the
default RTProxy for all the others use-cases.

modparam("rtpproxy", "rtpproxy_sock", "2 == udp:127.0.0.1:7723") -> add a
second instance into a set numbered "2" for example and call him when it's
necessary into the config file with set_rtp_proxy_set("2").

I have to do more tests but it looks that when set_rtp_proxy_set is not
called, there is only the first rtpproxy that is used.

Regards,

Igor.

-----Message d'origine-----
De : Igor Potjevlesch [mailto:igor.potjevlesch-***@public.gmane.org]
Envoyé : jeudi 10 juillet 2014 11:01
À : 'Kamailio (SER) - Users Mailing List'
Objet : RE: [SR-Users] set_rtp_proxy_set behaviour

Hi Alex,

Thank you for your answer.
But I'm not sure to understand.

If I have only one case with set_rtp_proxy_set, are the other calls of the
rtpproxy_manage() (or similar) will be load-balanced between the two sets?
Is it possible to avoid load-balance and be sure that outside my
set_rtp_proxy_set("2"), the first one will be used?

Regards,

Igor.

-----Message d'origine-----
De : sr-users-bounces-cR8azDVoa3IcDhw6gZKtMWD2FQJk+8+***@public.gmane.org
[mailto:sr-users-bounces-cR8azDVoa3IcDhw6gZKtMWD2FQJk+8+***@public.gmane.org] De la part de Alex Balashov
Envoyé : mardi 8 juillet 2014 19:55 À : sr-users-***@public.gmane.orgrg
Objet : Re: [SR-Users] set_rtp_proxy_set behaviour

Hi Igor,
Post by Igor Potjevlesch
Hello,
modparam("rtpproxy", "rtpproxy_sock", "1 == udp:127.0.0.1:7722")
modparam("rtpproxy", "rtpproxy_sock", "2 == udp:127.0.0.1:7723")
For a particular case, I want to use the second RTPProxy and the first
one as the default one.
If in a conditional block I set set_rtp_proxy(“2”), all other call to
rtpproxy_manage will use the first RTPProxy? Or there is a
load-balancing introduce by default.
Load-balancing by default is within a set. Since you have two different sets
defined, forcing one or the other with set_rtp_proxy_set() will result in
only one of those proxies being used.

--
Alex Balashov - Principal
Evariste Systems LLC
Tel: +1-678-954-0670
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/

Please be kind to the English language:

http://www.entrepreneur.com/article/232906

Loading...