STUN changes in pjsip 1.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Klaus Darilion wrote:
> Hi Alain!
> 
> Attached is the log output and the pcap file.

If you check the ICMP packets #20, #29 and #31 you'll see that there
IS another problem at the network layer (ALG, Firewall ?!?) which
has nothing to do with the patch as i stated before.

For example if you analyze the ICMP packet #20 and follow the
corresponding STUN messages through their Transaction ID you get the
corresponding STUN messages #7,#8,#13,#19 and #20.

#7,#8 	
88.198.53.118:57596 is used to send the Binding Request

#13,#19	
the server sends the successful Binding Response to 88.198.53.118:57596

But for one reason or and another that port is NOT reachable #20,
thus those responses (#13,#19) never get to the application !!!

Anyway, there is a discrepancy between the result of the successful
NAT discovery test and those ICMP (Destination Unreachable) messages.

Did download the trunk and did apply the patch and still can't
reproduce that situation.


Cheers,
Alain

> 
> Alain Totouom schrieb:
>> Hi Klaus,
>>
>> Klaus Darilion wrote:
>>> Hi Benny!
>>>
>>> Using Alain's patch, Vovida STUN now responds to the STUN requests, but
>>> it somehow triggers another problem (see below).
>>
>> thanks for testing the patch ;o)
>> This patch does fix a STUN attribute padding issue. Check RFC 5389
>> ?15 page 31 if you are interested in the rational.
>>
>> Did check your output and that is NOT related to the problem you are
>> having now.
>> I will suggest you rebuild your app and send a pcap (ICMP included)
>> afterwards if the problem still exist.
>>
>> Cheers,
>> Alain
>>
>>
>>> regards
>>> Klaus
>>>
>>> ./pjsua-i686-pc-linux-gnu ...
>>>  17:41:23.689 os_core_unix.c  pjlib 1.4 for POSIX initialized
>>>  17:41:23.690 sip_endpoint.c  Creating endpoint instance...
>>>  17:41:23.690          pjlib  select() I/O Queue created (0x8d46e90)
>>>  17:41:23.690 sip_endpoint.c  Module "mod-msg-print" registered
>>>  17:41:23.690 sip_transport.  Transport manager created.
>>>  17:41:23.690 sip_endpoint.c  Module "mod-pjsua-log" registered
>>>  17:41:23.690   pjsua_core.c  Nameserver 127.0.0.1 added
>>>  17:41:23.690 sip_endpoint.c  Module "mod-tsx-layer" registered
>>>  17:41:23.690 sip_endpoint.c  Module "mod-stateful-util" registered
>>>  17:41:23.690 sip_endpoint.c  Module "mod-ua" registered
>>>  17:41:23.690 sip_endpoint.c  Module "mod-100rel" registered
>>>  17:41:23.690 sip_endpoint.c  Module "mod-pjsua" registered
>>>  17:41:23.690 sip_endpoint.c  Module "mod-invite" registered
>>>  17:41:23.690   pjsua_core.c  Trying STUN server stun.pjsip.org (1 of
>>> 1)..
>>>  17:41:23.691     resolver.c  Transmitting 43 bytes to NS 0
>>> (127.0.0.1:53): DNS SRV query for _stun._udp.stun.pjsip.org
>>>  17:41:23.695       pa_dev.c  PortAudio sound library initialized,
>>> status=0
>>>  17:41:23.695       pa_dev.c  PortAudio host api count=2
>>>  17:41:23.695       pa_dev.c  Sound device count=0
>>>  17:41:23.695          pjlib  select() I/O Queue created (0x8d5f4b4)
>>>  17:41:23.710 _stun._udp.stu  DNS SRV resolution failed for
>>> _stun._udp.stun.pjsip.org: DNS "Name Error" (PJLIB_UTIL_EDNS_NXDOMAIN)
>>>  17:41:23.710 _stun._udp.stu  DNS SRV resolution failed for
>>> _stun._udp.stun.pjsip.org, trying resolving A record for stun.pjsip.org
>>>  17:41:23.710     resolver.c  Transmitting 32 bytes to NS 0
>>> (127.0.0.1:53): DNS A query for stun.pjsip.org
>>>  17:41:23.868    stunresolve  STUN mapped address found/changed:
>>> 88.198.53.113:55799
>>>
>>>
>>>  17:41:23.868   pjsua_core.c  STUN resolution success, using
>>> stun.pjsip.org, address is 208.109.222.137:3478
>>>
>>>
>>>  17:41:23.868 sip_endpoint.c  Module "mod-evsub" registered
>>>  17:41:23.868 sip_endpoint.c  Module "mod-presence" registered
>>>  17:41:23.868 sip_endpoint.c  Module "mod-refer" registered
>>>  17:41:23.869 sip_endpoint.c  Module "mod-pjsua-pres" registered
>>>  17:41:23.869 sip_endpoint.c  Module "mod-pjsua-im" registered
>>>  17:41:23.869 sip_endpoint.c  Module "mod-pjsua-options" registered
>>>  17:41:23.869   pjsua_core.c  1 SIP worker threads created
>>>  17:41:23.869   pjsua_core.c  pjsua version 1.4 for i686-pc-linux-gnu
>>> initialized
>>>  17:41:23.869 sip_endpoint.c  Module "mod-default-handler" registered
>>>
>>>
>>>  17:41:24.131    pjsua_app.c  NAT detected as Open
>>>
>>>
>>>  17:41:27.868   pjsua_core.c  Error contacting STUN server: Received no
>>> response from STUN server (PJLIB_UTIL_ESTUNNOTRESPOND) [status=320010]
>>>  17:41:27.876   pjsua_core.c  Shutting down...


-- 
                              |
                          \   |   /            _\/_
                            .-'-.              //o\  _\/_
                       --  /     \  --           |   /o\\
^~^~^~~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~~^^~~^~^|~^~~~|^~^^`
^~^~^~~^~^~^~^~^~^~^~^~^~^^~^~^~~^~^~^~^~^~^~^^-       |
1024D/A9F85A52  2000-01-18   Alain Totouom  <totouom at gmx.de>
PGP FingerPrint DA180DF2 FBD25F67 0656452D E3A27531 A9F85A52



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux