diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2008-03-12 21:37:40 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2008-03-12 21:37:40 +0000 |
commit | a3a8aa65475bd71900f8a7630bab3ab52fb5bbc0 (patch) | |
tree | 6bd0208666f9683244cf60547cff5ad43e020e62 /configs | |
parent | a96b50580c3b14b6dbbb73ac4a6cb44cbf978702 (diff) |
add support for named sections in zapata.conf, and fix a few bugs in config file parsing
(closes issue #9503)
Reported by: tzafrir
Patches:
fix_cleanups uploaded by tzafrir (license 46)
zapata_sections uploaded by tzafrir (license 46)
skipchannel_options uploaded by tzafrir (license 46)
conf_sample uploaded by tzafrir (license 46)
patches updated by me to better conform to coding guidelines and fix some problems
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108286 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configs')
-rw-r--r-- | configs/zapata.conf.sample | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/configs/zapata.conf.sample b/configs/zapata.conf.sample index 73ab23bcb..20bcdb8b0 100644 --- a/configs/zapata.conf.sample +++ b/configs/zapata.conf.sample @@ -915,3 +915,57 @@ pickupgroup=1 ; For more information on setting up SS7, see the README file in libss7 or ; the doc/ss7.txt file in the Asterisk source tree. ; ----------------- SS7 Options ---------------------------------------- + +; Configuration Sections +; ~~~~~~~~~~~~~~~~~~~~~~ +; You can also configure channels in a separate zapata.conf section. In +; this case the keyword 'channel' is not used. Instead the keyword +; 'zapchan' is used (as in users.conf) - configuration is only processed +; in a section where the keyword zapchan is used. It will only be +; processed in the end of the section. Thus the following section: +; +;[phones] +;echocancel = 64 +;zapchan = 1-8 +;group = 1 +; +; Is somewhat equivalent to the following snippet in the section +; [channels]: +; +;echocancel = 64 +;group = 1 +;channel => 1-8 +; +; When starting a new section almost all of the configuration values are +; copied from their values at the end of the section [channels] in +; zapata.conf and [general] in users.conf - one section's configuration +; does not affect another one's. +; +; Instead of letting common configuration values "slide through" you can +; use configuration templates to easily keep the common part in one +; place and override where needed. +; +;[phones](!) +;echocancel = yes +;group = 0,4 +;callgroup = 3 +;pickupgroup = 3 +;threewaycalling = yes +;transfer = yes +;context = phones +;faxdetect = incoming +; +;[phone-1](phones) +;zapchan = 1 +;callerid = My Name <501> +;mailbox = 501@mailboxes +; +; +;[fax](phones) +;zapchan = 2 +;faxdetect = no +;context = fax +; +;[phone-3](phones) +;zapchan = 3 +;pickupgroup = 3,4 |