[Asterisk-cvs] asterisk/pbx pbx_config.c,1.55,1.56

markster at lists.digium.com markster at lists.digium.com
Fri Apr 15 01:17:16 CDT 2005


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

Modified Files:
	pbx_config.c 
Log Message:
Add warning for _. match (bug #4032)


Index: pbx_config.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_config.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- pbx_config.c	23 Mar 2005 21:45:05 -0000	1.55
+++ pbx_config.c	15 Apr 2005 06:08:47 -0000	1.56
@@ -1738,6 +1738,8 @@
 								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 (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);
 								}




More information about the svn-commits mailing list