Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#1013 closed defect (fixed)

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 (3)

comment:1 Changed 14 years ago by bennylp

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

Fixed in r3049.

comment:2 Changed 14 years ago by ismangil

  • Milestone changed from release-1.6 to release-1.5.5

comment:3 Changed 14 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.