1. Install rtpproxy :

`http://b2bua.org/chrome/site/rtpproxy-1.2.1.tar.gz```

tar -zxvf rtpproxy-1.2.1.tar.gz<br></br>
cd rtpproxy-1.2.1<br></br>
./configure<br></br>
make<br></br>
make install```
  1. Create users to run rtpproxy
<br></br>
adduser rtpproxy -d /home/rtpproxy -s /bin/false```

5. Init script for rtpproxy ( Paste the following into /etc/init.d/rtpproxy)

!/bin/sh

Basic support for IRIX style chkconfig



chkconfig: 235 98 55

description: Manages the services you are controlling with the chkconfig command



case "$1" in


start)


echo -n "Starting rtpproxy"

To run it as root:

/usr/local/bin/rtpproxy -u rtpproxy

for using with kamailio replace the above line with

rtpproxy -l your_public_ip  -s udp:localhost:7722 -u rtpproxyecho "".

;;


stop)

get the pid

RTPPROXYPID=cat "/var/run/rtpproxy"pid.  2>/dev/null


echo -n "Stopping rtpproxy"

To run it as root:

/bin/kill "$RTPPROXYPID" >/dev/null 2>&1echo ...


;;*)


echo "Usage: /sbin/service rtpproxy {start|stop}"


exit 1


esac


exit 0

```

  1. change ownership to root

chown -v root:root /etc/init.d/rtpproxy

  1. Chmod the file

  chmod -v 0755 /etc/init.d/rtpproxy

  1. Set to run at startup

chkconfig rtpproxy on

     service rtpproxy start

  1. You should now be able to do nat traversal with default config file by just

#!define WITH_NAT