[SR-Users] Manipulation of request-line

Karsten Horsmann khorsmann at gmail.com
Tue Dec 7 22:15:36 CET 2021


Hi,


$ru = "sip:" + $rU + "@" + $td;

Or simple $ru = $tu;

could be the trick.

Kind regards
Karsten Horsmann

Mihovil Kolaric <mihovil.kolaric at gmail.com> 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 of the request-line. (i.e.
> sends "ACK <uri> SIP/2.0 \r\n" instead of "ACK <uri> SIP/2.0\r\n").
> Kamailio (as well as most SIP UAs) does not care about that error and
> successfully processes/forwards the request (also when using
> sanity_check()). But I also deal with a client that fails to parse that
> request. (Furthermore, wireshark's dissector fails to recognize such
> malformed messages as SIP, which makes debugging even harder).
>
> I tried to fix this issue using textops, but all functions I tried operate
> only on headers or message body, but do not seem to affect the request
> line.
> Is there any possibility to modify the request-line, or to replace it with
> a new one?
>
> Best Regards,
> Mihovil
> __________________________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20211207/4c0f5b02/attachment.htm>


More information about the sr-users mailing list