Ticket #2071 (closed enhancement: fixed)

Opened 11 days ago

Last modified 8 days 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 11 days 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 8 days 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.

Note: See TracTickets for help on using tickets.