OpenSIPs Configuration with RTPproxy on Amazon EC2



Tools Needed

1. Amazon EC2
2. OpenSIPs
3. RTPproxy

Install RTPproxy
start RTPproxy with follwoing Flags

/usr/local/bin/rtpproxy -p /var/run/rtpproxy.pid -u root -F -s udp:127.0.0.1:22222 -A 192.168.0.1/8.8.8.8 -m 11000 -M 62000 -n tcp:127.0.0.1:22222 -i 30 -T 30 -W 30 -2 -d DBUG local0

Read RTPproxy flags details from its documentation.

Install OpenSIPs
add following lines according to you settings

############## AWS ###########
auto_aliases=no
listen=udp:192.168.0.1:5060     # customize me
advertised_address="8.8.8.8"   # Amozon's Public IP
advertised_port=5060
alias="8.8.8.8"                           # Amazons's Public IP
##################################

use module RTPPROXY

#### RTP Proxy ####
loadmodule "rtpproxy.so"
modparam("rtpproxy", "rtpproxy_autobridge", 1)
modparam("rtpproxy", "nortpproxy_str", "a=sdpmangled:yes\r\n")
modparam("rtpproxy", "rtpproxy_sock", "udp:127.0.0.1:22222")
modparam("rtpproxy", "rtpp_notify_socket", "tcp:127.0.0.1:22222")
#### END ###

Use Function in INVITEs rtpproxy_offer("OCNFIE","IP");and rtpproxy_answer("OCNFIE","IP"); in 200OK to manipulate SDP packets.


No comments:

Post a Comment

How to compile and run a next application ?

Install nodejs Use  this  link for further reading curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash nvm inst...