Keywords: asterisk

### Using templates (or other configuration sections)

-     	[section](name[,name])
      	label = value

The name within the parenthesis refers to other sections, either templates or standard sections. The referred sections are included before the configuration engine parses the local settings within the section as though their entire contents (and anything they were previously based upon) were included in the new section. For example consider the following:

-     [foo]
      disallow=all
      allow=ulaw
      allow=alaw

      [bar]
      allow=gsm
      allow=g729
      permit=192.168.2.1

      [baz](foo,bar)
      type=friend
      permit=192.168.3.1
      context=incoming
      host=bnm

The [baz] section will be processed as though it had been written in the following way:

-     [baz]
      disallow=all
      allow=ulaw
      allow=alaw
      allow=gsm
      allow=g729
      permit=192.168.2.1
      type=friend
      permit=192.168.3.1
      context=incoming
      host=bnm

It should also be noted that there are no guaranteed overriding semantics, meaning that if you define something in one template, you should not expect to be able to override it by defining it again in another template.