[asterisk-users] include directory with multiple files in it

Chris Bagnall asterisk at lists.minotaur.cc
Mon Aug 5 08:22:37 CDT 2013


On 5/8/13 2:18 pm, Jonas Kellens wrote:
> 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 ?

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
-- 
This email is made from 100% recycled electrons



More information about the asterisk-users mailing list