On Wed, Jun 21, 2023 at 6:26 AM mayamatakeshi <[email protected]>
wrote:

> I have not tested it but I think you could use
> {re.subst,expression}
> <https://www.kamailio.org/wiki/cookbooks/5.2.x/transformations#resubst_expression>
>

Sorry, actually, that link was for kamailio.
For opensips it is:
{re.subst,reg_exp}
<https://www.opensips.org/Documentation/Script-Tran-3-0#toc86>


> to create a variable with the value of the header with the desired field
> removed and then use append_hf to insert the variable as the modified
> header.
>
> On Tue, Jun 20, 2023 at 11:58 PM <[email protected]> wrote:
>
>> Hello mates,
>>
>>
>>
>> Sorry for sending my message several times. I need your help
>>
>> I want to remove a field from the headers PAI, Diversion and History
>> info.
>>
>>
>>
>> I can remove the whole header by loading the *sipmsgops* and the
>> function Remove_hd
>>
>> But i did not find a way how to remove a specefic field in the header
>> PAI for example.
>>
>>
>>
>> Could you please help ?
>>
>>
>>
>> Thank you
>>
>>
>>
>> Best regards
>>
>>
>>
>> Amel
>>
>>
>> _______________________________________________
>> 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

Reply via email to