Re: [asterisk-users] Asterisk config files and #include
Ok. But Im sure I was using only 2 include levels i.e. a file included from a file included and that there was no circular nesting. Here is my scenario - queues.conf #include sales-queue.conf #include support-queue.conf . . . #include billing-queue.conf Then I have a file defaults.conf which contains some default options for queues and that file is being included in all the above x-queues.conf files. Then I also have x-agents.conf files which are files containing queue members. These files are included in their respective x-queues.conf files. The reason im doing this is because we have 30+ queues and 150+ agents. I will try it out again and debug this in the future. Thanks and Regards, Deepak Tzafrir Cohen wrote: On Fri, Jun 22, 2007 at 10:28:32AM +0530, Deepak Bhat wrote: Yes I was aware of the MAX_INCLUDE_LEVEL define. Just wasnt sure about increasing it cos I thgt it might have been kept that low for a reason. I have my setup working perfectly fine right now ( I just reduced the number of files being included and there is no nesting either). Though I will try out your suggestions in the future when I need to make changes. Will let you know of my findings then. It's include level. Not total number of includes. If you have: #include file1 #include file2 #include file3 ... #include file100 It should work fine. If that gives you an error, it is a bug. There may be a problem with: #include file1 which has: #include file1.1 which has: #include file1.1.1 up to more than 10 nesting levels. But I fail to see why is that needed. Again, I'm looking for an example that would make some sense for some specific situation. Thanks for your help. Regards, Deepak Tzafrir Cohen wrote: On Thu, Jun 21, 2007 at 04:07:03PM +0530, Deepak Bhat wrote: Im sure its not a circular include. Like you said its mostly realted to the number of nested includes but the exact meaning is not clear to me. I repeat: To trace this, enable debugging and debug logging. There is a debug comment for each included file. enable 'debug' for some log file in logger.conf , and then run: logger reload reload ___ --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 http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Asterisk config files and #include
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. Thanks -Deepak ___ --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
Re: [asterisk-users] Asterisk config files and #include
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#16849755jabber:[EMAIL PROTECTED] +972-50-7952406 mailto:[EMAIL PROTECTED] http://www.xorcom.com iax:[EMAIL PROTECTED]/tzafrir ___ --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
Re: [asterisk-users] Asterisk config files and #include
Im sure its not a circular include. Like you said its mostly realted to the number of nested includes but the exact meaning is not clear to me. Anyways to get it working I have consolidated most of my queue config files and am not including anything from files that are included. Thanks! Tzafrir Cohen wrote: 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.* ? ___ --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
Re: [asterisk-users] Asterisk config files and #include
I don't have the source for 1.2.18 handy and didn't bother digging through my 1.4.4 tree looking but a quick grep for the exact error you see didn't reveal anything... although i greped the typo in maaximum However, correct that and that leads you to config.c #define MAX_INCLUDE_LEVEL 10 I suspect if your nesting a lot of includes you would probably need to up this level. I don't see a way to change this in asterisk.conf so I would suggest if you really need to go that deep in includes edit this option re-compile and be happy. NOTE *** This was in 1.4.4 maybe different in your version. I'm also not qualified to say from a quick glance if upping this limit has any negative impact but I would imagine it wouldn't and is more to help keep from causing loops. On Jun 21, 2007, at 6:37 AM, Deepak Bhat wrote: Im sure its not a circular include. Like you said its mostly realted to the number of nested includes but the exact meaning is not clear to me. Anyways to get it working I have consolidated most of my queue config files and am not including anything from files that are included. Thanks! Tzafrir Cohen wrote: 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.* ? ___ --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 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Bryan Laird, Sr. Manager CM Operations -+- Cablemodems are the gateway to the Internet. The Internet is a gateway to some things that are better left un-seen. ___ --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
Re: [asterisk-users] Asterisk config files and #include
On Thu, Jun 21, 2007 at 04:07:03PM +0530, Deepak Bhat wrote: Im sure its not a circular include. Like you said its mostly realted to the number of nested includes but the exact meaning is not clear to me. I repeat: To trace this, enable debugging and debug logging. There is a debug comment for each included file. enable 'debug' for some log file in logger.conf , and then run: logger reload reload -- Tzafrir Cohen icq#16849755jabber:[EMAIL PROTECTED] +972-50-7952406 mailto:[EMAIL PROTECTED] http://www.xorcom.com iax:[EMAIL PROTECTED]/tzafrir ___ --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
Re: [asterisk-users] Asterisk config files and #include
Yes I was aware of the MAX_INCLUDE_LEVEL define. Just wasnt sure about increasing it cos I thgt it might have been kept that low for a reason. I have my setup working perfectly fine right now ( I just reduced the number of files being included and there is no nesting either). Though I will try out your suggestions in the future when I need to make changes. Will let you know of my findings then. Thanks for your help. Regards, Deepak Tzafrir Cohen wrote: On Thu, Jun 21, 2007 at 04:07:03PM +0530, Deepak Bhat wrote: Im sure its not a circular include. Like you said its mostly realted to the number of nested includes but the exact meaning is not clear to me. I repeat: To trace this, enable debugging and debug logging. There is a debug comment for each included file. enable 'debug' for some log file in logger.conf , and then run: logger reload reload ___ --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