kamailio is failing to perform enum_query() function
Kamailio enum_query() function is failing with the following error although the right NAPTR record exists on the DNS:
daemon.debug /usr/sbin/kamailio[3900]: DEBUG: enum [enum.c:760]: enum_query(): enum_query on suffix <enum.lwm2.edu> service <>
daemon.err /usr/sbin/kamailio[3900]: ERROR: <core> [resolve.c:1032]: get_record(): ERROR: get_record: rdata parse error (8.2.3.7.2.0.8.1.0.0.enum.lwm2.edu, 35), 0x4dbc120f8bf-0x4dbc120f9c2 rtype=35, class=1, ttl=60, rdlength=55
daemon.err /usr/sbin/kamailio[3900]: ERROR: <core> [resolve.c:1037]: get_record(): ERROR: get_record
daemon.debug /usr/sbin/kamailio[3900]: DEBUG: enum [enum.c:611]: do_query(): No NAPTR record found for 8.2.3.7.2.0.8.1.0.0.enum.lwm2.edu.
host -t NAPTR 8.2.3.7.2.0.8.1.0.0.enum.lwm2.edu
8.2.3.7.2.0.8.1.0.0.enum.lwm2.edu has NAPTR record 10 100 "u" "E2U+sip" "!^\\+00180(.*)$!sip:\\1@brk.abc.lwm2.edu!" .
The issues seems to be related with the musl “dn_expand” function used in kamailio resove.c
http://www.openwall.com/lists/musl/2014/08/13/6
(from redmine: issue id 3284, created on 2014-08-13, closed on 2014-08-26)