[asterisk-dev] where is the config file format documented ?

Luigi Rizzo rizzo at icir.org
Tue Jul 24 08:08:11 CDT 2007


sorry for the stupid question, but is there an obvious place
where the .conf file syntax is documented ?
I am especially interested in explaining how to handle
templates and extending a section, as well as the possible issues
in using '=' and '=>' as the name/value separator, whitespace handling,
quoting (if any)...

I would expect at least something in asterisk.conf.sample

; config files have the following syntax.
; Comments start with a ';' (AND NO OTHER FORMATS)
; A config file is made of zero or more sections, with the name in square
; brackets, and optional argument following the ']' as below (no whitespace
; is allowed around the brackets):
;
; [foo]        define a new category named 'foo'
; [foo](!)     define a new template category named 'foo'
; [foo](+)     append to category 'foo', error if foo does not exist.
; [foo](a,b)   define a new category and inherit from template a,b (one or more).
;              You can also use '+' and/or '!' together with the list
;              of prototypes, with obvious meaning.
;
; In a section you can have 'directives', starting with '#',
; or 'name = value' lines


cheers
luigi



More information about the asterisk-dev mailing list