<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"><span>Did you try this;</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="background-color: transparent;"><span>http://www.palner.com/blog/303/kamailio-behind-nat/#more-303<br></span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: arial, helvetica, sans-serif; font-style: normal;"><span><br></span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: arial, helvetica, sans-serif; font-style: normal;"><span>Regards,</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: arial,
 helvetica, sans-serif; font-style: normal;">Arun</div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"><br></div>  <div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Neo Quartz <neoquartz@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> sr-users@lists.sip-router.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, February 19, 2014 8:22 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [SR-Users] NAT traversal problem with Kamailio when trying to communicate between two different LANs<br> </font> </div> <div class="y_msg_container"><br><div id="yiv2445834270"><div dir="ltr"><span style="font-family: arial, sans-serif; font-size: 13px;">Hi
 All,</span><div style="font-family: arial, sans-serif; font-size: 13px;"><br></div><div style="font-family: arial, sans-serif; font-size: 13px;">I installed Kamailio server on my ubuntu machine. And installed rtpproxy also in the same machine. I didm't make many changes to default configuration files, kamctlrc and kamailio.cfg. Now I am able to communicate between two SIP clients, if both sip clients are in the same LAN. But I am not able to communicate between one sip client in one LAN and the other SIP client in other LAN. Sip Call handling and ringing etc. is ok  but there is no voice for this case. </div>
<div style="font-family: arial, sans-serif; font-size: 13px;"><br></div><div style="font-family: arial, sans-serif; font-size: 13px;">I don't have much experience in routing for NAT traversal. I tried to experiment with rtpproxy_manage function in kamailio.cfg file. But I was not successful. Please help me by providing any hints or pointers to proceed further. I am using only Kamailio and Rtpproxy. No other software like Asterisk or FreeSwitch. </div>
<div style="font-family: arial, sans-serif; font-size: 13px;"><br></div><div style="font-family: arial, sans-serif; font-size: 13px;">*************</div><div style="font-family: arial, sans-serif; font-size: 13px;">These are defines I used in kamailio.cfg file:</div>
<div style="font-family: arial, sans-serif; font-size: 13px;"><br></div><div style="font-size:13px;"><span id="yiv2445834270docs-internal-guid-691b8a98-4a84-945c-97cd-333105b510a5"><div dir="ltr" style="font-family: arial, sans-serif; line-height: 1.15; margin-top: 0pt; margin-bottom: 0pt;">
<span style="font-family: Arial; color: rgb(68, 68, 68); vertical-align: baseline; white-space: pre-wrap;">#!define WITH_MYSQL</span></div><div dir="ltr" style="font-family: arial, sans-serif; line-height: 1.15; margin-top: 0pt; margin-bottom: 0pt;">
<span style="font-family: Arial; color: rgb(68, 68, 68); vertical-align: baseline; white-space: pre-wrap;">#!define WITH_AUTH</span></div><div dir="ltr" style="font-family: arial, sans-serif; line-height: 1.15; margin-top: 0pt; margin-bottom: 0pt;">
<span style="font-family: Arial; color: rgb(68, 68, 68); vertical-align: baseline; white-space: pre-wrap;">#!define WITH_ALIASDB</span></div><div dir="ltr" style="font-family: arial, sans-serif; line-height: 1.15; margin-top: 0pt; margin-bottom: 0pt;">
<span style="font-family: Arial; color: rgb(68, 68, 68); vertical-align: baseline; white-space: pre-wrap;">#!define WITH_USRLOCDB</span></div><div dir="ltr" style="font-family: arial, sans-serif; line-height: 1.15; margin-top: 0pt; margin-bottom: 0pt;">
<span style="font-family: Arial; color: rgb(68, 68, 68); vertical-align: baseline; white-space: pre-wrap;">#!define WITH_ANTIFLOOD</span></div><div dir="ltr" style="font-family: arial, sans-serif; line-height: 1.15; margin-top: 0pt; margin-bottom: 0pt;">
<span style="font-family: Arial; color: rgb(68, 68, 68); vertical-align: baseline; white-space: pre-wrap;">#!define WITH_NAT</span></div><div dir="ltr" style="font-family: arial, sans-serif; line-height: 1.15; margin-top: 0pt; margin-bottom: 0pt;">
<span style="font-family: Arial; color: rgb(68, 68, 68); vertical-align: baseline; white-space: pre-wrap;">#!define WITH_PRESENCE</span><span style="font-family: Arial; vertical-align: baseline; white-space: pre-wrap;"></span></div><div dir="ltr" style="font-family: arial, sans-serif; line-height: 1.15; margin-top: 0pt; margin-bottom: 0pt;">
<span style="font-family: Arial; color: rgb(68, 68, 68); vertical-align: baseline; white-space: pre-wrap;"><br></span></div><div style="font-family: arial, sans-serif; line-height: 1.15; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Arial; color: rgb(68, 68, 68); vertical-align: baseline; white-space: pre-wrap;">listen ip address changed</span></div>
<div style="font-family: arial, sans-serif; line-height: 1.15; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-family: Arial; color: rgb(68, 68, 68); vertical-align: baseline; white-space: pre-wrap;"><br></span></div><div style="font-family: arial, sans-serif; line-height: 1.15; margin-top: 0pt; margin-bottom: 0pt;">
<span style="font-family: Arial; color: rgb(68, 68, 68); vertical-align: baseline; white-space: pre-wrap;">*******************</span></div><div style="font-family: arial, sans-serif;"><span style="font-family: Arial; color: rgb(68, 68, 68); vertical-align: baseline; white-space: pre-wrap;"><span><span style="color:rgb(34,34,34);vertical-align:baseline;">Kamailio is compiled with following modules:</span></span></span></div>
<div style="font-family: arial, sans-serif;"><span style="font-family: Arial; color: rgb(68, 68, 68); vertical-align: baseline; white-space: pre-wrap;"><span><span style="color:rgb(34,34,34);vertical-align:baseline;"><br></span></span></span></div>
<div style="font-family: arial, sans-serif;"><span style="font-family: Arial; color: rgb(68, 68, 68); vertical-align: baseline; white-space: pre-wrap;"><span id="yiv2445834270docs-internal-guid-691b8a98-4a85-7ee7-6d5a-deaba9a807c3"><span style="color:rgb(34,34,34);vertical-align:baseline;">include_modules= db_mysql dialplan presence presence_xml</span></span><br>
</span></div><div><font face="Arial"><span style="white-space:pre-wrap;">********</span></font></div><div><br></div></span></div><div style="font-family: arial, sans-serif; font-size: 13px;">Regards,</div><div style="font-family: arial, sans-serif; font-size: 13px;">
Sateesh</div></div></div><br>_______________________________________________<br>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br><a ymailto="mailto:sr-users@lists.sip-router.org" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br><br><br></div> </div> </div>  </div></body></html>