Opened 23 months ago

Closed 23 months ago

Last modified 22 months ago

#2071 closed enhancement (fixed)

Update pjsip_resolve() to be able to return more than one resolved address

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

Description

Currently pj_getaddrinfo() in pjsip_resolve will only return the first address.

So this can be useful in situations where that first address has an address family which is unsupported by applications (such as IPv4-only client which receives an IPv6 address when trying to register, hence causing it to fail).

Thanks to Alexander Traud for the report.

Change History (3)

comment:1 Changed 23 months ago by ming

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

In 5706:

Fixed #2071: Update pjsip_resolve() to be able to return more than one resolved address

comment:2 Changed 23 months ago by ming

In 5707:

Re #2071: Specify socktype hint when calling getaddrinfo, to reduce the number of addresses returned.
Thanks to Alexander Traud for the patch.

comment:3 Changed 22 months ago by ming

In 5716:

Re #2071: Change the default array size to contain the resolved address to 16 (and 32 if IPv6 is enabled) to accommodate more addresses.

Note: See TracTickets for help on using tickets.