Describe the bug
We can access the PBX via IPv4 and IPv6.
Our company WLAN uses only IPv6.
We don't set the transport in the account and the uri uses a name and no ip address.
At start we create 2 transports: one for IPv4 and one for IPv6
PJSUA fails to set the contact when we are in the pure IPv6 network, because it will always use the udp4 transport.
Even if we set the transport_id in the account to the udp6 transport it fails.
But in general I don't want to do this, because if later the IP changes to an IPv4 network, I think this account will fail
cause of the fixed transport.
How can this be handled?
Why pjsua don't try all transports until it find a working one?
Steps to reproduce
Build, for example, an iOS app with IPv6 enabled and choose a pure IPv6 WLAN and disable mobile data.
Set the sip uri to a name and not an ip address. Then start the programm.
PJSIP version
2.13.1
Context
iPhone XS MAX
iOS 16
Log, call stack, etc
Not possible at the moment.