Foniva Contact Center Software
Asterisk Experts Support

Asterisk configuration templates. Use the (+) option

Hi All

Today we will review the (+) sign in the asterisk configuration files.

This can be applied to any file under the /etc/asterisk directory.

[mycontext]

option1=value1

—- many others stuff —-

[mycontext] (+)

option2=value2

So, basically, in the same file, you can have the same context twice. If the two contexts have the same name and the second one is followed by the (+) options, then both context will be merge.

Notice: If the first context does not exists, the load will fail.

This can be useful if you include one configuration file in another and need to refer to a context in another configuration file.

Enjoy !


Our sponsors


Asterisk Experts Support