<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=507542111-31032006><FONT face=Arial size=2>I am using quite a
large superdial-macro in my system.</FONT></SPAN></DIV>
<DIV><SPAN class=507542111-31032006><FONT face=Arial size=2>From within this
macro other macro's are being called and therefor the current depth of my
superdial-macro is already 6</FONT></SPAN></DIV>
<DIV><SPAN class=507542111-31032006><FONT face=Arial size=2>In some cases my
superdial-macro dials another extension using the LOCAL channel and the
same superdial-macro,</FONT></SPAN></DIV>
<DIV><SPAN class=507542111-31032006><FONT face=Arial size=2>this causes a
macro-depth over 7 and results in app_macro to report " possible infinite loop
detected. Returning early."</FONT></SPAN></DIV>
<DIV><SPAN class=507542111-31032006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=507542111-31032006><FONT face=Arial size=2>Now I know I'm
really not doing anything really out of this world, I'm just using a large
macro.</FONT></SPAN></DIV>
<DIV><SPAN class=507542111-31032006><FONT face=Arial size=2>So a maximum
macro-depth of 7 is quite shallow to me, is there any special reason why this
depth is set to 7?</FONT></SPAN></DIV>
<DIV><SPAN class=507542111-31032006><FONT face=Arial size=2>In my situation I
can think of macro depths up to 25, I can adjust the depth but is it really save
to do so?</FONT></SPAN></DIV>
<DIV><SPAN class=507542111-31032006><FONT face=Arial size=2>I cannot find any
reason why we couldn't change the macro-depth to 99, in case of a real loop that
number is quickly reached.</FONT></SPAN></DIV>
<DIV><SPAN class=507542111-31032006><FONT face=Arial size=2>So why 7, it's so
low!</FONT></SPAN></DIV>
<DIV><SPAN class=507542111-31032006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=507542111-31032006><FONT face=Arial size=2>Is there anybody
else with an option about this issue?</FONT></SPAN></DIV>
<DIV><SPAN class=507542111-31032006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=507542111-31032006><FONT face=Arial size=2>CODE in app_macro.c
:</FONT></SPAN></DIV>
<DIV><SPAN class=507542111-31032006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=507542111-31032006><FONT face=Arial
size=2> if (depth >= 7)
{<BR>
ast_log(LOG_ERROR, "Macro(): possible infinite loop detected.
Returning
early.\n");<BR>
LOCAL_USER_REMOVE(u);<BR>
return 0;<BR></FONT></SPAN></DIV>
<DIV><SPAN class=507542111-31032006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=507542111-31032006><FONT face=Arial size=2>Ramon
Peek</FONT></SPAN></DIV>
<DIV><SPAN class=507542111-31032006><FONT face=Arial size=2>Trends Telematics
B.V.</FONT></SPAN><SPAN class=507542111-31032006><FONT face=Arial
size=2></DIV></FONT></SPAN></BODY></HTML>