<div dir="ltr">It was the port in the LCR table! You're the man! Thanks so much for your help.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 23, 2017 at 12:45 AM, Carsten Bock <span dir="ltr"><<a href="mailto:carsten@ng-voice.com" target="_blank">carsten@ng-voice.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
can you try the sip-dig command on that particular domain?<br>
If you set that domain in script or from a module (e.g. Dispatcher),<br>
don't set a port. According to RFC 3263, the DNS-records are treated<br>
differently, if no port is set (e.g. "<a href="http://redacted.hostname.here.com:5060" rel="noreferrer" target="_blank">redacted.hostname.here.com:<wbr>5060</a>"<br>
will produce a different result than "<a href="http://redacted.hostname.here.com" rel="noreferrer" target="_blank">redacted.hostname.here.com</a>").<br>
I've checked the compliance of Kamailio with RFC 3263 in the past, as<br>
DNS-Failover is mandatory for IMS.<br>
<br>
I would find it rather strange, if it should work correct in all of<br>
our deployments and not in yours.<br>
<br>
Thanks,<br>
Carsten<br>
<div class="HOEnZb"><div class="h5"><br>
2017-01-20 17:47 GMT+01:00 Jeremy Gadd <<a href="mailto:jeremygadd@gmail.com">jeremygadd@gmail.com</a>>:<br>
> Thanks for the response!<br>
><br>
> DNS lookups work in Kamailio as long as use_dns_failover is set to "off."<br>
> It's only when the failover is enabled that they break. I think this means<br>
> it's not a DNS issue, but something in Kamailio.<br>
><br>
> I should mention we're pointing to Verizon's services with many many<br>
> thousands of customers, so it's unlikely to be misconfigured DNS (unless<br>
> it's something local that only breaks when use_dns_failover is enabled?)<br>
><br>
> On Fri, Jan 20, 2017 at 12:37 AM, Carsten Bock <<a href="mailto:carsten@ng-voice.com">carsten@ng-voice.com</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> we have the following settings and those work fine for us (Kamailio 4<br>
>> and later):<br>
>><br>
>> # Do SRV-Loadbalancing:<br>
>> dns_srv_lb=yes<br>
>> # Always prefer IPv6:<br>
>> dns_try_ipv6=yes<br>
>> # DNS-Based failover<br>
>> use_dns_failover=yes<br>
>> # Query NAPTR-Records as well (we use NAPTR, so the client can detect<br>
>> the outbound Proxy (P-CSCF), but internally we only use only<br>
>> SRV-records)<br>
>> dns_try_naptr=no<br>
>><br>
>> Sounds to me, like a DNS problem, not a Kamailio problem.<br>
>><br>
>> In our DNS Zone, we have the following, for example:<br>
>><br>
>> wt                      1D IN A         84.46.93.82<br>
>> wt                      1D IN A         84.46.93.84<br>
>> wt-1            1D IN A         84.46.93.82<br>
>> wt-2            1D IN A         84.46.93.84<br>
>> wt              1D IN NAPTR 10 10 "s" "SIP+D2U"         ""<br>
>> _sip._udp.wt<br>
>><br>
>> _sip._udp.wt    1D SRV 10 1 5060 wt-1<br>
>> _sip._udp.wt    1D SRV 20 1 5060 wt-2<br>
>><br>
>> On Debian/Ubuntu, you can verify this with Sofia-SIP (apt-get install<br>
>> sofia-sip-bin):<br>
>><br>
>> carsten@carsten-HP-EliteBook-<wbr>840-G3:~$ sip-dig <a href="http://wt.ng-voice.com" rel="noreferrer" target="_blank">wt.ng-voice.com</a><br>
>> 1 1.000 udp 5060 84.46.93.82<br>
>> 2 1.000 udp 5060 84.46.93.84<br>
>><br>
>> Thanks,<br>
>> Carsten<br>
>><br>
>><br>
>> 2017-01-19 22:58 GMT+01:00 Jeremy Gadd <<a href="mailto:jeremygadd@gmail.com">jeremygadd@gmail.com</a>>:<br>
>> > Hello, everyone!<br>
>> ><br>
>> > I'm trying to enable dns_srv_lb but I'm stuck just before I can get<br>
>> > there.<br>
>> > If I don't enable use_dns_failover, lookups work and calls route but<br>
>> > always<br>
>> > to the first host. We need to load balance, so that doesn't work very<br>
>> > well.<br>
>> ><br>
>> > If I enable use_dns_failover, the lookups stop working completely and we<br>
>> > get<br>
>> > a dns lookup failure like so:<br>
>> >  ERROR: tm [ut.h:296]: uri2dst2(): ERROR: uri2dst: failed to resolve<br>
>> > "<a href="http://redacted.hostname.here.com" rel="noreferrer" target="_blank">redacted.hostname.here.com</a>" :unresolvable A or AAAA request (-7)<br>
>> ><br>
>> > This works:<br>
>> > use_dns_cache=on<br>
>> > dns_use_search_list=no<br>
>> > dns_try_naptr=on<br>
>> > # use_dns_failover=on<br>
>> ><br>
>> > This breaks it:<br>
>> > use_dns_cache=on<br>
>> > dns_use_search_list=no<br>
>> > dns_try_naptr=on<br>
>> > use_dns_failover=on<br>
>> ><br>
>> > I have checked to see that use_dns_failover is compiled in:<br>
>> > version: kamailio 4.4.2 (x86_64/linux)<br>
>> > flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,<br>
>> > DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,<br>
>> > Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,<br>
>> > FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR,<br>
>> > USE_DST_BLACKLIST, HAVE_RESOLV_RES<br>
>> > ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,<br>
>> > MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB<br>
>> > poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.<br>
>> > id: unknown<br>
>> > compiled with gcc 4.9.2<br>
>> ><br>
>> > ______________________________<wbr>_________________<br>
>> > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
>> > <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
>> > <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> Carsten Bock<br>
>> CEO (Geschäftsführer)<br>
>><br>
>> ng-voice GmbH<br>
>> Millerntorplatz 1<br>
>> 20359 Hamburg / Germany<br>
>><br>
>> <a href="http://www.ng-voice.com" rel="noreferrer" target="_blank">http://www.ng-voice.com</a><br>
>> mailto:<a href="mailto:carsten@ng-voice.com">carsten@ng-voice.com</a><br>
>><br>
>> Office <a href="tel:%2B49%2040%205247593-40" value="+4940524759340">+49 40 5247593-40</a><br>
>> Fax <a href="tel:%2B49%2040%205247593-99" value="+4940524759399">+49 40 5247593-99</a><br>
>><br>
>> Sitz der Gesellschaft: Hamburg<br>
>> Registergericht: Amtsgericht Hamburg, HRB 120189<br>
>> Geschäftsführer: Carsten Bock<br>
>> Ust-ID: DE279344284<br>
>><br>
>> Hier finden Sie unsere handelsrechtlichen Pflichtangaben:<br>
>> <a href="http://www.ng-voice.com/imprint/" rel="noreferrer" target="_blank">http://www.ng-voice.com/<wbr>imprint/</a><br>
>><br>
>> ______________________________<wbr>_________________<br>
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
>> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
>> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
><br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
><br>
<br>
<br>
<br>
--<br>
Carsten Bock<br>
CEO (Geschäftsführer)<br>
<br>
ng-voice GmbH<br>
Millerntorplatz 1<br>
20359 Hamburg / Germany<br>
<br>
<a href="http://www.ng-voice.com" rel="noreferrer" target="_blank">http://www.ng-voice.com</a><br>
mailto:<a href="mailto:carsten@ng-voice.com">carsten@ng-voice.com</a><br>
<br>
Office <a href="tel:%2B49%2040%205247593-40" value="+4940524759340">+49 40 5247593-40</a><br>
Fax <a href="tel:%2B49%2040%205247593-99" value="+4940524759399">+49 40 5247593-99</a><br>
<br>
Sitz der Gesellschaft: Hamburg<br>
Registergericht: Amtsgericht Hamburg, HRB 120189<br>
Geschäftsführer: Carsten Bock<br>
Ust-ID: DE279344284<br>
<br>
Hier finden Sie unsere handelsrechtlichen Pflichtangaben:<br>
<a href="http://www.ng-voice.com/imprint/" rel="noreferrer" target="_blank">http://www.ng-voice.com/<wbr>imprint/</a><br>
<br>
______________________________<wbr>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</div></div></blockquote></div><br></div>