<div dir="ltr"><div>Dear,</div><div><br></div><div>I am testing the kakamilio 4.4 with rtpproxy on Debian stretch 9.13</div><div></div><div>I have installed the packages</div><div><ul><li> apt-get install kamailio and rtpproxy.</li></ul></div><div style="margin-left:40px"><ul><li>kamailio 4.4</li></ul></div><div style="margin-left:40px"><ul><li>rtpproxy 
Basic version: 20040107

</li></ul></div><div><br><div><span style="color:rgb(255,0,0)"><b>My version of RTPPROXY doesn't have the -A parameter so that means without advertising there is no way to work behind NAT? That is what I have understood after spending one week on forums. Thanks if somebody could confirm otherwise, which way I need to go to figure out my issue?</b></span><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div># rtpproxy -v<br>Basic version: 20040107<br>Extension 20050322: Support for multiple RTP streams and MOH<br>Extension 20060704: Support for extra parameter in the V command<br>Extension 20071116: Support for RTP re-packetization<br>Extension 20071218: Support for forking (copying) RTP stream<br>Extension 20080403: Support for RTP statistics querying<br>Extension 20081102: Support for setting codecs in the update/lookup command<br>Extension 20081224: Support for session timeout notifications<br></div></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div># rtpproxy -help<br>rtpproxy: invalid option -- 'h'<br>usage: rtpproxy [-2fvFiPa] [-l addr1[/addr2]] [-6 addr1[/addr2]] [-s path]<br>        [-t tos] [-r rdir [-S sdir]] [-T ttl] [-L nfiles] [-m port_min]<br>        [-M port_max] [-u uname[:gname]] [-n timeout_socket] [-d log_level[:log_facility]]<br>#</div></blockquote><div><br></div><div><div>
<div>/etc/hosts</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>127.0.0.1       localhost<br>127.0.1.1       sip.dom.xx sip<br>192.168.1.19    sip.dom.xx sip<br>PUBLIC_IP   sip.dom.xx sip<br># The following lines are desirable for IPv6 capable hosts<br>::1     localhost ip6-localhost ip6-loopback<br>ff02::1 ip6-allnodes<br>ff02::2 ip6-allrouters</div></blockquote>

</div><div><br></div><div><u><i>/etc/kamailio/kamailio.cfg</i></u></div><div><span style="font-size:6pt;font-family:Rockwell;color:white;font-weight:bold;font-style:italic">k</span><span style="font-size:6pt;font-family:Rockwell;color:white;font-weight:bold;font-style:italic">amailio.config</span></div><div>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p style="margin-top:0pt;margin-bottom:0pt;margin-left:0in;text-align:left;direction:ltr;unicode-bidi:embed;word-break:normal"><font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Rockwell">#!define PUBLIC_IP "</span><span style="font-family:Rockwell">xxx.xxx.xxx.xxx</span><span style="font-family:Rockwell">"</span><span style="font-family:Rockwell"><br>
#!define PRIVATE_IP "192.168.1.19"<br>
<span style="font-family:arial,sans-serif">#!define PRIVATE_NET "<a href="http://192.168.1.0/24" target="_blank">192.168.1.0/24</a></span></span><span style="font-family:arial,sans-serif">“</span></span></font></p></blockquote><div><font size="2"><span style="font-family:arial,sans-serif"></span></font></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><font size="2"><span style="font-family:arial,sans-serif"></span></font><font size="2"><span style="font-family:arial,sans-serif">listen=udp:PRIVATE_IP:5060 advertise PUBLIC_IP:5060</span></font><font size="2"><span style="font-family:arial,sans-serif"></span></font><font size="2"><span style="font-family:arial,sans-serif">  </span></font></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div> </div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font size="2"><span style="color:rgb(0,0,0)">

</span></font><p style="margin-top:0pt;margin-bottom:0pt;margin-left:0in;text-align:left;direction:ltr;unicode-bidi:embed;word-break:normal"><font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Consolas">#!ifdef WITH_NAT</span></span></font></p><font size="2"><span style="color:rgb(0,0,0)">

