<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><tt>Hi George,<br>
<br>
It looks like you use the add_rcv_param() function when
processing the REGISTER.<br>
That is not the correct way of fixing the private registrations,
but rather via the fix_nated_register() function :<br>
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.11.x/nathelper.html#id294034">http://www.opensips.org/html/docs/modules/1.11.x/nathelper.html#id294034</a><br>
<br>
Use that function for the REGISTER requests (if coming from
behind NAT) and before doing the save(location)<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
On 15.10.2014 03:40, george wu wrote:<br>
</div>
<blockquote
cite="mid:2054773c.12e5.149113f8fc1.Coremail.aihuawu2012@163.com"
type="cite">
<div
style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">
<div class="moz-signature" cols="72">Hi, Bogdan-Andrei:<br>
<br>
I find my linphone client register twice. It seems it has
fix contact functionality. the second time it fix contact.<br>
am I right?<br>
<br>
REGISTER sip:103.24.228.158 SIP/2.0<br>
Via: SIP/2.0/UDP
192.168.1.3:5070;branch=z9hG4bK.oYu5jsYLh;rport<br>
From: <a class="moz-txt-link-rfc2396E" href="mailto:sip:test1@103.24.228.158"><sip:test1@103.24.228.158></a>;tag=WD1Okb6W1<br>
To: <a class="moz-txt-link-abbreviated" href="mailto:sip:test1@103.24.228.158">sip:test1@103.24.228.158</a><br>
CSeq: 20 REGISTER<br>
Call-ID: hLSmV9bsjn<br>
Max-Forwards: 70<br>
Supported: replaces, outbound<br>
Contact:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:test1@192.168.1.3:5070"><sip:test1@192.168.1.3:5070></a>;+sip.instance="<urn:uuid:866598bd-4f5e-47f9-b7fa-8be6c6883a57>"<br>
Expires: 3600<br>
User-Agent: linphone/3.7.0 (belle-sip/1.3.0)<br>
<br>
SIP/2.0 200 OK<br>
Via: SIP/2.0/UDP
192.168.1.3:5070;received=124.193.138.210;branch=z9hG4bK.oYu5jsYLh;rport=5111<br>
From: <a class="moz-txt-link-rfc2396E" href="mailto:sip:test1@103.24.228.158"><sip:test1@103.24.228.158></a>;tag=WD1Okb6W1<br>
To:
<a class="moz-txt-link-abbreviated" href="mailto:sip:test1@103.24.228.158;tag=1d417984ac5e6d68a4c07a2aeb0726ad.8908">sip:test1@103.24.228.158;tag=1d417984ac5e6d68a4c07a2aeb0726ad.8908</a><br>
CSeq: 20 REGISTER<br>
Call-ID: hLSmV9bsjn<br>
Contact:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:test1@192.168.1.3:5070"><sip:test1@192.168.1.3:5070></a>;expires=3600;received="sip:124.193.138.210:5111"<br>
Server: OpenSIPS (1.11.2-tls (x86_64/linux))<br>
Content-Length: 0<br>
<br>
REGISTER sip:103.24.228.158 SIP/2.0<br>
Via: SIP/2.0/UDP
192.168.1.3:5070;branch=z9hG4bK.Ie8svp-NN;rport<br>
From: <a class="moz-txt-link-rfc2396E" href="mailto:sip:test1@103.24.228.158"><sip:test1@103.24.228.158></a>;tag=WD1Okb6W1<br>
To: <a class="moz-txt-link-abbreviated" href="mailto:sip:test1@103.24.228.158">sip:test1@103.24.228.158</a><br>
CSeq: 21 REGISTER<br>
Call-ID: hLSmV9bsjn<br>
Max-Forwards: 70<br>
Supported: replaces, outbound<br>
Contact:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:test1@124.193.138.210:5111"><sip:test1@124.193.138.210:5111></a>;+sip.instance="<urn:uuid:866598bd-4f5e-47f9-b7fa-8be6c6883a57>"<br>
Expires: 3600<br>
User-Agent: linphone/3.7.0 (belle-sip/1.3.0)<br>
<br>
SIP/2.0 200 OK<br>
Via: SIP/2.0/UDP
192.168.1.3:5070;received=124.193.138.210;branch=z9hG4bK.Ie8svp-NN;rport=5111<br>
From: <a class="moz-txt-link-rfc2396E" href="mailto:sip:test1@103.24.228.158"><sip:test1@103.24.228.158></a>;tag=WD1Okb6W1<br>
To:
<a class="moz-txt-link-abbreviated" href="mailto:sip:test1@103.24.228.158;tag=1d417984ac5e6d68a4c07a2aeb0726ad.6b48">sip:test1@103.24.228.158;tag=1d417984ac5e6d68a4c07a2aeb0726ad.6b48</a><br>
CSeq: 21 REGISTER<br>
Call-ID: hLSmV9bsjn<br>
Contact:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:test1@192.168.1.3:5070"><sip:test1@192.168.1.3:5070></a>;expires=3600;received="sip:124.193.138.210:5111",
<a class="moz-txt-link-rfc2396E" href="mailto:sip:test1@124.193.138.210:5111"><sip:test1@124.193.138.210:5111></a>;expires=3600;received="sip:124.193.138.210:5111"<br>
Server: OpenSIPS (1.11.2-tls (x86_64/linux))<br>
Content-Length: 0<br>
<br>
<br>
</div>
<br>
<br>
<br>
<br>
<br>
At 2014-10-15 00:18:32, "Bogdan-Andrei Iancu"
<a class="moz-txt-link-rfc2396E" href="mailto:bogdan@opensips.org"><bogdan@opensips.org></a> wrote:<br>
<blockquote id="isReplyContent" style="PADDING-LEFT: 1ex;
MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="moz-cite-prefix"><tt>Hi George,<br>
<br>
nathelper module is used for multiple purposes like:<br>
1) nat pinging<br>
2) manging SIP signaling.<br>
<br>
If you are sure your clients are doing the pinging and you
do not any signaling manging (fixing contacts, etc), you
can stop using the nathelper module.<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
On 14.10.2014 18:22, george wu wrote:<br>
</div>
<blockquote
cite="mid:14fbd3cf.26418.1490f408ab3.Coremail.aihuawu2012@163.com"
type="cite">
<div
style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">
<div>do i need nathelper if my client keeps pinging all
the time?<br>
<br>
What's the use of those two method? I think we should
always use<br>
5060 or 5061, otherwise how can you reach the client
behind nat?<br>
<h3 class="title"><code class="varname">natping_socket</code>
(string)</h3>
<h3 class="title"><code class="varname">force_socket</code>
(string)</h3>
<br>
Thanks.<br>
<br>
George Wu<br>
<br>
</div>
</div>
<br>
<br>
<span title="neteasefooter"><span id="netease_mail_footer"></span></span><br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</blockquote>
</div>
<br>
<br>
<span title="neteasefooter"><span id="netease_mail_footer"></span></span>
</blockquote>
<br>
</body>
</html>