[asterisk-commits] murf: branch murf/bug_7731_trunk r39908 - /team/murf/bug_7731_trunk/apps/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Aug 15 14:13:09 MST 2006


Author: murf
Date: Tue Aug 15 16:13:08 2006
New Revision: 39908

URL: http://svn.digium.com/view/asterisk?rev=39908&view=rev
Log:
One more change-- right now, recursion is limited to 7 levels, which
is a bit shallow for bigger apps. I've turned it up to 20. If you are
going to infinitely recurse, 20 levels should go real fast. But if you
have a complicated dialplan, 7 may come too soon.


Modified:
    team/murf/bug_7731_trunk/apps/app_macro.c

Modified: team/murf/bug_7731_trunk/apps/app_macro.c
URL: http://svn.digium.com/view/asterisk/team/murf/bug_7731_trunk/apps/app_macro.c?rev=39908&r1=39907&r2=39908&view=diff
==============================================================================
--- team/murf/bug_7731_trunk/apps/app_macro.c (original)
+++ team/murf/bug_7731_trunk/apps/app_macro.c Tue Aug 15 16:13:08 2006
@@ -133,7 +133,7 @@
 	s = pbx_builtin_getvar_helper(chan, "MACRO_DEPTH");
 	if (s)
 		sscanf(s, "%d", &depth);
-	if (depth >= 7) {
+	if (depth >= 20) {
 		ast_log(LOG_ERROR, "Macro():  possible infinite loop detected.  Returning early.\n");
 		LOCAL_USER_REMOVE(u);
 		return 0;



More information about the asterisk-commits mailing list