</span></font><p style="margin-top:0pt;margin-bottom:0pt;margin-left:0in;text-align:left;direction:ltr;unicode-bidi:embed;word-break:normal"><font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Consolas"># ----- </span><span style="font-family:Consolas">rtpproxy</span><span style="font-family:Consolas"> params -----</span></span></font></p><font size="2"><span style="color:rgb(0,0,0)">

</span></font><p style="margin-top:0pt;margin-bottom:0pt;margin-left:0in;text-align:left;direction:ltr;unicode-bidi:embed;word-break:normal"><font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Consolas">modparam</span><span style="font-family:Consolas">("</span><span style="font-family:Consolas">rtpproxy</span><span style="font-family:Consolas">", "</span><span style="font-family:Consolas">rtpproxy_sock</span><span style="font-family:Consolas">", "udp:</span><font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Rockwell">PRIVATE_IP</span></span></font><span style="font-family:Consolas">:7722")</span></span></font></p><font size="2"><span style="color:rgb(0,0,0)">

</span></font><p style="margin-top:0pt;margin-bottom:0pt;margin-left:0in;text-align:left;direction:ltr;unicode-bidi:embed;word-break:normal"><font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Consolas"><br>
</span><span style="font-family:Consolas"># ----- </span><span style="font-family:Consolas">nathelper</span><span style="font-family:Consolas"> params -----</span></span></font></p><font size="2"><span style="color:rgb(0,0,0)">

</span></font><p style="margin-top:0pt;margin-bottom:0pt;margin-left:0in;text-align:left;direction:ltr;unicode-bidi:embed;word-break:normal"><font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Consolas">modparam</span><span style="font-family:Consolas">("</span><span style="font-family:Consolas">nathelper</span><span style="font-family:Consolas">", "</span><span style="font-family:Consolas">natping_interval</span><span style="font-family:Consolas">", 30)</span></span></font></p><font size="2"><span style="color:rgb(0,0,0)">

</span></font><p style="margin-top:0pt;margin-bottom:0pt;margin-left:0in;text-align:left;direction:ltr;unicode-bidi:embed;word-break:normal"><font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Consolas">modparam</span><span style="font-family:Consolas">("</span><span style="font-family:Consolas">nathelper</span><span style="font-family:Consolas">", "</span><span style="font-family:Consolas">ping_nated_only</span><span style="font-family:Consolas">", 1)</span></span></font></p><font size="2"><span style="color:rgb(0,0,0)">

</span></font><p style="margin-top:0pt;margin-bottom:0pt;margin-left:0in;text-align:left;direction:ltr;unicode-bidi:embed;word-break:normal"><font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Consolas">modparam</span><span style="font-family:Consolas">("</span><span style="font-family:Consolas">nathelper</span><span style="font-family:Consolas">", "</span><span style="font-family:Consolas">sipping_bflag</span><span style="font-family:Consolas">", FLB_NATSIPPING)</span></span></font></p><font size="2"><span style="color:rgb(0,0,0)">

</span></font><p style="margin-top:0pt;margin-bottom:0pt;margin-left:0in;text-align:left;direction:ltr;unicode-bidi:embed;word-break:normal"><font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Consolas">modparam</span><span style="font-family:Consolas">("</span><span style="font-family:Consolas">nathelper</span><span style="font-family:Consolas">", "</span><span style="font-family:Consolas">sipping_from</span><span style="font-family:Consolas">", "</span><span style="font-family:Consolas"><a href="mailto:sip%3Apinger@kamailio.org" target="_blank">sip:pinger@kamailio.org</a></span><span style="font-family:Consolas">")</span></span></font></p></blockquote><p style="margin-top:0pt;margin-bottom:0pt;margin-left:0in;text-align:left;direction:ltr;unicode-bidi:embed;word-break:normal"><font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Consolas"><br></span></span></font></p><font size="2"><span style="color:rgb(0,0,0)">







