[SR-Users] IPv6 addresses in dispatcher on IPv4 only proxy

Daniel-Constantin Mierla miconda at gmail.com
Tue Oct 16 16:45:57 CEST 2012


Hello,

On 10/16/12 1:37 PM, Alex Hermann wrote:
> On Monday 15 October 2012, Daniel-Constantin Mierla wrote:
>> On 10/11/12 2:11 PM, Alex Hermann wrote:
>>> On Thursday 11 October 2012, Daniel-Constantin Mierla wrote:
>>> DEBUG: <core> [dns_cache.c:567]: dns_hash_find([IPv6 Address](30), 1),
>>> h=707 DEBUG: <core> [resolve.c:727]: get_record: lookup([IPv6 Address],
>>> 1) failed DEBUG: <core> [dns_cache.c:895]: dns_cache_mk_bad_entry([IPv6
>>> Address], 1, 60, 1)
>>> DEBUG: <core> [dns_cache.c:828]: dns_cache_add: adding [IPv6 Address](30)
>>> 1 (flags=1) at 707
>>> ERROR: dispatcher [dispatch.c:325]: could not resolve [IPv6 Address]
>>> WARNING: <core> [mem/f_malloc.c:474]: WARNING:fm_free: free(0) called
>> looking at the code it seems to be ending in doing an A lookup instead
>> of AAAA
> Why would it even query for AAAA? The entry is an IP(v6) address, no lookup
> should be done at all.
well, maybe improper formulation, the functions in core doing A/AAAA 
lookups detect if it is an IP address and don't do the dns query in that 
case, but convert directly the address to socket structure.

The idea was to add some debug messages to discover why its ending in 
IPv4-specific function and not in the one for IPv6.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Nov 5-8, 2012 - http://asipto.com/u/kat
Kamailio Advanced Training, Miami, USA, Nov 12-14, 2012 - http://asipto.com/u/katu




More information about the sr-users mailing list