Keywords: asterisk

### General syntax

Asterisk configuration files are defined as follows:

-     	[section]
      	label = value
      	label2 = value

In some files, (e.g. mgcp.conf, dahdi.conf and agents.conf), the syntax is a bit different. In these files the syntax is as follows:

-     	[section]
      	label1 = value1
      	label2 = value2
      	object => name

      	label3 = value3
      	label2 = value4
      	object2 => name2

In this syntax, we create objects with the settings defined above the object creation. Note that settings are inherited from the top, so in the example above object2 has inherited the setting for "label1" from the first object.

For template configurations, the syntax for defining a section is changed to:

-     	[section](options)
      	label = value

The options field is used to define templates, refer to templates and hide templates. Any object can be used as a template.

No whitespace is allowed between the closing "]" and the parenthesis "(".