</span></font><p style="margin-top:0pt;margin-bottom:0pt;margin-left:0in;text-align:left;direction:ltr;unicode-bidi:embed;word-break:normal"><u><font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Rockwell;font-style:italic">Etc</span><span style="font-family:Rockwell;font-style:italic">/default/</span><span style="font-family:Rockwell;font-style:italic">rtpproxy</span></span></font></u></p><p style="margin-top:0pt;margin-bottom:0pt;margin-left:0in;text-align:left;direction:ltr;unicode-bidi:embed;word-break:normal"><u><font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Rockwell;font-style:italic"><br></span></span></font></u></p><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p style="margin-top:0pt;margin-bottom:0pt;margin-left:0in;text-align:left;direction:ltr;unicode-bidi:embed;word-break:normal"><u><font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Rockwell;font-style:italic">
</span></span></font></u><font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Rockwell"><font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Rockwell">PRIVATE_IP=192.168.1.19<br></span></span></font></span></span></font></p><p style="margin-top:0pt;margin-bottom:0pt;margin-left:0in;text-align:left;direction:ltr;unicode-bidi:embed;word-break:normal">
<font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Rockwell">PUBLIC_IP=</span><span style="font-family:Rockwell">xxx.xxx.xxx.xxx</span></span></font></p><p style="margin-top:0pt;margin-bottom:0pt;margin-left:0in;text-align:left;direction:ltr;unicode-bidi:embed;word-break:normal"><font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Rockwell"></span><span style="font-family:Rockwell"></span><span style="font-family:Rockwell"></span></span></font>
<font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Rockwell"></span><span style="font-family:Rockwell">rtpport_min</span><span style="font-family:Rockwell"></span></span></font>= 10000</p><p style="margin-top:0pt;margin-bottom:0pt;margin-left:0in;text-align:left;direction:ltr;unicode-bidi:embed;word-break:normal">
<font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Rockwell"></span><span style="font-family:Rockwell">rtpport_max</span><span style="font-family:Rockwell"></span></span></font>=20000</p><p style="margin-top:0pt;margin-bottom:0pt;margin-left:0in;text-align:left;direction:ltr;unicode-bidi:embed;word-break:normal">
<font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Rockwell">syslog</span></span></font>=DBUG:LOG_LOCAL5<br><font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Rockwell"><font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Rockwell"></span></span></font></span></span></font><u><font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Rockwell;font-style:italic"><font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Rockwell"></span></span></font>

</span></span></font></u></p><font size="2"><span style="color:rgb(0,0,0)">

</span></font><p style="margin-top:0pt;margin-bottom:0pt;margin-left:0in;text-align:left;direction:ltr;unicode-bidi:embed;word-break:normal"><font size="2"><span style="color:rgb(0,0,0)"><span style="font-family:Rockwell">#Defaults for </span><span style="font-family:Rockwell">rtpproxy</span><span style="font-family:Rockwell"><br>
#The control
socket.<br>
#CONTROL_SOCK="unix:/var/run/rtpproxy/rtpproxy.sock"<br>
#To listen on an UDP socket, uncomment this line:<br>
</span><span style="font-family:Rockwell">#CONTROL</span><span style="font-family:Rockwell">_SOCK=udp:</span><span style="font-family:Rockwell">127.0.0.1</span><span style="font-family:Rockwell">:7722<br>
#Additional options that are passed to the daemon.<br>
EXTRA_OPTS="-l </span><span style="font-family:Rockwell">$</span><span style="font-family:Rockwell">PRIVATE_IP</span><span style="font-family:Rockwell">/$</span><span style="font-family:Rockwell">PUBLIC_IP</span><span style="font-family:Rockwell">
="-s $</span><span style="font-family:Rockwell">PRIVATE_IP:7222
</span><span style="font-family:Rockwell">-</span><span style="font-family:Rockwell">m $</span><span style="font-family:Rockwell">rtpport_min</span><span style="font-family:Rockwell"> -M $</span><span style="font-family:Rockwell">rtpport_max</span><span style="font-family:Rockwell"> -d
$syslog"`</span></span></font></p></blockquote></div>

</div><div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><br></div><div>Thanks if you could route me to the right way.</div><div><br></div><div>Best regards</div></div></div></div></div></div></div></div><br>Yboujraf<br>Email: <a href="mailto:yboujraf@gmail.com" target="_blank">yboujraf@gmail.com</a><br></div></div>