[OpenSIPS-Users] Replace part of Remote-Party-ID header

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Apr 4 16:30:56 UTC 2022

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


Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
OpenSIPS eBootcamp 23rd May - 3rd June 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
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20220404/00b12300/attachment.html>

More information about the Users mailing list