Is it possible to configure Asterisk to associate an RTP stream with a certain call when it’s coming from an IP address that’s different from the media address negotiated in the SDP header?
The port on Asterisk the RTP is sent to is the one that’s in the SDP.
It’s because of a NAT issue on a VPN server, which needs fixing but meanwhile I am looking for a quick temporary solution.
Sometimes what happens is that on a call with a phone on VPN, the phone’s address that’s negotiated for RTP is it’s VPN address and Asterisk sends audio to it, but the return audio that’s flowing through the tun interface appears to be coming from the local machine the VPN server is running on, not the phone’s VPN address.
The RTP destination port is correct.