<div dir="ltr">Hi,<div>if you want failover support, you need to have a couple of core dns parameters enabled:</div><div><a href="https://www.kamailio.org/wiki/cookbooks/5.2.x/core#use_dns_cache">https://www.kamailio.org/wiki/cookbooks/5.2.x/core#use_dns_cache</a><br></div><div><br></div><div>and </div><div><br></div><div><a href="https://www.kamailio.org/wiki/cookbooks/5.2.x/core#use_dns_failover">https://www.kamailio.org/wiki/cookbooks/5.2.x/core#use_dns_failover</a> <br></div><div><br></div><div>The latter defaults to off.</div><div><br></div><div>Cheers,</div><div><br></div><div>Federico</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 6, 2019 at 10:10 PM JR Richardson <<a href="mailto:jmr.richardson@gmail.com">jmr.richardson@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey All,<br>
<br>
I'm in the lab testing kamailio 5.2 with DNS SRV records. The scenario<br>
is simple, using dispatcher with hard coded IP URIs<br>
[sip:<a href="http://10.10.10.10:5060" rel="noreferrer" target="_blank">10.10.10.10:5060</a>] and also a DNS name URI [sip:<a href="http://sip.domain.com" rel="noreferrer" target="_blank">sip.domain.com</a>].<br>
There are 2 SRV servers.<br>
<br>
The DNS SRV records are setup and resolving OK, during startup,<br>
kamailio list the DNS name in the dispatcher list.<br>
<br>
During a call scenario, when the dispatcher selects the DNS name URI<br>
for the next destination, the TM module takes over, resolves the<br>
_sip._<a href="http://udp.sip.domain.com" rel="noreferrer" target="_blank">udp.sip.domain.com</a> for both SRV records OK and sends the call to<br>
the first SRV server in the list. But if I take the first SRV server<br>
offline, make another call, the TM module does not route to the second<br>
SRV server until the DNS record timeout is reached, in my lab was set<br>
for 300 seconds. I decreased the DNS SRV record TTL down to 5 seconds<br>
with same results above, but 5 seconds lapse when TM routes call to<br>
next SRV server.<br>
<br>
I think this is working as expected but not sure if this is by design<br>
so my question is, should the TM module route to another SRV server in<br>
the list in the event of a no response timeout or send the transaction<br>
back to the dispatcher to select another target?<br>
<br>
Should I play around with the TM Module parameter<br>
"max_noninv_lifetime" to get quicker results or it is better to have<br>
DNS SRV record TTL set really low?<br>
<br>
Thanks.<br>
<br>
JR<br>
-- <br>
JR Richardson<br>
Engineering for the Masses<br>
Chasing the Azeotrope<br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>