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@gmail.com]
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(a)lists.sip-router.org
[mailto:sr-users-bounces@lists.sip-router.org] De la part de Alex Balashov
Envoyé : mardi 8 juillet 2014 19:55 À : sr-users(a)lists.sip-router.org
Objet : Re: [SR-Users] set_rtp_proxy_set behaviour
Hi Igor,
On 07/08/2014 01:44 PM, Igor Potjevlesch wrote:
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.
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
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users