[asterisk-commits] murf: trunk r48723 - /trunk/pbx/pbx_config.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Dec 21 08:52:46 MST 2006


Author: murf
Date: Thu Dec 21 09:52:44 2006
New Revision: 48723

URL: http://svn.digium.com/view/asterisk?view=rev&rev=48723
Log:
This small update will generate WARNINGS if there is garbage in your extensions.conf file (liken extem => instead of exten => !)

Modified:
    trunk/pbx/pbx_config.c

Modified: trunk/pbx/pbx_config.c
URL: http://svn.digium.com/view/asterisk/trunk/pbx/pbx_config.c?view=diff&rev=48723&r1=48722&r2=48723
==============================================================================
--- trunk/pbx/pbx_config.c (original)
+++ trunk/pbx/pbx_config.c Thu Dec 21 09:52:44 2006
@@ -1482,6 +1482,8 @@
 					data = "";
 				if (ast_context_add_switch2(con, appl, data, !strcasecmp(v->name, "eswitch"), registrar))
 					ast_log(LOG_WARNING, "Unable to include switch '%s' in context '%s'\n", v->value, cxt);
+			} else {
+				ast_log(LOG_WARNING, "==!!== Unknown directive: %s at line %d -- IGNORING!!!\n", v->name, v->lineno);
 			}
 		}
 	}



More information about the asterisk-commits mailing list