Hi Ahron,
The easiest way is to extract the whole RPID hdr body via
$hdr(Remote-Party-Id) and run a regexp [1] on it to replace the
`privacy=full` with `privacy=off` textually.
After replace the old value with the new one by using the remove_hf()
and append_hf() functions.
[1] https://www.opensips.org/Documentation/Script-Tran-3-2#re.subst
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
https://www.opensips-solutions.com
OpenSIPS eBootcamp 23rd May - 3rd June 2022
https://opensips.org/training/OpenSIPS_eBootcamp_2022/
On 4/4/22 1:55 AM, Ahron Greenberg wrote:
Hi all,
How would I replace just the privacy value of the RPID header?
Ahron Greenberg
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users