diff -urN bayonne2-1.5.28.orig/binders/bayonnexml/checks.cpp bayonne2-1.5.28/binders/bayonnexml/checks.cpp --- bayonne2-1.5.28.orig/binders/bayonnexml/checks.cpp 2006-06-08 21:04:41.000000000 +0800 +++ bayonne2-1.5.28/binders/bayonnexml/checks.cpp 2006-09-29 16:56:24.000000000 +0800 @@ -104,8 +104,6 @@ if(scr->access != ScriptInterp::scrPUBLIC) return "cannot register non-public script"; - if(cp) - ++cp; if(ext && !stricmp(ext, ".conf")) { @@ -172,9 +170,6 @@ if(!strnicmp(line->cmd, "incoming.", 9)) return "invalid member for incoming"; - if(cp && *cp == '.') - ++cp; - if(cp) { if(!stricmp(cp, "timeslot")) @@ -328,9 +323,6 @@ trunking: img->setPointer(sbuf, scr); - if(cp && *cp == '.') - ++cp; - if(cp) { if(!stricmp(cp, "timeslot")) diff -urN bayonne2-1.5.28.orig/binders/ivrscript1/checks.cpp bayonne2-1.5.28/binders/ivrscript1/checks.cpp --- bayonne2-1.5.28.orig/binders/ivrscript1/checks.cpp 2006-09-10 01:09:27.000000000 +0800 +++ bayonne2-1.5.28/binders/ivrscript1/checks.cpp 2006-09-29 16:56:39.000000000 +0800 @@ -199,9 +199,6 @@ if(scr->access != ScriptInterp::scrPUBLIC) return "cannot register non-public script"; - if(cp) - ++cp; - if(ext && !stricmp(ext, ".conf")) { if(cp) @@ -270,9 +267,6 @@ if(!strnicmp(line->cmd, "incoming.", 9)) return "invalid member for incoming"; - if(cp && *cp == '.') - ++cp; - if(cp) { if(!stricmp(cp, "timeslot")) @@ -427,9 +421,6 @@ trunking: img->setPointer(sbuf, scr); - if(cp && *cp == '.') - ++cp; - if(cp) { if(!stricmp(cp, "timeslot")) diff -urN bayonne2-1.5.28.orig/server/checks.cpp bayonne2-1.5.28/server/checks.cpp --- bayonne2-1.5.28.orig/server/checks.cpp 2006-06-01 02:12:23.000000000 +0800 +++ bayonne2-1.5.28/server/checks.cpp 2006-09-29 16:56:02.000000000 +0800 @@ -258,7 +258,7 @@ const char *cp = getMember(line); unsigned idx = 0; - if(cp && atoi(++cp) < 1) + if(cp && atoi(cp) < 1) return "libexec timeout member must be at least one second"; if(!strnicmp(line->cmd, "exec", 4)) @@ -493,7 +493,7 @@ const char *cp; cp = getMember(line); - if(cp && stricmp(cp, ".vox")) + if(cp && stricmp(cp, "vox")) return "use no member or .vox only"; if(!useKeywords(line, "=extension=encoding=prefix=framing=silence=intersilence=note=position=exit=timeout=menu")) @@ -533,7 +533,7 @@ const char *cp; cp = getMember(line); - if(cp && stricmp(cp, ".vox")) + if(cp && stricmp(cp, "vox")) return "use no member or .vox only"; if(!useKeywords(line, "=extension=encoding=prefix=framing=silence=intersilence=exit=timeout"))