Trunk custom port

I am migrating our current pbx to version 17. We have a fair amount of soft phone clients that use port 5160 but we use 5060 for the trunk to our provider. I see I can set port 5060 on the trunk still but that doesn’t appear to work properly unless I setup a entry in pjsip.transports_custom.conf to listen on UDP 5060.

Would that be a correct way to go for our situation? I also did not configure anything in pjsip.endpoint_custom_post.conf and did not experience any issues with inbound or outbound calls. I am wondering if this a necessary piece for us as long as the 5060 is enabled for the trunk to use?

Looking at my v16 config, I just defined this sort of thing in the PJSIP Settings for the Trunk. Like below. I don’t recall having to manually edit any of the conf files to get the trunk connected.

Yep, and we defined port 5060 there. I see traffic going out on 5060 but it seems likely since pjsip is only supported in newer versions of asterisk and I prefer to keep it defaulted to port 5160 that unless I am listening on 5060, I don’t get a proper connection to the provider defined in the trunk. I can only get it to listen on 5060 by defining it in that custom pjsip file.

On our test server it appears to be working just fine with two different providers defined on different trunks. I am not seeing any issues calling out or calling in to either DID. I think I have pretty much answered my own previous question but just wanted to know if anybody was aware of issues with this configuration.