RTPProxy Installation Steps

RTPProxy Installation Steps

git clone --recursive --no-single-branch --branch rtpp_2_2 https://github.com/sippy/rtpproxy.git 
cd rtpproxy 
./configure --prefix=/usr/local/rtpproxy/ 
make
make install 
cp rpm/rtpproxy.service /etc/systemd/system/ 
sed -i 's/\/usr\/bin\/rtpproxy/\/usr\/local\/rtpproxy\/bin\/rtpproxy/1' /etc/systemd/system/rtpproxy.service 
sed -i 's/\/var\/run\/rtpproxy\/rtpproxy.pid/\/usr\/local\/rtpproxy\/var\/run\/rtpproxy\/rtpproxy.pid/g' /etc/systemd/system/rtpproxy.service 

For Debian:

cp rpm/rtpproxy.sysconfig /etc/default/rtpproxy 
sed -i 's/sysconfig/default/1' /etc/systemd/system/rtpproxy.service 

For CentOS:

cp rpm/rtpproxy.sysconfig /etc/sysconfig/rtpproxy 

Create User and add some options

mkdir -p /usr/local/rtpproxy/var/run/rtpproxy/ 
chown -R rtpproxy:rtpproxy /usr/local/rtpproxy 
groupadd rtpproxy 
useradd -M rtpproxy -g rtpproxy 
echo "OPTIONS=\"-s /usr/local/rtpproxy/var/run/rtpproxy/rtpproxy.sock -l 192.168.0.132 -t 184 -m 20000 -M 30000 -s udp:127.0.0.1:7722 -d INFO LOG_LOCAL0\"" > /etc/default/rtpproxy 

Now start RTPProxy

systemctl daemon-reload 
systemctl start rtpproxy 

To run rtpproxy directly from command line

/usr/local/rtpproxy/bin/rtpproxy -p /usr/local/rtpproxy/var/run/rtpproxy/rtpproxy.pid -s /usr/local/rtpproxy/var/run/rtpproxy/rtpproxy.sock -l 192.168.0.132 -t 184 -m 20000 -M 30000 -s udp:127.0.0.1:7722 -u rtpproxy:rtpproxy 

Enjoy ;)

No comments:

Post a Comment

SIPp UAC Scenario to send RTP

Please install the latest sipp ( >=3.7.3 ) wget https://github.com/SIPp/sipp/releases/download/v3.7.3/sipp chmor +x sipp mv sipp /usr/bin...