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

Modified Files:
      Tag: v1-0
        pbx_config.c 
Log Message:
add warning if you try to use the _. exten (bug #4032)


Index: pbx_config.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_config.c,v
retrieving revision 1.45
retrieving revision 1.45.2.1
diff -u -d -r1.45 -r1.45.2.1
--- pbx_config.c        7 Sep 2004 01:22:57 -0000       1.45
+++ pbx_config.c        15 Apr 2005 06:44:35 -0000      1.45.2.1
@@ -1700,6 +1700,8 @@
                                                        while(*appl && (*appl < 
33)) appl++;
                                                        
pbx_substitute_variables_helper(NULL, ext, realext, sizeof(realext) - 1);
                                                        if (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 
(ast_add_extension2(con, 0, realext, ipri, 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