Ticket #425 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

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

comment:1 Changed 10 years ago by bennylp

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

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.