<p></p>
<p>quick look at the path header, I did test the first 5.x version, with the same result.</p>
<p>I will probably start to debug, looking at this, it seems like the escaping may be expected :</p>
<pre><code>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;
</code></pre>
<p>I will try to dig it further shortly</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2255#issuecomment-608148779">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZONY4OZJMZD6LI4YUTRKUPA5ANCNFSM4LOXJCFA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZN4MJ3XHTDBWCT6563RKUPA5A5CNFSM4LOXJCFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEQ7Z2KY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2255#issuecomment-608148779",
"url": "https://github.com/kamailio/kamailio/issues/2255#issuecomment-608148779",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>