[SR-Users] Manipulation of request-line

Daniel-Constantin Mierla miconda at gmail.com
Wed Dec 8 14:52:54 CET 2021


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 at lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
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)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/




More information about the sr-users mailing list