I have heaps of includes. The limitation is not to the Extensions.conf
file, but rather each CONTEXT within the Extensions.conf file.

Its fairly logical, and no problem , since if you need more than 9
includes per context, simply use goto's and jump out to other context's
or use AGI first to select a final context and return to the dial plan

So what was the issue again ?

Douglas Garstang wrote:

Oh Nooooooo!

It looks as if there is a limit of 9 (not 10) maximum #include statments that 
you can have in extensions.conf. For example, the following extensions.conf 
causes the error to appear..

[user_3250071]
#include "inc/wildwildwest/features.conf"
#include "inc/wildwildwest/features.conf"
#include "inc/wildwildwest/features.conf"
#include "inc/wildwildwest/features.conf"
#include "inc/wildwildwest/features.conf"
#include "inc/wildwildwest/features.conf"

[user_3250072]
#include "inc/wildwildwest/features.conf"
#include "inc/wildwildwest/features.conf"
#include "inc/wildwildwest/features.conf"
#include "inc/wildwildwest/features.conf"
#include "inc/wildwildwest/features.conf"
#include "inc/wildwildwest/features.conf"

This is 12 #include statements and it causes the error to occur 3 times. If I 
remove three of the #include statements, the error goes away. This therefore means 
that is a maximum of 9 #include statements that can be put into extensions.conf. 
This is a SERIOUS SERIOUS (how many times can I say it?) limitation. I thought 
Digium said that Asterisk was supposed to be enterprise-grade? What happens when 
you say, oh I don't know, have LESS than 1 customer, with several dozen accounts 
and you need to provide fine tuned granularity to allow user and company level 
features with the use of #include and include=>?

Does anyone know what I can look for in the source to increase this limit to a 
reasonable number, say... several THOUSAND? What bad things could happen if I 
increased this limit?

I'm flabbergasted. Please, someone tell me I have got this all wrong.

Doug.


-----Original Message-----
From: Douglas Garstang Sent: Friday, January 13, 2006 4:46 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [Asterisk-Users] Extensions.conf error - 'Maximum Include
level(10) exceeded'


Can someone tell me why the following from extensions.conf generates this error 
on asterisk load?

Jan 13 09:27:24 WARNING[31701]: config.c:938 ast_config_internal_load: Maximum 
Include level (10) exceeded

As far as I can tell I don't have a DEPTH of 10 includes. I certainly have more 
than 10 include statements, but I don't have them drilled down to a depth of 10. 
I'm thinking the error text is wrong. Maybe you can't have more than 10 includes? 
And is it talking about #include or include=> ? None of the .conf files 
included here have any include statements.


[OffNet]
; lines removed

[OnNet]
; lines removed
include => OffNet

[comp_wildwildwest]
#include "inc/wildwildwest/features.conf"
#include "inc/wildwildwest/blocked-outgoing.conf"
#include "inc/wildwildwest/blocked-incoming.conf"

[user_3250071]
#include "inc/wildwildwest/3250071/features.conf"
[user_3250072]
#include "inc/wildwildwest/3250072/features.conf"
[user_20000]
#include "inc/wildwildwest/20000/features.conf"
[user_20001]
#include "inc/wildwildwest/20001/features.conf"
[user_20002]
#include "inc/wildwildwest/20002/features.conf"
[user_20003]
#include "inc/wildwildwest/20003/features.conf"
[user_20004]
#include "inc/wildwildwest/20004/features.conf" ; If I comment this line, the 
error goes away.
[user_20005]
#include "inc/wildwildwest/20005/features.conf"

[entry_3250071]
include => user_3250071
include => comp_wildwildwest
include => OnNet
[entry_3250072]
include => user_3250071
include => comp_wildwildwest
include => OnNet
[entry_20000]
include => user_20000
include => comp_wildwildwest
include => Nowhere
[entry_20001]
include => user_20001
include => comp_wildwildwest
include => Nowhere
[entry_20002]
include => user_20002
include => comp_wildwildwest
include => Nowhere
[entry_20003]
include => user_20003
include => comp_wildwildwest
include => Nowhere
[entry_20004]
include => user_20004
include => comp_wildwildwest
include => Nowhere
[entry_20005]
include => user_20005
include => comp_wildwildwest
include => Nowhere
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


--
Adrian Carter
Technical Manager
Leading Edge Internet

Web       http://www.lei.net.au http://support.lei.net.au
Direct    +61 2 6163 6162  Support 1 300 662 415
E-mail    [EMAIL PROTECTED]
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to