From a8e01c95f8fb56612368b609726d1577b24a683c Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Sat, 8 Nov 2003 23:06:59 +0000 Subject: [PATCH] While doing ENUM lookups, search all records git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1709 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- enum.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/enum.c b/enum.c index 143b22281b..5d9bab76e3 100755 --- a/enum.c +++ b/enum.c @@ -87,9 +87,11 @@ static int parse_naptr(unsigned char *dst, int dstsize, char *tech, int techsize regex_t preg; regmatch_t pmatch[9]; + + strcpy(dst, ""); if (len < sizeof(struct naptr)) { - printf("Length too short\n"); + ast_log(LOG_WARNING, "Length too short\n"); return -1; } answer += sizeof(struct naptr); @@ -135,9 +137,9 @@ static int parse_naptr(unsigned char *dst, int dstsize, char *tech, int techsize } else if (!strncasecmp(services, "e2u+voice:", 10)) { strncpy(tech, services+10, techsize -1); } else { - ast_log(LOG_WARNING, + ast_log(LOG_DEBUG, "Services must be e2u+${tech}, ${tech}+e2u, or e2u+voice: where $tech is from (sip, h323, tel, iax, iax2). \n"); - return -1; + return 0; } /* DEDBUGGING STUB