if you are doing like that, you are dispatching 3 quarters of traffic to
the first one, and one quarter to the second one, it's not used just for
failover. The second one must be 0 if you want to have it as failover.
If it is not working with 0, please open an issue on github[1].
[1] https://github.com/OpenSIPS/opensips/issues
Best regards,
Razvan
On 10/8/18 11:11 AM, Sasmita Panda wrote:
After making like below its working fine .
modparam("rtpengine", "rtpengine_sock", "udp:1st_ip:12000
<http://138.197.47.209:12000/>=3 udp:2nd_ip:1200
<http://104.131.174.53:1200/>0=1")
OR
modparam("rtpengine", "rtpengine_sock", "udp:1st_ip:12000
<http://138.197.47.209:12000/>=3")
modparam("rtpengine", "rtpengine_sock", "udp:2nd_ip:1200
<http://104.131.174.53:1200/>0=1")
Now its working . Let me know if I am doing anything wrong .
*/Thanks & Regards/*
/Sasmita Panda/
/Senior Network Testing and Software Engineer/
/3CLogic , ph:07827611765/
On Mon, Oct 8, 2018 at 1:18 PM Sasmita Panda <[email protected]
<mailto:[email protected]>> wrote:
If I am setting 2nd one to 0 , Then offcource 1st one becomes
primary . But it wont switch to 2nd one when 1st wont reachable .
I am getting error as bellow .
INFO:rtpengine:rtpe_test: rtp proxy <udp:2nd_ip:12000> found,
support for it enabled
ERROR:rtpengine:rtpe_function_call: no available proxies
ERROR:rtpengine:send_rtpe_command: can't send command to a RTP proxy
ERROR:rtpengine:send_rtpe_command: proxy <udp:1st_ip:12000> does not
respond, disable it
ERROR:rtpengine:rtpe_test: proxy did not respond to ping
I have intentionally stopped the 1st one to test if its switching to
2nd or not . I am getting this in the logs each time I am placing a
call .
*/Thanks & Regards/*
/Sasmita Panda/
/Senior Network Testing and Software Engineer/
/3CLogic , ph:07827611765/
On Mon, Oct 8, 2018 at 12:57 PM Răzvan Crainea <[email protected]
<mailto:[email protected]>> wrote:
Hi, Sasmita!
You can try to set a weight of 0 to the second rtpengine socket,
something like:
modparam("rtpengine", "rtpengine_sock",
"udp:138.197.47.209:12000 <http://138.197.47.209:12000>
udp:104.131.174.53:1200=0")
Let me know if this works or you're finding any issues.
Best regards,
Razvan
On 10/8/18 8:40 AM, Sasmita Panda wrote:
> Hi All ,
>
> I am using opensips-2.2 with rtpengine . I have 2 server where
> rtpengine is running . I want opensips should do failover
between these
> 2 server .
>
> In my opensips confing is like
>
> loadmodule "rtpengine.so"
> modparam("rtpengine", "rtpengine_sock",
"udp:138.197.47.209:12000 <http://138.197.47.209:12000>
> <http://138.197.47.209:12000> udp:104.131.174.53:1200
<http://104.131.174.53:1200>
> <http://104.131.174.53:1200>")
>
> In this case loadbalance happened between 2 rtpenigne , and
if 1 fails
> then 2nd one get used . But I dont want this . I want to set
1 always
> 1st priority if that fails then 2nd will get used . How I
will do this .
> I am not getting this is opensips module documentation . Can
anybody
> please help me .
>
> */Thanks & Regards/*
> /Sasmita Panda/
> /Senior Network Testing and Software Engineer/
> /3CLogic , ph:07827611765/
>
> _______________________________________________
> Users mailing list
> [email protected] <mailto:[email protected]>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com
_______________________________________________
Users mailing list
[email protected] <mailto:[email protected]>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
--
Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users