<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>I think the A query you see is done by the part related to doing
OPTIONS keepalive -- I haven't developed that part, but if I
remember correctly I saw something like that in the code. Maybe
you can disable keepalive via the mod param and see if the query
is still done.</p>
<p>For routing, dispatcher is not doing any DNS query, just sets the
R-URI or D-URI and then tm is in charge of resolving the
destination address, and there should be from NAPTR down, if no
transport or port is specified.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 14.11.18 17:25, José Seabra wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAEVZRWsnkKWDikcWnFjhLvjKwhedeq1xq7vwvWCGsq=j2nBuLA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">Hello all,
<div>I'm trying to use a naptr address as a dispatcher
destination and i'm facing some issues here.</div>
<div><br>
</div>
<div>When i configure a naptr address in dispatcher table,
like:</div>
</div>
<blockquote style="margin:0px 0px 0px
40px;border:none;padding:0px">
<div dir="ltr">
<div><i>1:1:sip\:proxy-registrar-ci1.fuze.domain:0:0:'':''</i></div>
<div><i><br>
</i></div>
</div>
</blockquote>
<div dir="ltr">
<div>I see kamailio making a dns query of type A, but since
that this name doesn't have any A record configured in
dns, kamailio didn't get any positive reply from it.</div>
<div><br>
</div>
<div>Should't kamailio make dns query by this order? </div>
<div>
<ol>
<li>NAPTR<br>
</li>
<li>SRV <br>
</li>
<li>A<br>
</li>
</ol>
</div>
<div><br>
</div>
<div>I noticed also that if the name configured in
dispatcher table is resolved successfully with A record
from dns, then kamailio tries to make a query to NAPTR and
then SRV services for the exactly same name used for query
previously done(type A), but only if it gets a positive
answer from dns to the A type query.</div>
<div><br>
</div>
<div>I'm using kamailio version 5.1.0 with the following dns
parameters configured:</div>
<div><br>
</div>
<div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;line-height:18px;white-space:pre"><div><span style="color:rgb(106,153,85)">####### DNS Parameters #########</span></div><div>dns = <span style="color:rgb(86,156,214)">no</span></div><div>rev_dns = <span style="color:rgb(86,156,214)">no</span></div><div>dns_try_ipv6 = <span style="color:rgb(86,156,214)">no</span></div><div>dns_retr_time = <span style="color:rgb(181,206,168)">1</span></div><div>dns_retr_no = <span style="color:rgb(181,206,168)">1</span></div><div>dns_cache_del_nonexp = <span style="color:rgb(86,156,214)">no</span></div><div>dns_cache_flags = <span style="color:rgb(181,206,168)">1</span></div><div>dns_cache_gc_interval = <span style="color:rgb(181,206,168)">120</span></div><div>dns_cache_init = <span style="color:rgb(181,206,168)">1</span></div><div>dns_cache_mem = <span style="color:rgb(181,206,168)">1000</span></div><div>dns_cache_negative_ttl = <span style="color:rgb(181,206,168)">60</span></div><div>dns_try_naptr = <span style="color:rgb(86,156,214)">yes</span></div><div>use_dns_cache = <span style="color:rgb(86,156,214)">on</span></div><div><span style="color:rgb(106,153,85)">use_dns_failover = on</span></div></div>
<div><span style="background-color:rgb(30,30,30);color:rgb(212,212,212);font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;white-space:pre">dns_srv_lb </span><span style="background-color:rgb(30,30,30);color:rgb(212,212,212);font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;white-space:pre">=</span><span style="background-color:rgb(30,30,30);color:rgb(212,212,212);font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;white-space:pre"> </span><span style="background-color:rgb(30,30,30);font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;white-space:pre"><font color="#569cd6">yes</font></span></div>
<div> <br clear="all">
<div>Is there something wrongly configured here that can
make kamailio behaves like that?</div>
<div><br>
</div>
<div>Thank you.</div>
<div>Regards</div>
-- <br>
<div dir="ltr" class="gmail_signature">Cumprimentos
<div>José Seabra</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a>
Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a></pre>
</body>
</html>