<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div>i have setup asterisk/rtpproxy/kamailio following the guide in <a href="https://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb">https://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb</a> and later NAT traversal with rtpproxy as i understand in simple we must have:<br></div><div dir="ltr"><span><code class="gmail-code-colors gmail-inline">phone/caller-->[-->rtpproxy->kamailio->asterisk->kamailio-></code></span><span><code class="gmail-code-colors gmail-inline"><span><code class="gmail-code-colors gmail-inline">rtpproxy</code></span>-]->phone/dest<br></code></span></div><br>But when you make a call between two phones, there is no sound... <br><br>...to
make it work and get sound have to open the ports (range 10000 to 30000
udp) in the asterisk exposing them to the public ip whre its the
kamailio and rtpproxy.<br><br>We configured kamailio with rtpproxy (also tried with rtpengine), and when I configure Asterisk and Kamailio in "real time" mode, everything goes well, the extensions are registered, the authentication is in the asterisk side (table sipusers requires ignore the version check parameter if you use kamailio 5+) etc etc .. but there's no sound, we have:<br><br>kamailio.bindip="10.10.1.1" desc "kamailio.bindip"<br>kamailio.bindport=5060 desc "kamailio.bindport"<br>asterisk.bindip="10.10.1.2" desc "asterisk.bindip"<br>asterisk.bindport=5060 desc "asterisk.bindport"<br>listen=udp:<a href="http://10.10.1.1:5060">10.10.1.1:5060</a> advertise <a href="http://200.1.1.1:5060">200.1.1.1:5060</a><br><br></div><div dir="ltr"><div>at rtpproxy we have:<br></div><div dir="ltr"><br>/usr/bin/rtpproxy -s unix:/var/run/rtpproxy/rtpproxy.sock -u kamailio -p /var/run/rtpproxy/rtpproxy.pid -l 10.10.1.1 -A 200.1.1.1 -F -m 10000 -M 30000<br><br></div><div>why we need to make asterisk open the ports directly to the publlic ip?<br><br></div><div>N]OTE: the public ip are not a real interface in the kamailio/rtppropxy machine, are provided by the service AWS at amazon! a NAT kind i guess!<br><br></div><div dir="ltr"><br clear="all"><div><div dir="ltr" class="gmail_signature"><font color="#888888">Lenz McKAY Gerardo (PICCORO)</font><div><font color="#888888"><a href="http://qgqlochekone.blogspot.com" target="_blank">http://qgqlochekone.blogspot.com</a></font></div></div></div></div></div></div></div></div></div></div></div></div></div></div>