[sr-dev] IPv6 problem with kamailio 3.0

Andrei Pelinescu-Onciul andrei at iptel.org
Tue Feb 16 21:36:54 CET 2010


On Feb 16, 2010 at 18:30, Klaus Darilion <klaus.mailinglists at pernau.at> wrote:
> just as info: I have "dns_try_ipv6=no"

Try dns_try_ipv6=yes (or change it at runtime with
 sercmd cfg.set_now_int core dns_try_ipv6 1

> 
> but as this destination is already an IP address this setting should not 
> matter.

I think we better fix the docs. If dns_try_ipv6 is off, no hostname
resolving that would result in an ipv6 address would succeed (it doesn't
matter if an actual dns lookup is to be performed or the host is already
an ip address).

I don't think that the case where you don't want AAAA lookups, but you
want IPv6 addresses in hostnames has much practical use, except maybe
some extra optimization (at least to me it sounds strange that you would
support IPv6 addresses, but not dns names).

If it's about the order of AAAA and A lookups, this can be controlled
(setting dns_cache_flags to 4 will try AAAA first and then A,
 by default it's the reverse).

So do you really want to optimize away the AAAA lookup made if an A
record is no found?


Andrei

> 
> Am 16.02.2010 18:20, schrieb Klaus Darilion:
> >Hi!
> >
> >I have a client wich registers via IPv6 - that works. Now, if this
> >client is called, t_relay generates errors and no message is sent:
> >
> >INFO: <script>: main branch in branch_route[1]:
> >INFO: <script>:
> >$ru=sip:klaus.darilion@[2A02:850:2:2:8C4:955A:C892:A15A]:1066;transport=UDP
> >INFO: <script>: $du=sip:[2A02:850:2:2:8C4:955A:C892:A15A]:1066
> >INFO: <script>: $bF=00000040
> >
> >ERROR: <core> [resolve.c:1502]: ERROR: sip_hostport2su: could not
> >resolve hostname: "[2A02:850:2:2:8C4:955A:C892:A15A]"
> >ERROR: tm [ut.h:318]: failed to resolve "[2A02:850:2:2:8C4:955A:C892:A15A]"
> >
> >regards
> >Klaus
> >
> >_______________________________________________
> >sr-dev mailing list
> >sr-dev at lists.sip-router.org
> >http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
> 
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev



More information about the sr-dev mailing list