[asterisk-dev] Academic Asterisk Adventure

Tzafrir Cohen tzafrir.cohen at xorcom.com
Thu Jan 4 15:29:17 MST 2007


On Thu, Jan 04, 2007 at 02:35:19PM -0500, Shawn Van Every wrote:
> 
> >Message: 6
> >Date: Wed, 3 Jan 2007 07:54:51 +0200
> >From: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
> >Subject: Re: [asterisk-dev] Academic Asterisk Adventure
> >To: asterisk-dev at lists.digium.com
> >Message-ID: <20070103055450.GS31960 at xorcom.com>
> >Content-Type: text/plain; charset=utf-8
> >
> >
> >On Tue, Jan 02, 2007 at 09:06:12PM -0500, Shawn Van Every wrote:

> >I never ran into this. I had a config file for Asterisk that for a  
> >silly reason #include-d subdir/*.conf and that subdir had more than 20 files
> >(aleit short).
> >
> >Could you please give a minimal configuration that breaks #include ?
> 
> Sorry, didn't keep the conf around.
> 
> As I recall, here is the limit I am referring to:
> http://www.asterisk.org/doxygen/1.2/ 
> config_8c.html#13b758c853676572d46d939c9b2d3bdc
> 
> #define MAX_INCLUDE_LEVEL   10
> Definition at line 75 of file config.c.
> Referenced by ast_config_new().

If you ran into this, chances are you have a recursive include:

a.conf:
#include b.conf

b.conf:
#include a.conf

Is there any real need for that? 

Alternatively, the include depth can always be made set to a higher
value if you really need such a depth in the inclusion tree. 

-- 
               Tzafrir Cohen       
icq#16849755                    jabber:tzafrir at jabber.org
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com       
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir


More information about the asterisk-dev mailing list