<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Oleg,<br>
<br>
If your OpenSIPS does interface switching (UDP <> SCTP),
there should be two RR headers in the outbound INVITE / 200 OK -
one RR describing the UDP interface, the second one describing the
SCTP interface.<br>
<br>
I see you have only one RR header :(. SO, do you disable the
"enable_double_rr" param in rr module ? or do you use the record_route_preset()
function ?<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS Summit 2019
<a class="moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2019Amsterdam/">https://www.opensips.org/events/Summit-2019Amsterdam/</a>
</pre>
<div class="moz-cite-prefix">On 04/25/2019 08:21 PM, Олег Подгуйко
via Users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1556212870.610903641@f378.i.mail.ru">
Hello!<br>
<br>
I am using opensips as a proxy for load balansing. It listens two
ports. Logically from one side it is SCTP port 5070 and from
another side is UDP port 5060.<br>
UAC from UDP side sends INVITE via UDP protocol. OpenSips accepts
it, checks it, gets the next sip address from dispatcher module
for this request, and sends INVITE via SCTP protocol to the next
SIP address. All are fine. From SCTP side I get 100, 180 and
finaly 200. All messages was got via SCTP protocol. 200 consists
record-route header <br>
<p><br>
SIP/2.0 200 OK<br>
Via: SIP/2.0/SCTP 10.0.2.15:5070;branch=z9hG4bKccbc.5617e394.0,
SIP/2.0/UDP 10.0.2.6:5060;branch=z9hG4bK-24303-1-0<br>
From: sipp <a class="moz-txt-link-rfc2396E" href="sip:sipp@10.0.2.6:5060"><sip:sipp@10.0.2.6:5060></a>;tag=1<br>
To: sut
<a class="moz-txt-link-rfc2396E" href="sip:79677777777@10.0.2.15:5060"><sip:79677777777@10.0.2.15:5060></a>;tag=4581SIPpTag015<br>
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:1-24303@10.0.2.6">1-24303@10.0.2.6</a><br>
CSeq: 1 INVITE<br>
Record-Route:<a class="moz-txt-link-rfc2396E" href="sip:10.0.2.4:5070;lr;transport=sctp"><sip:10.0.2.4:5070;lr;transport=sctp></a><br>
Contact: <a class="moz-txt-link-rfc2396E" href="sip:10.0.2.4:5070"><sip:10.0.2.4:5070></a><br>
Content-Length: 0</p>
<p>Opensips sends 200 responce to the UDP side.<br>
<br>
In fine opensips get ACK from UDP side which has ROUTE header<br>
<br>
</p>
<p>ACK <a class="moz-txt-link-freetext" href="sip:79677777777@10.0.2.15:5060">sip:79677777777@10.0.2.15:5060</a> SIP/2.0<br>
Via: SIP/2.0/UDP 10.0.2.6:5060;branch=z9hG4bK-24303-1-4<br>
From: sipp <a class="moz-txt-link-rfc2396E" href="sip:sipp@10.0.2.6:5060"><sip:sipp@10.0.2.6:5060></a>;tag=1<br>
To: sut
<a class="moz-txt-link-rfc2396E" href="sip:79677777777@10.0.2.15:5060"><sip:79677777777@10.0.2.15:5060></a>;tag=4581SIPpTag015<br>
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:1-24303@10.0.2.6">1-24303@10.0.2.6</a><br>
CSeq: 1 ACK<br>
Route: <a class="moz-txt-link-rfc2396E" href="sip:10.0.2.4:5070;lr;transport=sctp"><sip:10.0.2.4:5070;lr;transport=sctp></a><br>
Max-Forwards: 70<br>
Subject: Performance Test<br>
Content-Length: 0</p>
<p> <br>
<br>
Furthet the most interesting. This is a log<br>
<br>
</p>
<p>апр 25 12:14:18 OpenSips.server /usr/sbin/opensips[1213]:
DBG:uri:has_totag: totag found<br>
апр 25 12:14:18 OpenSips.server /usr/sbin/opensips[1213]:
DBG:core:parse_headers: flags=200<br>
апр 25 12:14:18 OpenSips.server /usr/sbin/opensips[1213]:
DBG:rr:is_preloaded: No<br>
апр 25 12:14:18 OpenSips.server /usr/sbin/opensips[1213]:
DBG:core:grep_sock_info: checking if host==us: 9==9 &&
[10.0.2.15] == [10.0.2.15]<br>
апр 25 12:14:18 OpenSips.server /usr/sbin/opensips[1213]:
DBG:core:grep_sock_info: checking if port 5060 matches port 5060<br>
апр 25 12:14:18 OpenSips.server /usr/sbin/opensips[1213]:
DBG:core:grep_sock_info: checking if host==us: 9==9 &&
[10.0.2.15] == [10.0.2.15]<br>
апр 25 12:14:18 OpenSips.server /usr/sbin/opensips[1213]:
DBG:core:grep_sock_info: checking if port 5060 matches port 5060<br>
апр 25 12:14:18 OpenSips.server /usr/sbin/opensips[1213]:
DBG:rr:after_strict: Next hop:
'<a class="moz-txt-link-freetext" href="sip:10.0.2.4:5070;lr;transport=sctp">sip:10.0.2.4:5070;lr;transport=sctp</a>' is loose router<br>
апр 25 12:14:18 OpenSips.server /usr/sbin/opensips[1213]:
DBG:core:parse_headers: flags=ffffffffffffffff<br>
апр 25 12:14:18 OpenSips.server /usr/sbin/opensips[1213]:
DBG:core:get_hdr_field: content_length=0<br>
апр 25 12:14:18 OpenSips.server /usr/sbin/opensips[1213]:
DBG:core:get_hdr_field: found end of header<br>
апр 25 12:14:18 OpenSips.server /usr/sbin/opensips[1213]:
DBG:rr:after_strict: The last route URI:
'<a class="moz-txt-link-freetext" href="sip:10.0.2.4:5070;lr;transport=sctp">sip:10.0.2.4:5070;lr;transport=sctp</a>'<br>
апр 25 12:14:18 OpenSips.server /usr/sbin/opensips[1213]:
DBG:rr:run_rr_callbacks: callback id 1 entered with
<lr;transport=sctp><br>
апр 25 12:14:18 OpenSips.server /usr/sbin/opensips[1213]:
DBG:dialog:dlg_onroute: Route param 'did' not found<br>
<br>
Opensips tryes to send this ACK to the SCTP side using UDP
protocol!!! source port it uses 5060 and remote port 5070<br>
Of course, such an ACK does not reach the addressee. And the
call does not complete successfully.<br>
<br>
</p>
<p>ACK <a class="moz-txt-link-freetext" href="sip:10.0.2.4:5070;lr;transport=sctp">sip:10.0.2.4:5070;lr;transport=sctp</a> SIP/2.0<br>
Via: SIP/2.0/UDP 10.0.2.15:5060;branch=z9hG4bKccbc.5617e394.2<br>
Via: SIP/2.0/UDP 10.0.2.6:5060;branch=z9hG4bK-24303-1-4<br>
From: sipp <a class="moz-txt-link-rfc2396E" href="sip:sipp@10.0.2.6:5060"><sip:sipp@10.0.2.6:5060></a>;tag=1<br>
To: sut
<a class="moz-txt-link-rfc2396E" href="sip:79677777777@10.0.2.15:5060"><sip:79677777777@10.0.2.15:5060></a>;tag=4581SIPpTag015<br>
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:1-24303@10.0.2.6">1-24303@10.0.2.6</a><br>
CSeq: 1 ACK<br>
Max-Forwards: 69<br>
Subject: Performance Test<br>
Content-Length: 0</p>
<p> Why opensips do not send via SCTP protocol? What I do wrong?</p>
<p><br>
<br>
</p>
<pre id="tw-target-text" class="tw-data-text tw-ta tw-text-medium" style="unicode-bidi: isolate; border: none; padding: 0px 0.14em 0px 0px; position: relative; margin-top: 0px; margin-bottom: 0px; resize: none; overflow: hidden; width: 275px; white-space: pre-wrap; overflow-wrap: break-word; color: #212121; height: 36px; font-size: 29px !important; line-height: 36px !important;" dir="ltr" data-placeholder="Перевод" data-fulltext="" data-mce-style="unicode-bidi: isolate; border: none; padding: 0px 0.14em 0px 0px; position: relative; margin-top: 0px; margin-bottom: 0px; resize: none; overflow: hidden; width: 275px; white-space: pre-wrap; overflow-wrap: break-word; color: #212121; height: 36px; font-size: 29px !important; line-height: 36px !important;">
</pre>
<br>
<br>
<br>
-- <br>
Oleg Podguyko
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>