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

C. Chad Wallace cwallace at lodgingcompany.com
Thu Feb 11 18:03:21 CST 2010


At 6:48 PM on 11 Feb 2010, sean darcy wrote:

> OK, now clear on suffix v. prefix ( Doh! ) and having RTFM,
> 
> I have extensions.conf:
> 
> [general]
> ................
> #include  exts/gvoice.exten.conf
[...]
> [globals]
> pstnline => DAHDI/4
> ...........
> 
> and exts/gvoice.exten.conf:
> 
> [globals](+)
> test-global => need-a-plus-sign
> .........
[...]
> Category addition requested, but category 'globals' does not exist,
> line 1 of /etc/asterisk/exts/gvoice.exten.conf

Your #include should come after your [globals] section in
extensions.conf.

From doc/configuration.txt:  "The content of the other file will be
included at the row that the #include statement occurred."

So putting your include before your main [globals] puts the
[globals](+) in first.

-- 

C. Chad Wallace, B.Sc.
The Lodging Company
http://www.lodgingcompany.com/
OpenPGP Public Key ID: 0x262208A0

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20100211/0f783a43/attachment.pgp 


More information about the asterisk-users mailing list