<p></p>
<p>I concluded that the URI in the route should be escaped automatically by <code>t_relay()</code>.</p>
<p>But t_relay / t_forward_nonack is not unescaping the transport and failing with :</p>
<pre><code>4(34) ERROR: tm [ut.h:245]: uri2dst2(): bad_uri: sip:247.25.169.51:52307%3Btransport%3Dtls
4(34) ERROR: tm [t_fwd.c:1728]: t_forward_nonack(): failure to add branches
</code></pre>
<pre><code>OPTIONS sip:143146457@147.175.169.51:59843;transport=TCP;ob SIP/2.0.
Max-Forwards: 20.
Record-Route: <sip:137.15.81.151;transport=tcp;r2=on;lr>.
Record-Route: <sip:137.15.81.151;r2=on;lr>.
Via: SIP/2.0/TCP 137.15.81.151;branch=z9hG4bK8c0f.3cf10122ac1fcfef5235efdcf33063e6.0.
Via: SIP/2.0/UDP 52.40.141.109:5060;branch=z9hG4bK6096674.
Route: <sip:137.15.81.151;lr;received=sip:147.175.169.51:59843%3Btransport%3Dtcp>.
From: sip:ping@invalid;tag=uloc-5e3e08d7-1c-fb94099-a8e0dba6-897d7be9.
To: sip:143146457@147.175.169.51:59843;transport=TCP;ob.
Call-ID: cb1d2386-8cf283b9-46be071@0.0.0.0.
CSeq: 1 OPTIONS.
Content-Length: 0.
Max-Forward: 10.
</code></pre>

<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-601274266">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJJSR2LKTIRCPNUKXDRIJBCDANCNFSM4LOXJCFA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZPU3Y4L3EWWOXZXBCTRIJBCDA5CNFSM4LOXJCFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEPLLPGQ.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-601274266",
"url": "https://github.com/kamailio/kamailio/issues/2255#issuecomment-601274266",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>