<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hi, Rodrigo!<br>
<br>
Make sure you are calling the fix_nated_contact() function on 200
OK, otherwise OpenSIPS might try to send the ACK to whatever bogus
IP the client sets in the Contact header.<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 10/05/2017 03:12 PM, Rodrigo Pimenta
Carvalho wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CY4PR02MB232592D38952DD6526CCC5BAB5700@CY4PR02MB2325.namprd02.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;"
dir="ltr">
<p>Dear OpenSIPS users,</p>
<p><br>
</p>
<p>According to the OpenSIPS log, a callee answered a caller
with SIP OK.</p>
<p>Such SIP OK has the following contact:</p>
<p><br>
</p>
<p><span> Contact: "Group"
<a class="moz-txt-link-rfc2396E" href="mailto:sip:g1r2u3p4o5@127.0.0.1:40348;transport=TLS;ob"><sip:g1r2u3p4o5@127.0.0.1:40348;transport=TLS;ob></a>;+sip.ice</span><br>
</p>
<p><br>
</p>
<p>However, it seems that there is no available connection to
port 40348. That is, opensips cann't send any message to that
port.</p>
<p>So, after opensips relaying a SIP ACK to <span>g1r2u3p4o5</span>,
it caused the following error:</p>
<p><br>
</p>
<div>Jan 09 17:48:54 colibri-imx6 opensips[23115]: Jan 9
17:48:54 [23135] <a class="moz-txt-link-freetext" href="INFO:core:probe_max_sock_buff">INFO:core:probe_max_sock_buff</a>: using snd
buffer of 320 kb<br>
Jan 09 17:48:54 colibri-imx6 opensips[23115]: Jan 9 17:48:54
[23135] <a class="moz-txt-link-freetext" href="INFO:core:init_sock_keepalive">INFO:core:init_sock_keepalive</a>: TCP keepalive enabled
on socket 22<br>
Jan 09 17:48:54 colibri-imx6 opensips[23115]: Jan 9 17:48:54
[23135] ERROR:core:tcp_connect_blocking: poll error: flags 28
- 4 8 16 32<br>
Jan 09 17:48:55 colibri-imx6 opensips[23115]: Jan 9 17:48:54
[23135] ERROR:core:tcp_connect_blocking: failed to retrieve
SO_ERROR [server=127.0.0.1:40348] (111) Connection refused<br>
Jan 09 17:48:55 colibri-imx6 opensips[23115]: Jan 9 17:48:54
[23135] ERROR:proto_tls:tls_sync_connect: tcp_blocking_connect
failed<br>
Jan 09 17:48:55 colibri-imx6 opensips[23115]: Jan 9 17:48:54
[23135] ERROR:proto_tls:proto_tls_send: connect failed<br>
Jan 09 17:48:55 colibri-imx6 opensips[23115]: Jan 9 17:48:54
[23135] ERROR:core:msg_send: send() for proto 3 failed<br>
</div>
<p><br>
</p>
<p>What is happening here?</p>
<p>How can a peer lost its connection or lost connect to
opensips?</p>
<p>How to avoid this issue or recover from it?</p>
<p><br>
</p>
<p>I have no idea on what to do. Any hint will be very helpful!</p>
<p><br>
</p>
<p>Thanks a lot.<br>
</p>
<p><br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper"
style="font-family:Calibri,Arial,Helvetica,sans-serif;
font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: +55 35 3471 9200 RAMAL 979<br>
</div>
</font></div>
</div>
</div>
</div>
<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>