[SR-Users] Manipulation of request-line

Mihovil Kolaric mihovil.kolaric at gmail.com
Sun Dec 12 20:49:19 CET 2021


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 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/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20211212/3cb6c2ca/attachment.htm>


More information about the sr-users mailing list