ast_log(LOG_WARNING,"Invalid priority/label '%s' at line %d\n",pri,v->lineno);
ipri=0;
ast_free(tc);
continue;
}elseif(ipri<1){
ast_log(LOG_WARNING,"Invalid priority '%s' at line %d\n",pri,v->lineno);
ast_free(tc);
continue;
}
appl=S_OR(stringp,"");
/* Find the first occurrence of '(' */
@ -1498,8 +1508,10 @@ process_extension:
}else{
char*orig_appl=ast_strdup(appl);
if(!orig_appl)
return-1;
if(!orig_appl){
ast_free(tc);
continue;
}
appl=strsep(&stringp,"(");
@ -1527,8 +1539,8 @@ process_extension:
ipri+=atoi(plus);
}
lastpri=ipri;
if(!ast_opt_dont_warn&&!strcmp(realext,"_.")){
ast_log(LOG_WARNING,"The use of '_.' for an extension is strongly discouraged and can have unexpected behavior. Please use '_X.' instead at line %d\n",v->lineno);
ast_log(LOG_WARNING,"The use of '%s' for an extension is strongly discouraged and can have unexpected behavior. Please use '_X%c' instead at line %d\n",realext,realext[1],v->lineno);