Include Directory With Multiple Files In It

Home » Asterisk Users » Include Directory With Multiple Files In It
Asterisk Users 1 Comment

Hello,

is it possible to use the #include – syntax to include several configuration files situated in one directory ?

Something like :

extensions.conf :

#include extra/*
#include addons/*

Is this possible ?

Using asterisk 1.8

Thanks.

Jonas.

One thought on - Include Directory With Multiple Files In It

  • Yes.

    You can also do crafty things like:
    #include */extensions.conf

    Which will include the file extensions.conf from each subdirectory. Very handy if you have a structure like this:
    /etc/asterisk/client1
    /etc/asterisk/client2
    etc.

    Kind regards,

    Chris