I can’t find the documentation on how to change the default Asterisk port. I’ve found old and outdated posts on adding bindport to sip.conf, but can’t find anything on what do with pjsip.conf (assuming that’s where I change the default port?).
PJSIP doesn’t have an automatic transport. It’s explicitly configured. If no port is specified then it uses the SIP protocol default defined port for the chosen protocol (UDP/TCP/TLS) but can always be overridden by specifying it on the bind option on the transport as part of the IP address, for example: