Whats the difference between the following statements in extensions.conf include=>inbound AND #include inbound/*.conf -- Regards Rizwan Hisham Software Engineer -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070127/7fe56854/attachment.htm
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
> Whats the difference between the following statements in extensions.conf > include=>inbound > AND > #include inbound/*.confThe first one includes a context the second one includes a file(s). -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.12/654 - Release Date: 1/27/2007 5:02 PM -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070127/1ea47d42/attachment.htm
The first include references another context within extensions.conf. Contexts are defined by words in brackets. In your example, there would be a context in extensions.conf that would look like: [inbound] Contexts allow for setting up difference services and difference user capabilities all within the extensions.conf file. The second include is including the contents of multiple *.conf files located in a directory called inbound. JB>>> rizwanhasham@gmail.com 1/27/2007 6:50 AM >>>Whats the difference between the following statements in extensions.conf include=>inbound AND #include inbound/*.conf -- Regards Rizwan Hisham Software Engineer -------------- next part -------------- ------------------------------------------------- This email transmission and any documents, files or previous email messages attached to it may contain information that is confidential or legally privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, printing, distributing or use of this transmission is strictly prohibited. If you have received this transmission in error, please immediately notify the sender by telephone or return email and delete the original transmission and its attachments without reading or saving in any manner. The Evangelical Lutheran Good Samaritan Society. ---------------------------------------------------------