<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>yeah i didn't use the same port 5060 for both tcp and tls, i switched between them for testing.</div><div><br></div><div>To be more clear</div><div>10.0.2.15;transport=tcp is the inbound RR when i use tcp<br></div><div>10.0.2.15;transport=tls is the inbound RR when i use tls<br></div><div><br></div><div>one in tcp is ok, but one in tls is not as per rfc3263#section-4.2, my tls uri in the RR will make the client route ACK/BYE to 5061</div><div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">If no port is<br> specified, it uses the default port for the particular transport<br> protocol</blockquote></div><div dir="ltr"><br></div>i just wanted to confirm if it's a minor kamailio bug, or i missed something as I also found your comment</div><div dir="ltr"><a href="https://lists.kamailio.org/pipermail/sr-users/2015-May/088129.html">https://lists.kamailio.org/pipermail/sr-users/2015-May/088129.html</a></div><div dir="ltr"><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The addresses in the headers should be those where kamailio<br>can receive traffic. If the port is 5060, it can be omitted, being the<br>default value for sip.</blockquote></pre><div dir="ltr"><br></div>Many thanks for your time, Daniel,</div><div dir="ltr"><br></div><div dir="ltr">rgds,<br class="gmail-Apple-interchange-newline"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>Loi Dang Thanh<br></div>Phone : +84. 774.735.448<br></div>Email : <a href="mailto:loi.dangthanh@gmail.com" target="_blank">loi.dangthanh@gmail.com</a><br></div></div></div></div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 1, 2019 at 3:45 PM Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p>Hello,</p>
<p>not sure I understood properly, but if you want to use port 5060
for both tcp and tls is not working. Better just use it for tls
only.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="gmail-m_-1229069373732761550moz-cite-prefix">On 29.03.19 03:26, Lợi Đặng wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi Joel, thanks for verification, it was ok to me
when using the default 5060 for udp/tcp with port omitted in the
RR, the calls should be routed properly.
<div>But it don't work if i use the same port 5060 for tls (i
know this is a bit weird, but i want to re-use the port due to
customer firewall restriction), the port is still omitted and
`ACK/BYE` routed wrongly to <b>MY_ADDR;transport=tls</b>
(5061).</div>
<div><br>
</div>
<div>I only want to make sure whether it is not able to
explicitly add 5060 port to the RR when using tls or i just
make it wrong with my configuration.</div>
<div><br>
</div>
<div>rgds,</div>
<div>
<div>
<div dir="ltr" class="gmail-m_-1229069373732761550gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div>Loi Dang Thanh<br>
</div>
Phone : +84. 774.735.448<br>
</div>
Email : <a href="mailto:loi.dangthanh@gmail.com" target="_blank">loi.dangthanh@gmail.com</a><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, Mar 28, 2019 at 10:19
PM Joel Serrano <<a href="mailto:joel@textplus.com" target="_blank">joel@textplus.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">By SIP definition if the port is the default
(5060 for udp/tcp, 5061 for tls) it's not mandatory, that's
why if you choose any other port you specifically see it in
the RR.
<div><br>
</div>
<div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, Mar 28, 2019 at
3:30 AM Lợi Đặng <<a href="mailto:loi.dangthanh@gmail.com" target="_blank">loi.dangthanh@gmail.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>
<div>Hi all, i was using kamailio
4.2.1 located in 2 networks</div>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">listen
= tcp:MY_ADDR:5060 advertise
MY_ADDR:5060<br>
listen = tls:MY_ADDR:5061 advertise
PUBLIC_NAT_ADDR:5061</blockquote>
<div><br>
</div>
<div>
<div>when the call made from the
inside network to out side, running
`record_route()` resulted in 2
Record-Route headers added
(enable_double_rr=1)</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Record-Route:
PUBLIC_NAT_ADDR:5061;transport=tls;lr<br>
Record-Route:
MY_ADDR;transport=tcp;lr</blockquote>
</div>
<div><br>
</div>
<div>
<div>That was totally fine omitting
the port in the first Record-Route
when using tcp (or udp) on the first
realm, but when i start switching to
tls, it caused trouble</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Record-Route:
PUBLIC_NAT_ADDR:5061;transport=tls;lr<br>
Record-Route:
MY_ADDR;transport=tls;lr</blockquote>
</div>
<div><br>
</div>
<div>
<div>The client is then told to send
ACK/BYE to `MY_ADDR;transport=tls`
located at `MY_ADDR:5061` as per
rfc3263, then the call would failed.</div>
</div>
<div><br>
</div>
<div>
<div>I had another try with
`record_route_preset("PUBLIC_NAT_ADDR:5061;transport=tls",
"MY_ADDR:5060;transport=tls");`, it
really did add what i want with
explicit 5060 port on RR, `ACK/BYE`
travel on the correct path, but
`loose_route()` only consumes the
local `Route` header (it should
consume 2). So my assumption is to
stick with `record_route()` function
to make `loose_route()` work
properly.</div>
</div>
<div><br>
</div>
<div>
<div>I tried using another port on the
local realm, e.g: 5062 and the port
is explicitly added to the
Record-Route header
`MY_ADDR:5062;transport=tls;lr`</div>
<div>So is `5060` couldn't be
explicitly added to the inbound
Record-Route, or i just missed
something?</div>
</div>
<div><br>
</div>
<div>
<div>Any help will be appreciated.</div>
<div><br>
</div>
<div>P/S: I also tried 4.4.7 and it
still omit my 5060 port in the RR.</div>
<div><br>
</div>
<div>rgds,</div>
</div>
<div>
<div dir="ltr" class="gmail-m_-1229069373732761550gmail-m_-8730375461263020956gmail-m_1449278207755631929gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div>Loi Dang Thanh<br>
</div>
Phone : +84. 774.735.448<br>
</div>
Email : <a href="mailto:loi.dangthanh@gmail.com" target="_blank">loi.dangthanh@gmail.com</a><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
<br>
<fieldset class="gmail-m_-1229069373732761550mimeAttachmentHeader"></fieldset>
<pre class="gmail-m_-1229069373732761550moz-quote-pre">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="gmail-m_-1229069373732761550moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a class="gmail-m_-1229069373732761550moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="gmail-m_-1229069373732761550moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="gmail-m_-1229069373732761550moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a class="gmail-m_-1229069373732761550moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="gmail-m_-1229069373732761550moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 6-8, 2019 -- <a class="gmail-m_-1229069373732761550moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
</div>
</blockquote></div>