<div><font face="verdana,sans-serif">Hello Vallimamod,</font></div>
<div><font face="verdana,sans-serif"></font> </div>
<div><font face="verdana,sans-serif">The best way to keep a user behind nat, is sending OPTIONS:</font></div>
<div><font face="verdana,sans-serif"></font> </div>
<div><font face="verdana,sans-serif">modparam(&quot;nathelper&quot;, &quot;natping_interval&quot;, 30)<br>modparam(&quot;nathelper&quot;, &quot;ping_nated_only&quot;, 0)<br>modparam(&quot;nathelper&quot;, &quot;sipping_bflag&quot;, 7)<br>
modparam(&quot;nathelper&quot;, &quot;sipping_from&quot;, &quot;sip:pinger@PROXY_IP&quot;)</font></div>
<div><font face="Verdana"></font> </div>
<div><font face="Verdana">From the book: &quot;Building Telephony Systems with OpenSIPS&quot; Flavio E Goncalves:</font></div>
<div><font face="Verdana"></font> </div>
<div><font face="Verdana">&quot;The parameters natping_interval, ping_nated_only, sipping_bflag, and<br>sipping_from, controls how to ping the clients to maintain the NAT mapping<br>open. Most of these parameters are self explanatory, but pay attention to the<br>
sipping_bflag. If the bflag is set to 7, the NATHELPER module will ping<br>using an OPTIONS SIP request from the address established in the parameter<br>sipping_from. It is much safer to use the OPTIONS request instead of a dummy<br>
UDP packet, because some NAT implementations require an outbound packet to<br>keep the NAT mapping open and the client will answer the OPTIONS request with<br>any SIP response, which will do the trick.&quot;</font></div>
<div><font face="verdana,sans-serif"> </font></div>
<div>Regards!<br></div>
<div><font face="verdana,sans-serif"> </font></div>
<div><br><br></div>
<div class="gmail_quote">2011/2/4 Vallimamod ABDULLAH <span dir="ltr">&lt;<a href="mailto:vallimamod.abdullah@imtelecom.fr">vallimamod.abdullah@imtelecom.fr</a>&gt;</span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hello,<br><br>On Feb 4, 2011, at 11:03 AM, Iņaki Baz Castillo wrote:<br><br>&gt; [...]<br>
<div class="im">&gt; And the server is responsible for keeping the registrations and not<br>&gt; loosing them when restarting.<br></div>&gt; [...]<br><br>Just a related question: what about the nat binding ?<br>Does the nathelper module keep sending the keep-alive message for natted phones after restart ?<br>
<br>I have noticed that sometime phones behind nat are not able to receive incoming calls or presence notifications upon server restart but I did not have time to look at it yet.<br><br>Regards,<br><font color="#888888">Vallimamod Abdullah<br>
.<br></font>
<div>
<div></div>
<div class="h5">_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>