Re: [SR-Users] Manipulation of request-line

2021-12-12 Thread Mihovil Kolaric
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

Re: [SR-Users] Manipulation of request-line

2021-12-08 Thread Daniel-Constantin Mierla
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 e

Re: [SR-Users] Manipulation of request-line

2021-12-08 Thread Mihovil Kolaric
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) remains in the forwarded message. __ Kamailio - Users Mailing List - Non Commercial Discussions *

Re: [SR-Users] Manipulation of request-line

2021-12-08 Thread Karsten Horsmann
Hi Alex, my hope was that this would write the whole line then. Didn't test that. Am Di., 7. Dez. 2021 um 23:19 Uhr schrieb Alex Balashov < abalas...@evaristesys.com>: > That will manipulate the request URI, but not the request line. > > — > Sent from mobile, with due apologies for brevity and e

Re: [SR-Users] Manipulation of request-line

2021-12-07 Thread Alex Balashov
That will manipulate the request URI, but not the request line. — Sent from mobile, with due apologies for brevity and errors. > On Dec 7, 2021, at 4:16 PM, Karsten Horsmann wrote: > __ Kamailio - Users Mailing List - Non Commercial Discu

Re: [SR-Users] Manipulation of request-line

2021-12-07 Thread Karsten Horsmann
Hi, $ru = "sip:" + $rU + "@" + $td; Or simple $ru = $tu; could be the trick. Kind regards Karsten Horsmann Mihovil Kolaric schrieb am Di., 7. Dez. 2021, 20:18: > Hi, > > I have an issue with a SIP-client, that occasionally puts a blank between > the version SIP/2.0 and the CRLF at the and o

[SR-Users] Manipulation of request-line

2021-12-07 Thread Mihovil Kolaric
Hi, I have an issue with a SIP-client, that occasionally puts a blank between the version SIP/2.0 and the CRLF at the and of the request-line. (i.e. sends "ACK SIP/2.0 \r\n" instead of "ACK SIP/2.0\r\n"). Kamailio (as well as most SIP UAs) does not care about that error and successfully processe