]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix for 9373 (duplicate context in AEL crashes asterisk). I turned a duplicate contex...
authorSteve Murphy <murf@digium.com>
Mon, 26 Mar 2007 21:41:32 +0000 (21:41 +0000)
committerSteve Murphy <murf@digium.com>
Mon, 26 Mar 2007 21:41:32 +0000 (21:41 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@59228 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx/pbx_ael.c

index 85debdc9910e7968610d300fe93237192bea7faf..5c36db3439af950f4a901a335c66892bc50ea008 100644 (file)
@@ -2220,9 +2220,9 @@ static void check_context_names(void)
                                if ( j->type == PV_CONTEXT || j->type == PV_MACRO ) {
                                        if ( !strcmp(i->u1.str, j->u1.str) )
                                        {
-                                               ast_log(LOG_WARNING,"Warning: file %s, line %d-%d: The context name (%s) is also declared in file %s, line %d-%d!\n",
+                                               ast_log(LOG_ERROR,"Error: file %s, line %d-%d: The context name (%s) is also declared in file %s, line %d-%d!\n",
                                                                i->filename, i->startline, i->endline, i->u1.str,  j->filename, j->startline, j->endline);
-                                               warns++;
+                                               errs++;
                                        }
                                }
                        }
@@ -2317,7 +2317,7 @@ void check_pval_item(pval *item, struct argapp *apps, int in_globals)
                macro_def = find_macro(item->u1.str);
                if (!macro_def) {
                        /* here is a good place to check to see if the definition is in extensions.conf! */
-                       ast_log(LOG_WARNING, "Error: file %s, line %d-%d: macro call to non-existent %s ! Hopefully it is present in extensions.conf! \n",
+                       ast_log(LOG_WARNING, "Warning: file %s, line %d-%d: macro call to non-existent %s ! Hopefully it is present in extensions.conf! \n",
                                        item->filename, item->startline, item->endline, item->u1.str);
                        warns++;
                } else if (macro_def->type != PV_MACRO) {