[asterisk-commits] mmichelson: branch mmichelson/npm_fixes r180855 - /team/mmichelson/npm_fixes/...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 10 14:08:05 CDT 2009


Author: mmichelson
Date: Tue Mar 10 14:08:02 2009
New Revision: 180855

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=180855
Log:
Add warning messages if we find a duplicated extension.


Modified:
    team/mmichelson/npm_fixes/main/pbx.c

Modified: team/mmichelson/npm_fixes/main/pbx.c
URL: http://svn.digium.com/svn-view/asterisk/team/mmichelson/npm_fixes/main/pbx.c?view=diff&rev=180855&r1=180854&r2=180855
==============================================================================
--- team/mmichelson/npm_fixes/main/pbx.c (original)
+++ team/mmichelson/npm_fixes/main/pbx.c Tue Mar 10 14:08:02 2009
@@ -1959,6 +1959,9 @@
 			 */
 			if (!(*(s1+1))) {  /* if this is the end of the pattern, but not the end of the tree, then mark this node with the exten...
 								a shorter pattern might win if the longer one doesn't match */
+				if (m2->exten) {
+					ast_log(LOG_WARNING, "Found duplicate exten. Had %s found %s\n", m2->exten->exten, e1->exten);
+				}
 				m2->exten = e1;
 				m2->deleted = 0;
 			}
@@ -1999,6 +2002,9 @@
 			 * return NULL.
 			 */
 			if (!(*(s1+1))) {
+				if (m2) {
+					ast_log(LOG_WARNING, "Found duplicate exten. Had %s found %s\n", m2->exten->exten, e1->exten);
+				}
 				m1->deleted = 0;
 				m1->exten = e1;
 			}




More information about the asterisk-commits mailing list