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

Ron Arts ron.arts at neonova.nl
Thu Feb 11 01:49:48 CST 2010


Op 11-02-10 03:42, sean darcy schreef:
> 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
>
>

suffix means 'append to the end'...
so try [globals+]

Ron


-- 
NeoNova BV
innovatieve internetoplossingen

http://www.neonova.nl  Science Park 140           1098 XG Amsterdam
info: 020-5611300      servicedesk: 020-5611302   fax: 020-5611301
KvK Amsterdam 34151241

Op dit bericht is de volgende disclaimer van toepassing:
http://www.neonova.nl/maildisclaimer



More information about the asterisk-users mailing list