Opened 16 years ago

Closed 16 years ago

#425 closed defect (fixed)

pjstun_get_mapped_addr() failed when receiving incoming SIP request (thanks Lafras Henning)

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-0.9.0
Component: pjlib-util Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description

pjstun_get_mapped_addr() is the function to resolve the mapped STUN address for given sockets. This is an old/simple STUN implementation in pjlib-util, and is different than the STUN implementation in pjnath.

When pjstun_get_mapped_addr() is called to resolve local SIP socket, and when at the same time other SIP endpoint sends SIP request to pjsip, this function will fail with WSAEMSGSIZE error, because the SIP request is larger than the expected STUN response.

Change History (1)

comment:1 Changed 16 years ago by bennylp

  • Resolution set to fixed
  • Status changed from new to closed

The solution committed in r1596:

  • ignore recvfrom() and parsing error, and continue retransmitting the STUN binding request upon encountering these errors.
Note: See TracTickets for help on using tickets.