[asterisk-users] Simple question

Lee Jenkins lee at datatrakpos.com
Sat Jan 27 07:15:00 MST 2007


Rizwan Hisham wrote:
> Whats the difference between the following statements in extensions.conf
> 
> include=>inbound
> 
> AND
> 
> #include inbound/*.conf
> 

Hi, checkout this page:

http://www.voip-info.org/wiki/view/Asterisk+config+extensions.conf

"With the #include <filename> statement in extensions.conf, other files 
are included. This way you can setup a system where extensions.conf is 
the main file, users.conf contain your local users, services.conf 
contain various services, like conferencing. This way, the dial plan may 
be easier to maintain, depending on the size of your setup. The #include 
<filename> statement is not the same as the include <context> statement. 
The #include statement works in all Asterisk configuration files. "


I believe that #include syntax works like a include in programming 
languages where the file or files listed are included as part of the 
file that references them.

The include => context syntax is for including on context within 
another.  If context A includes context B then calls going into Context 
A could possibly match extensions in context B.



-- 

Warm Regards,

Lee



More information about the asterisk-users mailing list