Ticket #1955 (closed defect: fixed)
Assertions in DNS SRV resolution with IPv6 TCP/TLS target
|Reported by:||nanang||Owned by:||bennylp|
|Backport to 1.x milestone:||Backported:||no|
There are two assertion issues:
- Assertion in pjsip_resolve() because IPv6 transport types are not evaluated, so it gets into assertion block:
pj_assert(!"Unknown transport type");
- After above issue fixed, another assertion occurs in creating the SIP transport TCP/TLS because address family is IPv6 but address length is IPv4:
PJ_ASSERT_RETURN((rem_addr->addr.sa_family == pj_AF_INET() && addr_len == sizeof(pj_sockaddr_in)) || (rem_addr->addr.sa_family == pj_AF_INET6() && addr_len == sizeof(pj_sockaddr_in6)), PJ_EINVAL);
Thanks Alexander Traud for the report.
Note: See TracTickets for help on using tickets.