Ticket #2071 (closed enhancement: fixed)

Opened 6 months ago

Last modified 5 months ago

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

comment:1 Changed 6 months ago by ming

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

In 5706:

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

comment:2 Changed 6 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 5 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.