<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Nabeel,<div class=""><br class=""></div><div class="">You may find this issue useful:&nbsp;<a href="https://github.com/OpenSIPS/opensips/issues/420" class="">https://github.com/OpenSIPS/opensips/issues/420</a></div><div class=""><br class=""></div><div class="">Jarrod</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 6, 2015, at 7:49 AM, Nabeel &lt;<a href="mailto:nabeelshikder@gmail.com" class="">nabeelshikder@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><p dir="ltr" class="">The URI it seems to be resolving is "sip:<a href="http://mydomain.com/" class="">mydomain.com</a>" (from the log):</p><p dir="ltr" class="">Jul&nbsp; 6 10:27:20 server0 /usr/local/sbin/opensips[1731]: DBG:core:parse_msg:&nbsp; uri:&nbsp;&nbsp;&nbsp;&nbsp; &lt;sip:<a href="http://mydomain.com/" class="">mydomain.com</a>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p><p dir="ltr" class="">Jul&nbsp; 6 10:27:20 server0 /usr/local/sbin/opensips[1731]: DBG:core:parse_to: display={}, ruri={<a href="mailto:sip%3A%2B447479189410@mydomain.com" class="">sip:+447479189410@mydomain.com</a>}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Jul&nbsp; 6 10:27:20 server0 /usr/local/sbin/opensips[1731]: DBG:core:get_hdr_field: &lt;To&gt; [38]; uri=[<a href="mailto:sip%3A%2B447479189410@mydomain.com" class="">sip:+447479189410@mydomain.com</a>]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p><p dir="ltr" class="">I think the routing URI should be "sip:<a href="http://mydomain.com/" class="">mydomain.com</a>;transport=tls".&nbsp; Please let me know how I can specify the URI for TLS in OpenSIPS.<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br class="">
I have an SRV record at my domain for TLS, but not a NAPTR record.&nbsp;&nbsp; In the log below,&nbsp; OpenSIPS first looks for NAPTR record, doesn't find it, then looks for SRV record, but it is for UDP so it fails:</p><p dir="ltr" class="">Jul&nbsp; 6 07:42:14 server0 /usr/local/sbin/opensips[1731]: DBG:core:mk_proxy: doing DNS lookup...<br class="">
Jul&nbsp; 6 07:42:14 server0 /usr/local/sbin/opensips[1731]: DBG:core:sip_resolvehost: no port, no proto -&gt; do NAPTR lookup!<br class="">
Jul&nbsp; 6 07:42:14 server0 /usr/local/sbin/opensips[1731]: DBG:core:get_record: lookup(<a href="http://mydomain.com/" class="">mydomain.com</a>, 35) failed<br class="">
Jul&nbsp; 6 07:42:14 server0 /usr/local/sbin/opensips[1731]: DBG:core:sip_resolvehost: no valid NAPTR record found for <a href="http://mydomain.com/" class="">mydomain.com</a>, trying direct SRV lookup...<br class="">
Jul&nbsp; 6 07:42:14 server0 /usr/local/sbin/opensips[1731]: DBG:core:get_record: lookup(_sip._<a href="http://udp.mydomain.com/" class="">udp.mydomain.com</a>, 33) failed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Jul&nbsp; 6 07:42:14 server0 /usr/local/sbin/opensips[1731]: DBG:core:sip_resolvehost: no valid SRV record found for _sip._<a href="http://udp.mydomain.com/" class="">udp.mydomain.com</a>, trying A record lookup...<br class="">
Jul&nbsp; 6 07:42:14 server0 /usr/local/sbin/opensips[1731]: ERROR:tm:update_uac_dst: failed to fwd to af 2, proto 1&nbsp; (no corresponding listening socket)</p>
<div class="gmail_quote">On 6 Jul 2015 09:34, "Bogdan-Andrei Iancu" &lt;<a href="mailto:bogdan@opensips.org" class="">bogdan@opensips.org</a>&gt; wrote:<br type="attribution" class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF" class="">
    <tt class="">Hi,<br class="">
      <br class="">
      What is the complete SIP URI that OpenSIPS tries to resolve ? What
      kind of query (NATPR , SRV, AAA) and the query string depends on
      the RURI you have.<br class="">
      <br class="">
      Regards,<br class="">
    </tt>
    <pre cols="72" class="">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com/" target="_blank" class="">http://www.opensips-solutions.com</a></pre>
    <div class="">On 05.07.2015 09:36, Nabeel wrote:<br class="">
    </div>
    <blockquote type="cite" class="">
      <div dir="ltr" class="">
        <div class="">I'm running OpenSIPS with TLS support compiled and enabled.
          &nbsp; The first SRV record OpenSIPS searches for when connecting
          is &nbsp;_sip._udp. (as shown below). &nbsp;&nbsp;</div>
        <div class=""><br class="">
        </div>
        <div class="">It should be _sips._tcp.&nbsp; How can this be fixed?</div>
        <div class=""><br class="">
        </div>
        <div class=""><br class="">
        </div>
        <div class="">DBG:core:get_record: lookup(_sip._<a href="http://udp.domain.com/" target="_blank" class="">udp.domain.com</a>, 33) failed</div>
        <div class=""><br class="">
        </div>
      </div>
      <br class="">
      <fieldset class=""></fieldset>
      <br class="">
      <pre class="">_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank" class="">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" class="">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br class="">
  </div>

</blockquote></div>
_______________________________________________<br class="">Users mailing list<br class=""><a href="mailto:Users@lists.opensips.org" class="">Users@lists.opensips.org</a><br class="">http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br class=""></div></blockquote></div><br class=""></div></body></html>