I assume you mean the remote media address. Why do you need to do it? If a service provider is documenting this, it is to allow you to configure firewalls properly; they will send the correct media address in the SDP.
Oh you meant i didn’t work in chan_sip either. It should work there, but that’s the extent of what I’ll state as I don’t support chan_sip. It changes the IP address we put in our SDP, it’s not for setting any remote information.
Can pjsip achieve this requirement? We are also considering upgrading our Asterisk (currently v13.38.3), will Asterisk support changing sip and sdp header information in dialplan in future versions? It would be even better if dialplan supports redis directly.
Asterisk is an open source project, it ultimately does what people contribute and make it do. I don’t know if anyone will contribute such a thing in the future.
Media address can’t be set in the dialplan with PJSIP.
It is not very easy to explain, it is caused by our somewhat complex (chaotic) network environment, there should be other solutions to bypass this problem, I will think about it again, thank you.