<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>do you add the route header content manually? Because there is a
r2=on but there is a single Route header. The r2=on means that the
kamailio added two Record-Route (and thus there have to be 2 Route
headers) and it will consume 2 of them. So, just remove r2=on if
that is the case.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 05.03.21 16:36, Ilie Soltanici
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAJQ6-U0b3ENGUaKbcfzBE4a80-_JMKHmcFO46ZkfWwMRV6bN-g@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hello,<br>
<div><br>
</div>
<div>I have a strange issue here with the Route header not been
respected by the Kamailio server.</div>
<div><br>
</div>
<div>I'm getting the INVITE from the SBC-1, adding my own RR
header (SBC-2), and send it to the SBC-3</div>
<div><br>
</div>
<div>This is the Invite I'm sending outside to the SBC-3 Proxy.</div>
<div><br>
</div>
<div>```</div>
<div>INVITE <a href="http://sip:+123456789@192.168.1.1:5060"
moz-do-not-send="true">sip:+123456789@192.168.1.1:5060</a>
SIP/2.0<br>
Record-Route:
<a class="moz-txt-link-rfc2396E" href="sip:SBC-2:5067;transport=tls;r2=on;ftag=as2b53df6f;lr"><sip:SBC-2:5067;transport=tls;r2=on;ftag=as2b53df6f;lr></a><br>
Record-Route: <a class="moz-txt-link-rfc2396E" href="sip:SBC-1;ftag=as2b53df6f;lr"><sip:SBC-1;ftag=as2b53df6f;lr></a><br>
</div>
<div>```</div>
<div><br>
</div>
<div>I'm getting back 200OK with mirrored RR, the call is
established successfully.</div>
<div><br>
</div>
<div>But, the problem is with the BYE message coming from the
SBC-3:</div>
<div><br>
</div>
<div>```</div>
<div>BYE <a href="http://sip:+123456789@192.168.1.2:5060"
moz-do-not-send="true">sip:+123456789@192.168.1.2:5060</a>
SIP/2.0<br>
ROUTE:
<a class="moz-txt-link-rfc2396E" href="sip:SBC-2:5067;transport=tls;r2=on;ftag=as2b53df6f;lr"><sip:SBC-2:5067;transport=tls;r2=on;ftag=as2b53df6f;lr></a>,<a class="moz-txt-link-rfc2396E" href="sip:SBC-1;ftag=as2b53df6f;lr"><sip:SBC-1;ftag=as2b53df6f;lr></a><br>
</div>
<div>```</div>
<div><br>
</div>
<div>There are 2 routes within a single header. Afaik,
loose_function should remove his own Route header (SBC-2) and
forward the message to the next Route (SBC-1), or to the URI
if there are not other Routes. But, in my case, for
some reason Kamailio on SBC-2 is sending the request directly
to the URI, bypassing the SBC-1. </div>
<div><br>
</div>
<div>In the logs I'm getting the following errors:</div>
<div><br>
</div>
<div><b>rr_do_force_send_socket(): no socket found to match
second RR (<a class="moz-txt-link-freetext" href="sip:SBC-1">sip:SBC-1</a>)<br>
</b></div>
<div><b>rr_do_force_send_socket(): second RR uri is not myself
(<a class="moz-txt-link-freetext" href="sip:SBC-1">sip:SBC-1</a>)</b><br>
</div>
<div><b><br>
</b></div>
<div>To enforce the socket I was trying to use 'sn=interface',
then I'm not getting anymore this error - but still, Kamailio
sends the message directly to the URI, instead of SBC-1. </div>
<div>Is there anything wrong with my config, or I am missing
something with the Route headers?</div>
<div><br>
</div>
<div>Kamailio Version: version: kamailio 5.4.4 (x86_64/linux)
bdf4e0</div>
<div><br>
</div>
<div>Thank you.</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
</body>
</html>