sean darcy
2010-Feb-10 17:24 UTC
[asterisk-users] 1.6.2 : global vars not read/set after #include w/ globals
I found out that the [globals] section in extensions.conf is ignored if an #include 'd file has a [globals] section. Is this intended? In this particular case, the #include 'd file has a number of contexts for googlevoice. I'd put various googlevoice variables in there to use in all those contexts. Once I did that all of the global variables set in extensions.conf were ignored. sean
Kevin P. Fleming
2010-Feb-10 21:57 UTC
[asterisk-users] 1.6.2 : global vars not read/set after #include w/ globals
sean darcy wrote:> I found out that the [globals] section in extensions.conf is ignored if > an #include 'd file has a [globals] section. Is this intended? > > In this particular case, the #include 'd file has a number of contexts > for googlevoice. I'd put various googlevoice variables in there to use > in all those contexts. Once I did that all of the global variables set > in extensions.conf were ignored.Context names cannot be duplicated, unless you suffix them with (+) to allow them to be added together. It does not matter whether it is the 'global' context or any other context. -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA skype: kpfleming | jabber: kpfleming at digium.com Check us out at www.digium.com & www.asterisk.org