<html><head></head><body>You could do <br>```<br>set_body($rb+"\r\na=prime:20", $cT);<br>```<br>Not sure how to do it of you want to add the line in the middle of the body though.<br><br><div class="gmail_quote">On 24 June 2022 9:58:49 am UTC, "Benoît Panizzon" <benoit.panizzon@imp.ch> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre dir="auto" class="k9mail">Hi Gang<br><br>Next question.<br><br>I have some broken CPE which do not set a=ptime despite using 20ms which<br>then causes the call to get rejected in certain destinations, because<br>ptime header is missing.<br><br>So I would like to match the user-agents in question and add back<br>a=ptime:20<br><br>Google searches found an user with the exact same problem almost 10<br>years ago and Daniel replying that indeed a function to add a body line<br>would be handy.<br><br><a href="https://www.kamailio.org/docs/modules/devel/modules/textops.html">https://www.kamailio.org/docs/modules/devel/modules/textops.html</a><br><br>How could this be accomplished? I don't see a add_body_line or other<br>function which does not 'replace' a body line.<br><br><div class="k9mail-signature">-- <br>Mit freundlichen Grüssen<br><br>-Benoît Panizzon- @ HomeOffice und normal erreichbar</div></pre></blockquote></div><div style='white-space: pre-wrap'><div class='k9mail-signature'>-- <br>Sent from my Android device with K-9 Mail. Please excuse my brevity.</div></div></body></html>