Configuration GuideYou've installed Asterisk and verified that it will start up.Now how do you go about configuring your PBX? The first thing you needto do is tell Asterisk what telephone connections (to handsets andexchanges, whether by physical wire or by IP) you have. These arecalled channels. 当安装完Asterisk,验证启动无误,就需要开始配置PBX了,首先需要告诉Asterisk那些类型的电话连接(手持设备,交换设备等,不管是通过电路还是IP),这些被称为通道。
The next task is to configure the Dialplan. The dialplan routes everycall in the system from its source through various applications to itsfinal destination. 下一步任务是配置拨号方案,拨号方案控制进入系统的呼叫根据设定的各种应用的走向,直到完成目标。
You're up and running now. But what about some extra bells and whistles? 现在已经运行了Asterisk,但是否需要一些额外的铃音或提示音?
Music on Hold (音乐保持)
Call Parking (呼叫停泊)
Billing (计费)
Management interfaces (管理接口)
TemplatesTemplates can assist to avoid repeating the same section(s) again and again in your Asterisk configuration files. 模板可以帮助避免在配置文件中出现重复项目 Generating Configuration Files from TemplatesThe STS Template Enginecan generate Asterisk configuration files from templates. It has itsown macro language for conditional template expansion and is availablein source code for embedding into your own applications. The librarysources could also be used to build a standalone command line utility STS模板引擎可以从模板中生成Asterisk配置文件.
asterisk.conf:Tell Asterisk the directories where everything is, including thedirectory containing all the other configuration files. By default,Asterisk looks for the asterisk.conf file in the /etc/asteriskdirectory, but you can supply a command line parameter to use a different asterisk.conf file. 主配置文件,asterisk.conf,通知Asterisk环境目录位置,包含其他所有配置文件所包含的目录,缺省Asterisk会在/etc/asterisk/目录下找asterisk.conf文件,也可以通过命令参数使用不同的asterisk.conf
extensions.ael: The Asterisk Extensions Language 扩展拨号方案语言
parking.conf: Call Parking configuration. Note: This file has been renamed to features.conf as of Asterisk 1.0rc1 (17 july 2004) 配置呼叫停泊,文件名字已被修改为features.conf
extconfig.conf: Used by res_data to arrange external configuration (e.g. thru ODBC) 通过res_data方式部署扩展配置,例如通过ODBC
enumagi.conf: Configuration file for enumlookup.agi 电话号码映射查找配置文件
zeroconf.conf: Configuration file defining services and parameters to advertise via zeroconf是一个轻量级的服务发现协议,适用于注册和寻找附近的可用协议、设备等等。 他是bonjour的开源名称,bonjour是苹果公司力推的一个service discovery协议
In most installations, these files are placed in /etc/
vxml.conf: Configuration of the VoiceXML interpreter vxml
General hints about configuration files
In all Asterisk configuration files, you may include other files by using the #include statement. This way, you may save your general SIP configuration in one file and have the SIP accounts in another file. 在所有的Astersik配置文件中,可以通过#include来包含加载其他配置文档,也就是说,可以存储通用SIP信息在一个文件中,用户帐户存储在另外的文件中
评论