On 28/05/2024 23.09, QQ Q wrote:
> using kamailio, I can use dns_query() to resolve the domain name to
> an ipv4 address. Is it possible to replace c=lines in
> rtpengine_offer() or rtpengine_answer()?
You can probably use sdpops or textops to do a simple text replacement
in the SDP before passing it to rtpengine.
Another option is to put the address as `received-from=x.x.x.x` into the
flags and also set the `SIP-source-address` flag. Although it's possible
that the SDP would be rejected anyway as the c= line couldn't be parsed.
Cheers