<HTML><BODY>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 <sip:sipp@10.0.2.6:5060>;tag=1<br>To: sut <sip:79677777777@10.0.2.15:5060>;tag=4581SIPpTag015<br>Call-ID: 1-24303@10.0.2.6<br>CSeq: 1 INVITE<br>Record-Route:<sip:10.0.2.4:5070;lr;transport=sctp><br>Contact: <sip:10.0.2.4:5070><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 sip:79677777777@10.0.2.15:5060 SIP/2.0<br>Via: SIP/2.0/UDP 10.0.2.6:5060;branch=z9hG4bK-24303-1-4<br>From: sipp <sip:sipp@10.0.2.6:5060>;tag=1<br>To: sut <sip:79677777777@10.0.2.15:5060>;tag=4581SIPpTag015<br>Call-ID: 1-24303@10.0.2.6<br>CSeq: 1 ACK<br>Route: <sip:10.0.2.4:5070;lr;transport=sctp><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: 'sip:10.0.2.4:5070;lr;transport=sctp' 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: 'sip:10.0.2.4:5070;lr;transport=sctp'<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 sip:10.0.2.4:5070;lr;transport=sctp 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 <sip:sipp@10.0.2.6:5060>;tag=1<br>To: sut <sip:79677777777@10.0.2.15:5060>;tag=4581SIPpTag015<br>Call-ID: 1-24303@10.0.2.6<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;"><br><br></pre><br><br><br>-- <br>Oleg Podguyko</BODY></HTML>