<div dir="ltr"><div>I have not tested it but I think you could use </div><div><a href="https://www.kamailio.org/wiki/cookbooks/5.2.x/transformations#resubst_expression">{re.subst,expression}</a><br></div><div>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.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 20, 2023 at 11:58 PM <<a href="mailto:amel.guesmi@sofrecom.com">amel.guesmi@sofrecom.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-433312331046126714">
<div lang="FR" style="overflow-wrap: break-word;">
<div class="m_-433312331046126714WordSection1">
<p class="MsoNormal"><span style="font-family:Cambria,serif;color:rgb(0,32,96)">Hello mates,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Cambria,serif;color:rgb(0,32,96)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:Cambria,serif;color:rgb(0,32,96)">Sorry for sending my message several times. I need your help
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Cambria,serif;color:rgb(0,32,96)">I want to remove a field from the header</span><span style="font-family:Cambria,serif">s PAI, Diversion and History info.<span style="color:rgb(0,32,96)"><u></u><u></u></span></span></p>
<p class="MsoNormal"><span style="font-family:Cambria,serif;color:rgb(0,32,96)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:Cambria,serif;color:rgb(0,32,96)">I can remove the whole header by loading the
<b>sipmsgops</b> and the function Remove_hd <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Cambria,serif;color:rgb(0,32,96)">But i did not find a way how to remove a specefic field in
</span><span style="font-family:Cambria,serif">the header PAI for example<span style="color:rgb(0,32,96)">.<u></u><u></u></span></span></p>
<p class="MsoNormal"><span style="font-family:Cambria,serif;color:rgb(0,32,96)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:Cambria,serif;color:rgb(0,32,96)">Could you please help ?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Cambria,serif;color:rgb(0,32,96)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:Cambria,serif;color:rgb(0,32,96)">Thank you
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Cambria,serif;color:rgb(0,32,96)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:Cambria,serif;color:rgb(0,32,96)">Best regards<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Cambria,serif;color:rgb(0,32,96)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:Cambria,serif;color:rgb(0,32,96)">Amel<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></blockquote></div></div>