[OpenSIPS-Users] do i need nathelper if my client keeps pinging all the time?
Bogdan-Andrei Iancu
bogdan at opensips.org
Wed Oct 15 09:18:03 CEST 2014
Hi George,
It looks like you use the add_rcv_param() function when processing the
REGISTER.
That is not the correct way of fixing the private registrations, but
rather via the fix_nated_register() function :
http://www.opensips.org/html/docs/modules/1.11.x/nathelper.html#id294034
Use that function for the REGISTER requests (if coming from behind NAT)
and before doing the save(location)
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 15.10.2014 03:40, george wu wrote:
> Hi, Bogdan-Andrei:
>
> I find my linphone client register twice. It seems it has fix contact
> functionality. the second time it fix contact.
> am I right?
>
> REGISTER sip:103.24.228.158 SIP/2.0
> Via: SIP/2.0/UDP 192.168.1.3:5070;branch=z9hG4bK.oYu5jsYLh;rport
> From: <sip:test1 at 103.24.228.158>;tag=WD1Okb6W1
> To: sip:test1 at 103.24.228.158
> CSeq: 20 REGISTER
> Call-ID: hLSmV9bsjn
> Max-Forwards: 70
> Supported: replaces, outbound
> Contact:
> <sip:test1 at 192.168.1.3:5070>;+sip.instance="<urn:uuid:866598bd-4f5e-47f9-b7fa-8be6c6883a57>"
> Expires: 3600
> User-Agent: linphone/3.7.0 (belle-sip/1.3.0)
>
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP
> 192.168.1.3:5070;received=124.193.138.210;branch=z9hG4bK.oYu5jsYLh;rport=5111
> From: <sip:test1 at 103.24.228.158>;tag=WD1Okb6W1
> To: sip:test1 at 103.24.228.158;tag=1d417984ac5e6d68a4c07a2aeb0726ad.8908
> CSeq: 20 REGISTER
> Call-ID: hLSmV9bsjn
> Contact:
> <sip:test1 at 192.168.1.3:5070>;expires=3600;received="sip:124.193.138.210:5111"
> Server: OpenSIPS (1.11.2-tls (x86_64/linux))
> Content-Length: 0
>
> REGISTER sip:103.24.228.158 SIP/2.0
> Via: SIP/2.0/UDP 192.168.1.3:5070;branch=z9hG4bK.Ie8svp-NN;rport
> From: <sip:test1 at 103.24.228.158>;tag=WD1Okb6W1
> To: sip:test1 at 103.24.228.158
> CSeq: 21 REGISTER
> Call-ID: hLSmV9bsjn
> Max-Forwards: 70
> Supported: replaces, outbound
> Contact:
> <sip:test1 at 124.193.138.210:5111>;+sip.instance="<urn:uuid:866598bd-4f5e-47f9-b7fa-8be6c6883a57>"
> Expires: 3600
> User-Agent: linphone/3.7.0 (belle-sip/1.3.0)
>
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP
> 192.168.1.3:5070;received=124.193.138.210;branch=z9hG4bK.Ie8svp-NN;rport=5111
> From: <sip:test1 at 103.24.228.158>;tag=WD1Okb6W1
> To: sip:test1 at 103.24.228.158;tag=1d417984ac5e6d68a4c07a2aeb0726ad.6b48
> CSeq: 21 REGISTER
> Call-ID: hLSmV9bsjn
> Contact:
> <sip:test1 at 192.168.1.3:5070>;expires=3600;received="sip:124.193.138.210:5111",
> <sip:test1 at 124.193.138.210:5111>;expires=3600;received="sip:124.193.138.210:5111"
> Server: OpenSIPS (1.11.2-tls (x86_64/linux))
> Content-Length: 0
>
>
>
>
>
>
>
> At 2014-10-15 00:18:32, "Bogdan-Andrei Iancu" <bogdan at opensips.org> wrote:
>
> Hi George,
>
> nathelper module is used for multiple purposes like:
> 1) nat pinging
> 2) manging SIP signaling.
>
> 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.
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
>
> On 14.10.2014 18:22, george wu wrote:
>> do i need nathelper if my client keeps pinging all the time?
>>
>> What's the use of those two method? I think we should always use
>> 5060 or 5061, otherwise how can you reach the client behind nat?
>>
>>
>> |natping_socket| (string)
>>
>>
>> |force_socket| (string)
>>
>>
>> Thanks.
>>
>> George Wu
>>
>>
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20141015/a6a38594/attachment.htm>
More information about the Users
mailing list