[sr-dev] [kamailio/kamailio] t_forward_nonack not decoding/unescaping URI (#2255)

Julien Chavanton notifications at github.com
Fri Apr 3 01:41:02 CEST 2020


quick look at the path header, I did test the first 5.x version, with the same result.

I will probably start to debug, looking at this, it seems like the escaping may be expected :

```
static int prepend_path(sip_msg_t* _m, str *user, path_param_t param,
                str *add_params)
{
        struct lump *l;
        char *prefix, *suffix, *cp, *dp;
        const char *proto_str;
        int prefix_len, suffix_len;
        struct hdr_field *hf;

        /* maximum possible length of suffix */
        suffix_len = sizeof(";lr;r2=on;received=sip::12345%3Btransport%3Dsctp;ob;>\r\n")
                        + IP_ADDR_MAX_STR_SIZE + 2 + (add_params ? add_params->len : 0) + 1;
```

I will try to dig it further shortly

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2255#issuecomment-608148779
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20200402/63018ffa/attachment-0001.html>


More information about the sr-dev mailing list