Force subsequent requests to be sent to source port of invite

I mean is there a setting for my chansip endpoint that lets me send or not send rport in the via header and set the port?

With nat=yes, are RTP packets sent to the source IP address/port of the IP packet or to the IP/port information that’s in the SDP?

“nat=yes” is an old way but it includes the “comedia” option, which is documented as such:

;   nat = comedia           ; Send media to the port Asterisk received it from regardless
;                           ; of where the SDP says to send it.

Send media only to the port Asterisk received it from or also to the IP address?

Both. Sending it to only the port would be useless since it is likely the IP address would also be wrong in SDP.

So, with nat=yes, the information in the via and SDP headers of incoming invites is ignored, responses are sent to the IP/port of the packet, but subsequent requests are still sent to the IP/port that is in the contact header?

No, with “nat=yes” all information provided in the SIP signaling is ignored and the actual source is used, including for subsequent requests.

1 Like