[asterisk-users] Asterisk config files and #include

Tzafrir Cohen tzafrir.cohen at xorcom.com
Thu Jun 21 03:25:55 CDT 2007


On Thu, Jun 21, 2007 at 12:35:30PM +0530, Deepak Bhat wrote:
> Hi all,
> 
> I am using asterisk version 1.2.18.
> 
> I recently tried to change my asterisk configuration by using #include 
> statements to include other config files in my extensions.conf and 
> queues.conf files.
> 
> My queues.conf is in /etc/asterisk. It includes several files which are 
> in /etc/asterisk/queues. Each of these files contains the config of 
> individual queues.
> 
> Again each of the individual queue config files in /etc/asterisk/queues 
> includes files which are in /etc/asterisk/queues/queue_members.
> 
> The problem is that when I reload this config I get the following error: -
> 
> *WARNING: Maaximum include level exceeded : 10*
> 
> Has anyone encoutered this before and does anyone know what it means ??
> 
> Any help will be deeply appreciated as I have been unable to find any 
> documentation on this.

Sounds like a circular include:

in extensions.conf:

  #include extensions.conf

The circle may include more than one file.

To trac this, enable debugging and debug logging. There is a debug 
comment for each included file.

Unless you really have such a complex nesting structure of include files
and want that constant changed. That it easy to do by a code change. I
don't really see a reason to make this configurable, until someone shows
me a case where this does not indicate a circular include.

Hmmm... so should the error message be changed to:

*WARNING: Maaximum include level exceeded : 10. Check for circular
includes.*

?

-- 
               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-users mailing list