<div dir="ltr"><div>Hi,</div><div><br></div><div>Thanks a lot, msg_set_buffer() does the trick!</div><div>(Sorry for the late respone, as I am using 5.4, I indeed need to use KEMI, which took me a while.)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
with the devel branch, you can try something like:<br>
<br>
msg_set_buffer("$msg(fline)\r\n$msg(hdrs)\r\n\r\n$msg(body)");<br>
<br>
You should do it before any change done to incoming request, otherwise<br>
place a msg_apply_changes().<br>
<br>
With stable version (5.5), I think msg_set_buffer() is available in KEMI<br>
exports only (textopsx module), so you can do some inline execution of<br>
javascript (app_jsdt), lua (app_lua), etc ...<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 08.12.21 14:02, Mihovil Kolaric wrote:<br>
> Hi,<br>
><br>
> unfortunately, Alex is right: manipulations ot the request-URI do not<br>
> seem to re-write the whole line, the malformed line-ending<br>
> (SIP/2.0<blank><CR><LF>) remains in the forwarded message.<br>
><br>
> __________________________________________________________<br>
> Kamailio - Users Mailing List - Non Commercial Discussions<br>
>   * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
> Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
> Edit mailing list options or unsubscribe:<br>
>   * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
-- <br>
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" rel="noreferrer" target="_blank">www.asipto.com</a><br>
<a href="http://www.twitter.com/miconda" rel="noreferrer" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">www.linkedin.com/in/miconda</a><br>
Kamailio Advanced Training - Online<br>
  Feb 21-24, 2022 (America Timezone)<br>
  * <a href="https://www.asipto.com/sw/kamailio-advanced-training-online/" rel="noreferrer" target="_blank">https://www.asipto.com/sw/kamailio-advanced-training-online/</a><br>
<br>
</blockquote></div></div>