[asterisk-users] 1.6.2 : global vars not read/set after #include w/ globals

sean darcy seandarcy2 at gmail.com
Wed Feb 10 20:42:59 CST 2010


Kevin P. Fleming wrote:
> 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.
> 
  Well
Dialplan reloaded.
   == Parsing '/etc/asterisk/extensions.conf':   == Found
..................
   == Parsing '/etc/asterisk/exts/gvoice.exten.conf':   == Found

cat exts/gvoice.exten.conf
[+globals]
test-global => need-a-plus-sign
.........

but no test-global in dialplan show globals :(

sean




More information about the asterisk-users mailing list