Ticket #1013 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

PJSIP resolver should not try to resolve the target if IP address is given (thanks Emil Sturniolo for the report)

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

Description

When target URI is an IP address, PJSIP resolver (sip_resolve.c) still tries to resolve it with pj_getaddrinfo(). While this normally is fine (although perhaps slightly inefficient), calling pj_getaddrinfo() does return error if IP address is given on certain Windows Mobile devices.

The solution is to avoid calling pj_getaddrinfo() if the target is an IP address.

Change History

comment:1 Changed 9 years ago by bennylp

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

Fixed in r3049.

comment:2 Changed 9 years ago by ismangil

  • Milestone changed from release-1.6 to release-1.5.5

comment:3 Changed 9 years ago by bennylp

In r3053:

  • fixed bug with IPv6
  • also fixed bug with not fully initializing socket address, causing assertion on pjsip-test and also potentially will cause error on MacOS X due to sin_zero_len not being zeroed
Note: See TracTickets for help on using tickets.