I’m running Asterisk 13.9.1. I’ve configured chan_pjsip to register a user with an external SIP server (using TLS), and to reregister periodically thereafter. I’m seeing the reregistrations being sent out on different ports to the original registration. Is this expected behaviour?
Incoming calls request from remote endpoints come in on the registered port.
If a call is initated just prior to a reregistration then up to the reregistration SIP INFO/UPDATE call session pkts. from the other endpoint successfully reach Asterisk and are successfully processed. But after the reregistration (because the port has changed) they do not. Instead 477 is returned to the endpoint from the SIP server.
So can I force the reregistration to go out on the same port (if so how?). Or should this be handled via some other means?