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