[OpenSIPS-Users] Remove a field from the header PAI Diversion and History info - Opensips2.4 and 3.3

mayamatakeshi mayamatakeshi at gmail.com
Tue Jun 20 21:28:15 UTC 2023


On Wed, Jun 21, 2023 at 6:26 AM mayamatakeshi <mayamatakeshi at gmail.com>
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 <amel.guesmi at sofrecom.com> 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
>> 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/20230621/05592955/attachment-0001.html>


More information about the Users mailing list