127.0.0.1 localhost
127.0.1.1 sipsecure.by-systems.be sipsecure
192.168.1.19 sipsecure.by-systems.be sipsecure
xxx.XXX.xxx.XXX sipsecure.by-systems.be sipsecure
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
#!define PUBLIC_IP "xxx.xxx.xxx.xxx"
#!define PRIVATE_IP "192.168.1.19"
#!define PRIVATE_NET "192.168.1.0/24“#!ifdef WITH_NAT
# ----- rtpproxy params -----
modparam("rtpproxy", "rtpproxy_sock", "udp:PRIVATE_IP:7722")
# ----- nathelper params -----modparam("nathelper", "natping_interval", 30)
modparam("nathelper", "ping_nated_only", 1)
modparam("nathelper", "sipping_bflag", FLB_NATSIPPING)
modparam("nathelper", "sipping_from", "sip:pinger@kamailio.org")
Etc/default/rtpproxy
PRIVATE_IP=192.168.1.19
PUBLIC_IP=xxx.xxx.xxx.xxx
rtpport_min= 10000
rtpport_max=20000
syslog=DBUG:LOG_LOCAL5
#Defaults for rtpproxy
#The control socket.
#CONTROL_SOCK="unix:/var/run/rtpproxy/rtpproxy.sock"
#To listen on an UDP socket, uncomment this line:
#CONTROL_SOCK=udp:127.0.0.1:7722
#Additional options that are passed to the daemon.
EXTRA_OPTS="-l $PRIVATE_IP/$PUBLIC_IP ="-s $PRIVATE_IP:7222 -m $rtpport_min -M $rtpport_max -d $syslog"`