Re: [OpenSIPS-Users] rtp_relay module implementation help .

2022-03-23 Thread Răzvan Crainea

Hi, Sasmita!

There is no auto-switching mode, you will have to do it manually.
You need to monitor rtpengine through external scripts, and when it 
breaks, run the opensips-cli rtp_relay_update command.


Best regards,

Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

On 3/23/22 13:40, Sasmita Panda wrote:

Hi All ,

I was going through the doc and did a simple POC on rtp_relay module and 
the media server is rtpengine .


My config file looks like below .

loadmodule "dialog.so"
loadmodule "rtp_relay.so"
loadmodule "rtpengine.so"
modparam("rtpengine", "rtpengine_sock", "udp:20.0.x.x:22000=3")
modparam("rtpengine", "rtpengine_sock", "udp:20.0.x.y:22000=0")

route{
.
              if (is_method("INVITE")){
                              $rtp_relay = "replace-origin 
replace-session-connection";
                         $rtp_relay_peer = "replace-origin 
replace-session-connection";

                         #rtp_relay_engage("rtpproxy");
                         rtp_relay_engage("rtpengine");
..
    }
  }

While running this if rtpengine becomes unreachable through which media 
session is established , then opensips automatically wont switch the 
same call to another rtpengine node .  I have to run opensips-cli 
command to switch the rtpengine .


/usr/local/bin/opensips-cli -x mi rtp_relay_update engine=rtpengine 
set=0 node=udp:20.0.x.x:22000 new_node=udp:20.0.x.y:22000


Automatic switching possible or not? If possible then how ? What should 
I do for the automatic switching of rtpengine nodes ? Media high 
availability is only possible  if opensips will automatically switch the 
defective rtp node to the running one .


Please do suggest .

*/Thanks & Regards/*
/Sasmita Panda/
/Senior Network Testing and Software Engineer/
/3CLogic , ph:07827611765/

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] rtp_relay module implementation help .

2022-03-23 Thread Sasmita Panda
Hi All ,

I was going through the doc and did a simple POC on rtp_relay module and
the media server is rtpengine .

My config file looks like below .

loadmodule "dialog.so"
loadmodule "rtp_relay.so"
loadmodule "rtpengine.so"
modparam("rtpengine", "rtpengine_sock", "udp:20.0.x.x:22000=3")
modparam("rtpengine", "rtpengine_sock", "udp:20.0.x.y:22000=0")

route{
.
 if (is_method("INVITE")){
 $rtp_relay = "replace-origin
replace-session-connection";
$rtp_relay_peer = "replace-origin
replace-session-connection";
#rtp_relay_engage("rtpproxy");
rtp_relay_engage("rtpengine");
..
   }
 }

While running this if rtpengine becomes unreachable through which media
session is established , then opensips automatically wont switch the same
call to another rtpengine node .  I have to run opensips-cli command to
switch the rtpengine .

/usr/local/bin/opensips-cli -x mi rtp_relay_update engine=rtpengine set=0
node=udp:20.0.x.x:22000 new_node=udp:20.0.x.y:22000

Automatic switching possible or not? If possible then how ? What should I
do for the automatic switching of rtpengine nodes ? Media high availability
is only possible  if opensips will automatically switch the defective rtp
node to the running one .

Please do suggest .

*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users