[Asterisk-cvs] asterisk enum.c,1.12,1.13
markster at lists.digium.com
markster at lists.digium.com
Sat Nov 8 16:40:47 CST 2003
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv17406
Modified Files:
enum.c
Log Message:
While doing ENUM lookups, search all records
Index: enum.c
===================================================================
RCS file: /usr/cvsroot/asterisk/enum.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- enum.c 27 Oct 2003 20:00:41 -0000 1.12
+++ enum.c 8 Nov 2003 23:06:59 -0000 1.13
@@ -87,9 +87,11 @@
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 @@
} 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
More information about the svn-commits
mailing list