Respond to Contact port

I have a customer that sometimes sends an INVITE from another port than 5060, and expects that we send the response to the IP and port defined in the Contact header instead of the IP and port that we received it from.
Is there some way that I can configure Asterisk to do so?

The Asterisk version is 16.7.0, and we are using PJSIP

No, because that violates the SIP standard. If you disable force_rport you can have it send to the Via header, but you can’t configure responses to go to the Contact.

1 Like