<p dir="ltr">Just tested by changing the listening port from TLS to TCP (5061 to 5060) and registration occurs without any errors. This means something in the TLS connection is failing: maybe the record route URI? How do I set this anyway? </p>
<div class="gmail_quote">On 7 Jul 2015 05:16, "Nabeel" <<a href="mailto:nabeelshikder@gmail.com">nabeelshikder@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Also getting these errors in the same log; they may be related:<div><br></div><div><div>ERROR:core:tls_blocking_write: TLS send timeout (30000)</div></div><div><br></div><div><div>ERROR:core:tcp_send: failed to send</div><div>ERROR:tm:msg_send: tcp_send failed</div><div>ERROR:tm:t_forward_nonack: sending request failed</div></div><div><br></div><div><div>ERROR:core:tls_accept: New TLS connection from 87.xx.xxx.42:42997 failed to accept</div><div>ERROR:core:tls_accept: TLS error: (ret=-1, err=5, errno=32/Broken pipe):</div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 7 July 2015 at 04:31, Nabeel <span dir="ltr"><<a href="mailto:nabeelshikder@gmail.com" target="_blank">nabeelshikder@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I added a NAPTR record to my domain for TLS. OpenSIPS resolves this correctly and does the SRV lookup for the correct port, but then fails to register with the following error. Please advise how to fix.</div><div><div><br></div><div>DBG:core:tcp_read_req: last char=0x0A, parsed msg=#012REGISTER sip:<a href="http://server.mydomain.com" target="_blank">server.mydomain.com</a> SIP/2.0#015#012Via: SIP/2.0/TLS 10.174.254.93:37559;rport;branch=z9hG4bK78314#015#012Max-Forwards: 70#015#012To: <<a href="mailto:sip%3A%2B447479189410@server.mydomain.com" target="_blank">sip:+447479189410@server.mydomain.com</a>>#015#012From: <<a href="mailto:sip%3A%2B447479189410@server0.mydomain.com" target="_blank">sip:+447479189410@server0.mydomain.com</a>>;tag=z9hG4bK99091243#015#012Call-ID: <a href="http://791532298247@10.174.254.93#015%23012CSeq" target="_blank">791532298247@10.174.254.93#015#012CSeq</a>: 1 REGISTER#015#012Expires: 3600#015#012User-Agent: MyApp/1.3.0/SM-G900F#015#012Contact: <sip:+447479189410@10.174.254.93:37559;transport=tls>;reg-id=1;+sip.instance="<urn:uuid:d52851ce-0a00-421a-98fc-4bad71ce346c>"#015#012Supported: path, outbound#015#012Content-Length: 0</div></div><div><br></div><div><div>ERROR:core:tcpconn_add_alias: possible port hijack attempt</div><div>ERROR:core:tcpconn_add_alias: alias already present and points to another connection (39 : 5061 and 40 : 5061)</div><div>ERROR:core:receive_msg: tcp alias failed<br></div></div></div>
</blockquote></div><br></div>
</blockquote></div>