Wrong NAT detection results

Дмитрий UkrNet
Thu, May 26, 2011 10:54 PM

I write windows open source SIP client. And have problem.
PJSIP API give me  NAT detected as Symmetric.
As result when I call from first PC to second - all right, when from
second to first - (ICE negotiation failed and no sound).
I have NAT on Gentoo Linux machine.
All other software (NetDetect, client.exe) detect NAT type as "Port
Restricted Nat, preserve ports, no hairpin".
Is something wrong in pjsip STUN algorithm?

Second small question. Why, when ICE negotiation failed, PJSIP do not
send voice over SIP media proxy server and as result - no sound?

I write windows open source SIP client. And have problem. PJSIP API give me NAT detected as Symmetric. As result when I call from first PC to second - all right, when from second to first - (ICE negotiation failed and no sound). I have NAT on Gentoo Linux machine. All other software (NetDetect, client.exe) detect NAT type as "Port Restricted Nat, preserve ports, no hairpin". Is something wrong in pjsip STUN algorithm? Second small question. Why, when ICE negotiation failed, PJSIP do not send voice over SIP media proxy server and as result - no sound?
Дмитрий UkrNet
Fri, May 27, 2011 8:45 AM

And why performed test 3 if NAT is Symmetric ?

11:26:56.781  natck00BBCF78  Completed Test III: Binding request with

change port request, status=370004
11:26:56.781 .\microsipDlg.  NAT detected as Symmetric

--- Исходное сообщение ---
От кого: "Дмитрий UkrNet" dimacn@ukr.net
Кому: pjsip@lists.pjsip.org
Дата: 27 мая 2011, 01:54:29
Тема: Re: [pjsip] Wrong NAT detection results

 I write windows open source SIP client. And have problem.
 PJSIP API give me  NAT detected as Symmetric.
 As result when I call from first PC to second - all right, when
 from second to first - (ICE negotiation failed and no sound).
 I have NAT on Gentoo Linux machine.
 All other software (NetDetect, client.exe) detect NAT type as
 "Port Restricted Nat, preserve ports, no hairpin".
 Is something wrong in pjsip STUN algorithm?

 Second small question. Why, when ICE negotiation failed, PJSIP do
 not send voice over SIP media proxy server and as result - no
 sound?

 _______________________________________________
 Visit our blog:      http://blog.pjsip.org     
 pjsip mailing list     pjsip@lists.pjsip.org          http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org        
And why performed test 3 if NAT is Symmetric ? 11:26:56.781 natck00BBCF78 Completed Test III: Binding request with change port request, status=370004 11:26:56.781 .\microsipDlg. NAT detected as Symmetric --- Исходное сообщение --- От кого: "Дмитрий UkrNet" <dimacn@ukr.net> Кому: pjsip@lists.pjsip.org Дата: 27 мая 2011, 01:54:29 Тема: Re: [pjsip] Wrong NAT detection results I write windows open source SIP client. And have problem. PJSIP API give me NAT detected as Symmetric. As result when I call from first PC to second - all right, when from second to first - (ICE negotiation failed and no sound). I have NAT on Gentoo Linux machine. All other software (NetDetect, client.exe) detect NAT type as "Port Restricted Nat, preserve ports, no hairpin". Is something wrong in pjsip STUN algorithm? Second small question. Why, when ICE negotiation failed, PJSIP do not send voice over SIP media proxy server and as result - no sound? _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Дмитрий UkrNet
Fri, May 27, 2011 11:08 AM

I have investigated deeper.
It seems PJISP algorithm works right.
it appears Gentoo iptables is realy Symmetric NAT ...
How to change to port restricted, recompile kernel and with what
options?

I have investigated deeper. It seems PJISP algorithm works right. it appears Gentoo iptables is realy Symmetric NAT ... How to change to port restricted, recompile kernel and with what options?