Daniel, i got a <span style>fresh install kamailio 3.2.0 running on ubuntu per your suggestion. rtpproxy is running as well. My nathelper looks like this:</span><div><font color="#222222" face="arial, sans-serif"><br></font></div>
<div><font color="#222222" face="arial, sans-serif"><div># ----- nathelper params -----</div><div>modparam("nathelper", "natping_interval", 3)</div><div>modparam("nathelper", "ping_nated_only", 0)</div>
<div>modparam("nathelper", "sipping_bflag", FLB_NATSIPPING)</div><div>modparam("nathelper", "sipping_from", "<a href="mailto:sip%3Apinger@kamailio.org">sip:pinger@kamailio.org</a>")</div>
<div># SW changes</div><div>modparam("nathelper", "natping_processes", 3)</div><div>modparam("nathelper", "sipping_bflag", 7)</div><div>modparam("nathelper", "sipping_method", "INFO")</div>
<div><br></div><div>I also ran "<span style="background-color:rgb(254,254,238)">kamctl fifo nh_enable_ping 1" on the console.</span></div><div><span style="background-color:rgb(254,254,238)"><br></span></div><div>
<span style="background-color:rgb(254,254,238)">Calls drop at <b>exactly 30</b> seconds, I dont see anything obvious in the logs. Any suggestions? Anyone?</span></div></font><div><br><div class="gmail_quote">On Mon, Apr 16, 2012 at 2:51 PM, Saul Waizer <span dir="ltr"><<a href="mailto:saulwaizer@gmail.com">saulwaizer@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Daniel,<div><br></div><div>thank you for the suggestion, I followed the tutorial and got it up and running, however I am still experiencing the same issue, dropped calls after 30 seconds. Furthermore the output of tshark -i eth0 -R sip does not show any errors such as too many hops, everything looks very clean but I still cant get more than 30 seconds out.</div>
<div><br></div><div>I have a default config with mysql enabled and nat. rtproxy is running as well.</div><div><br></div><div>Any help is greatly appreciated.<div><div class="h5"><br><br><div class="gmail_quote">On Mon, Apr 16, 2012 at 1:31 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
ngrep trace (I haven't seen any yet in the thread) of such call can
help seeing if Record-/Route and Contact headers are properly set
and maintained during the call. It might be a broken RR handling in
a device or a wrong update of contact address.<br>
<br>
On the other hand, in the config, I saw presence being loaded -- if
you need that, then start with kamailio 3.2.x, here is a tutorial:<br>
<br>
<a href="http://www.kamailio.org/wiki/install/3.2.x/git" target="_blank">http://www.kamailio.org/wiki/install/3.2.x/git</a><br>
<br>
It comes with a default config file where is very easy to enable nat
traversal as well as presence handling -- just read the top of
config file and add the appropriate #!define directives.<br>
<br>
1.3.x is anyhow way too old...<br>
<br>
Cheers,<br>
Daniel<div><div><br>
<br>
<br>
On 4/16/12 7:16 PM, Stoyan Mihaylov wrote:
<blockquote type="cite">
<div>I am using nathelper and rtpproxy.</div>
<div>We had no serious problems with those modules.</div>
<div>My idea was to overwrite wrong addresses in ACK and BYE
packages, because they kept reentering kamailo, instead of being
forwarded where they have to go.</div>
<div><br>
By the way - you can add:</div>
<div>
<div>modparam("htable", "htable",
"forw=>size=8;autoexpire=7200;")</div>
<div>modparam("htable", "htable",
"mustforw=>size=8;autoexpire=7200;")</div>
<div><br>
</div>
<div class="gmail_quote">On Mon, Apr 16, 2012 at 8:03 PM, Saul
Waizer <span dir="ltr"><<a href="mailto:saulwaizer@gmail.com" target="_blank">saulwaizer@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thank you <span>Stoyan</span>
<div>
<div style="text-align:left"><font color="#222222" face="arial, sans-serif"><span style="white-space:nowrap"><b><br>
</b></span></font></div>
<div style="text-align:left"><font color="#222222" face="arial, sans-serif"><span style="white-space:nowrap">I added the routing
config as you suggested but it still drops the call
after 30 seconds.</span></font></div>
<div style="text-align:left"><font color="#222222" face="arial, sans-serif"><span style="white-space:nowrap"><br>
</span></font></div>
<div style="text-align:left"><font color="#222222" face="arial, sans-serif"><span style="white-space:nowrap">Any other suggestions?</span></font></div>
<div style="text-align:left"><font color="#222222" face="arial, sans-serif"><span style="white-space:nowrap"><br>
</span></font></div>
<div style="text-align:left"><font color="#222222" face="arial, sans-serif"><span style="white-space:nowrap">Note: my nathelper module
is commented out because I can't get it to work,
here is my mod list:</span></font></div>
<div style="text-align:left"><font color="#222222" face="arial, sans-serif"><span style="white-space:nowrap"><br>
</span></font></div>
<div style="text-align:left"><font color="#222222" face="arial, sans-serif"><span style="white-space:nowrap">
<div>
###### Modules Section ########</div>
<div><br>
</div>
<div>#set module path</div>
<div>mpath="/usr/lib/openser/modules/"</div>
<div><br>
</div>
<div>/* uncomment next line for MySQL DB support */</div>
<div>loadmodule "mysql.so"</div>
<div>loadmodule "sl.so"</div>
<div>loadmodule "tm.so"</div>
<div>loadmodule "rr.so"</div>
<div>loadmodule "maxfwd.so"</div>
<div>loadmodule "usrloc.so"</div>
<div>loadmodule "registrar.so"</div>
<div>loadmodule "textops.so"</div>
<div>loadmodule "mi_fifo.so"</div>
<div>loadmodule "uri_db.so"</div>
<div>loadmodule "uri.so"</div>
<div>loadmodule "xlog.so"</div>
<div>loadmodule "acc.so"</div>
<div><br>
</div>
<div>loadmodule "auth.so"</div>
<div>loadmodule "auth_db.so"</div>
<div><br>
</div>
<div>#loadmodule "domain.so"</div>
<div>loadmodule "presence.so"</div>
<div>#loadmodule "presence_xml.so"</div>
<div><br>
</div>
<div># !! Nathelper</div>
<div>#loadmodule "nathelper.so"</div>
<div>#loadmodule "nat_traversal.so"</div>
<div>#loadmodule "rtpproxy.so"</div>
<div>#loadmodule "dialog.so"</div>
<div><br>
</div>
<div>Thank You</div>
</span></font></div>
<div>
<div>
<div style="text-align:left"><font color="#222222" face="arial, sans-serif"><span style="white-space:nowrap"><br>
</span></font></div>
<br>
<div class="gmail_quote">
On Mon, Apr 16, 2012 at 12:03 PM, Stoyan Mihaylov <span dir="ltr"><<a href="mailto:stoyan.v.mihaylov@gmail.com" target="_blank">stoyan.v.mihaylov@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Some
time ago, I had similar problem.<br>
This was my solution:
<div>
<div>if(is_method("INVITE")){</div>
<div><span style="white-space:pre-wrap"> </span>ds_select_dst("1","4");</div>
<div><span style="white-space:pre-wrap"> </span>$sht(forw=>$ft)=$du;</div>
<div><span style="white-space:pre-wrap"> </span>sl_send_reply("100","Trying");</div>
<div>
<span style="white-space:pre-wrap"> </span>route(RELAY);</div>
<div><span style="white-space:pre-wrap"> </span>exit();</div>
<div>}</div>
<div><br>
</div>
<div>
<div>if ( is_method("ACK|BYE") ) {</div>
<div><span style="white-space:pre-wrap"> </span>if
( t_check_trans() ) {</div>
<div><span style="white-space:pre-wrap"> </span>t_relay();</div>
<div><span style="white-space:pre-wrap"> </span>exit;</div>
<div>} else {</div>
<span style="white-space:pre-wrap"> </span>if(($sht(forw=>$ft))=~$td){<br>
<div><span style="white-space:pre-wrap"> </span><span style="white-space:pre-wrap"> </span>$du=$sht(forw=>$ft);</div>
<div><span style="white-space:pre-wrap"> </span>}else
if((($td=="<a href="http://sip.mydomain.com" target="_blank">sip.mydomain.com</a>")||($td=="ip.of.my.domain"))&&($si=="ip.of.my.domain")){</div>
<div><span style="white-space:pre-wrap"> </span><span style="white-space:pre-wrap"> </span>$du=$sht(forw=>$ft);</div>
<div><span style="white-space:pre-wrap"> </span>}</div>
<div><span style="white-space:pre-wrap"> </span>t_relay();</div>
<div><span style="white-space:pre-wrap"> </span>exit;</div>
</div><div><div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><br>
</div>
<div>I am new to opensips so I am
not too familiar with the routing
logics, a google search on that
error suggests that there is a
problem with the route config
where its creating a loop
exhausting the Max Hops. The way I
configured my clients uses my
server as a proxy.</div>
<div><br>
</div>
<div>Any help is greatly
appreciated!</div>
<br>
<div class="gmail_quote">On Mon, Apr
16, 2012 at 1:59 AM, davy van de
moere <span dir="ltr"><<a href="mailto:davy.van.de.moere@gmail.com" target="_blank">davy.van.de.moere@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">38
seconds sounds pretty close to
30 seconds. Could those 38
seconds be a 30 seconds after
the actual answer packet?
<div>
<br>
</div>
<div>If so, you might want to
look at ACK and OK packets not
arriving correctly because of
NAT, wrong IP selection in
openser , etc...</div>
<div><br>
</div>
<div>A simple tshark might help
you out to debug from a higher
perspective : tshark -i eth0
-R sip </div>
<div><br>
</div>
<div>good luck!<br>
<br>
<div class="gmail_quote">Op 16
april 2012 05:11 schreef
Saul Waizer <span dir="ltr"><<a href="mailto:saulwaizer@gmail.com" target="_blank">saulwaizer@gmail.com</a>></span>
het volgende:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div><span>Greetings
list,</span>
</div></div></blockquote></div></div></blockquote></div></div></blockquote></div></div></div></div></div></blockquote></div></div></div></div></blockquote></div></div></blockquote>
</div></div></div><br></blockquote></div><br></div></div></div>
</blockquote></div><br></div></div>