Update of /usr/cvsroot/asterisk/pbx
In directory mongoose.digium.com:/tmp/cvs-serv9196/pbx

Modified Files:
        pbx_config.c 
Log Message:
add 'dontwarn' option to asterisk.conf to appease the whining masses :p (bug 
#4320)


Index: pbx_config.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_config.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- pbx_config.c        19 May 2005 01:18:37 -0000      1.62
+++ pbx_config.c        19 May 2005 01:57:19 -0000      1.63
@@ -14,6 +14,7 @@
 #include <sys/types.h>
 #include "asterisk/pbx.h"
 #include "asterisk/config.h"
+#include "asterisk/options.h"
 #include "asterisk/module.h"
 #include "asterisk/logger.h"
 #include "asterisk/cli.h"
@@ -1742,8 +1743,10 @@
                                                                if (plus)
                                                                        ipri += 
atoi(plus);
                                                                lastpri = ipri;
-                                                               if 
(!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);
+                                                               
if(!option_dontwarn) {
+                                                                       if 
(!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);
+                                                               }
                                                                if 
(ast_add_extension2(con, 0, realext, ipri, label, cidmatch, appl, strdup(data), 
FREE, registrar)) {
                                                                        
ast_log(LOG_WARNING, "Unable to register extension at line %d\n", v->lineno);
                                                                }

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to