Asterisk学习进阶-3
2013-12-26 17:06
211 查看
配置就先说那么一些,其他也都是类似的配置,只是熟练程度问题了,原理相通,接下来就不在赘述功能配置,我们得花些精力来分析功能模块以及他们之间的相互配合问题,因为自己这些东西看的时间也不久,同时纯粹靠蒙,肯定很多地方考虑不周到的或者直接理解就是错误的,恳请各位不吝指导。
都说他功能强大,那么我们就要看看他到底有哪些功能,为什么强大,体现在哪儿。我就按照功能大致进行功能分类先。Asterisk大致可以按照应用,编码,文件,接入等功能模块进行粗略的分解。
首先是应用:目前我们支持语音邮件,个性铃声,电话会议,交互应答,电话座席,三方通话,呼叫ID,通话录音等等(后续补充)。
http://www.voip-info.org/wiki/view/Asterisk+PBX+functions
http://www.voip-info.org/wiki/view/PBX+features(列出有点多,请自行查看)
asterisk 相关的权威网址有两个,www.asterisk.org 和 www.voip-info.org,需要资料请优先考虑这两个地方。
编码格式:
G.711 ulaw (as used in US)
G.711 alaw (as used in Europe)
G.723.1 - pass-thru for people who need a license , free for other people
G.726 - 32kbps in Asterisk 1.0.3, 16/24/32/40kbps in CVS HEAD.
G.729 - may require a license unless using pass-thru, free version available for use in countries without patents or for educational use only
GSM
iLBC
LPC10 (not recommended!)
Speex - configurable 4-48kbps, VBR, ABR, etc. see bug
adpcm (ADPCM)
slin (16 bit Signed Linear PCM)
g722 (G722)
jpeg (JPEG image)
png (PNG image)
h261 (H.261 Video)
h263 (H.263 Video)
h263p (H.263+ Video)
h264 (H.264 Video)
文件格式:
adpcm vox vox
slin wav wav
slin sln sln|raw
g722 g722 g722
ulaw au au
alaw alaw alaw|al
ulaw pcm pcm|ulaw|ul|mu
gsm gsm gsm
h264 h264 h264
h263 h263 h263
ilbc iLBC ilbc
g729 g729 g729
g726 g726-16 g726-16
g726 g726-24 g726-24
g726 g726-32 g726-32
g726 g726-40 g726-40
g723 g723sf g723|g723sf
gsm wav49 WAV|wav49
另外还可以支持MP3的文件格式。
语音通道:
Agent: ACD Agent channel
Console: Linux console client driver for sound cards (using OSS or ALSA)
H.323: An older VOIP protocol
IAX and IAX2: Inter-Asterisk Exchange protocol, Asterisk's own VOIP protocol
Local: Loopback into another context
MGCP: Media Gateway Control Protocol, another VOIP protocol
mISDN: mISDN channel
Modem: Confusingly, this is for connecting ISDN lines, not for use with modems. Deprecated.
NBS: using Network Broadcast Sound
phone: Linux Telephony channel
SIP: Session Initiation Protocol, the most common VOIP protocol
Skinny: A driver for Cisco Skinny Client Control Protocol (a VOIP protocol)
Gtalk: Google Talk Channel driver.
VOFR: voice over frame relay Adtran style
VPB: For connecting ordinary telephone and telephone lines using Voicetronix cards
Zap: For connecting ordinary telephones and telephone lines using Digium cards. Also for TDMoE and for Asterisk zaphfc
Celliax: let Asterisk manage GSM and CDMA cellular phones, and Skype calls to/from cellphones
Bluetooth: Allows the use of bluetooth devices to change routing - see CVS "chan_btp"
CAPI: ISDN CAPI channel
vISDN: vISDN channel (native BRI channel for HFC chipsets)
SCCP: An alternate Skinny/SCCP channel
Sirrix: ISDN BRI for Sirrix cards (with optional ISDN encryption)
UNISTIM: Nortel Unistim channel
Unicall: Replacement for zaptel, with R2 support
SS7: SS7 (ISUP on MTP2/3) channel
asterisk主体可以分为模块装载器,核心交换组件,编码转换,以及调度和IO管理。首先系统启动的时候,通过模块状态器把驱动模块进行加载和初始化,是他们能够完成语音通道的初始化,文件格式以及应用等初始化。所有事情做完后,准备接受电话的呼叫。核心交换组件开始工作,他通过各种接口接受呼叫,例如T1/E1,sip,h323等等,接着开始检索拨号配置文件,然后通知对端振铃,同时连接语音邮件,外出电话或者其他的应用程序。同时他还提供了一个调度和io管理,让驱动和应用程序之间相互协作。编码转换的工作就很明确,主要完成不同编码之间的转化以及评估。这样整个系统就在这三个部分的有序协调下开始了工作。
都说他功能强大,那么我们就要看看他到底有哪些功能,为什么强大,体现在哪儿。我就按照功能大致进行功能分类先。Asterisk大致可以按照应用,编码,文件,接入等功能模块进行粗略的分解。
首先是应用:目前我们支持语音邮件,个性铃声,电话会议,交互应答,电话座席,三方通话,呼叫ID,通话录音等等(后续补充)。
http://www.voip-info.org/wiki/view/Asterisk+PBX+functions
http://www.voip-info.org/wiki/view/PBX+features(列出有点多,请自行查看)
asterisk 相关的权威网址有两个,www.asterisk.org 和 www.voip-info.org,需要资料请优先考虑这两个地方。
编码格式:
G.711 ulaw (as used in US)
G.711 alaw (as used in Europe)
G.723.1 - pass-thru for people who need a license , free for other people
G.726 - 32kbps in Asterisk 1.0.3, 16/24/32/40kbps in CVS HEAD.
G.729 - may require a license unless using pass-thru, free version available for use in countries without patents or for educational use only
GSM
iLBC
LPC10 (not recommended!)
Speex - configurable 4-48kbps, VBR, ABR, etc. see bug
adpcm (ADPCM)
slin (16 bit Signed Linear PCM)
g722 (G722)
jpeg (JPEG image)
png (PNG image)
h261 (H.261 Video)
h263 (H.263 Video)
h263p (H.263+ Video)
h264 (H.264 Video)
文件格式:
adpcm vox vox
slin wav wav
slin sln sln|raw
g722 g722 g722
ulaw au au
alaw alaw alaw|al
ulaw pcm pcm|ulaw|ul|mu
gsm gsm gsm
h264 h264 h264
h263 h263 h263
ilbc iLBC ilbc
g729 g729 g729
g726 g726-16 g726-16
g726 g726-24 g726-24
g726 g726-32 g726-32
g726 g726-40 g726-40
g723 g723sf g723|g723sf
gsm wav49 WAV|wav49
另外还可以支持MP3的文件格式。
语音通道:
Agent: ACD Agent channel
Console: Linux console client driver for sound cards (using OSS or ALSA)
H.323: An older VOIP protocol
IAX and IAX2: Inter-Asterisk Exchange protocol, Asterisk's own VOIP protocol
Local: Loopback into another context
MGCP: Media Gateway Control Protocol, another VOIP protocol
mISDN: mISDN channel
Modem: Confusingly, this is for connecting ISDN lines, not for use with modems. Deprecated.
NBS: using Network Broadcast Sound
phone: Linux Telephony channel
SIP: Session Initiation Protocol, the most common VOIP protocol
Skinny: A driver for Cisco Skinny Client Control Protocol (a VOIP protocol)
Gtalk: Google Talk Channel driver.
VOFR: voice over frame relay Adtran style
VPB: For connecting ordinary telephone and telephone lines using Voicetronix cards
Zap: For connecting ordinary telephones and telephone lines using Digium cards. Also for TDMoE and for Asterisk zaphfc
Celliax: let Asterisk manage GSM and CDMA cellular phones, and Skype calls to/from cellphones
Bluetooth: Allows the use of bluetooth devices to change routing - see CVS "chan_btp"
CAPI: ISDN CAPI channel
vISDN: vISDN channel (native BRI channel for HFC chipsets)
SCCP: An alternate Skinny/SCCP channel
Sirrix: ISDN BRI for Sirrix cards (with optional ISDN encryption)
UNISTIM: Nortel Unistim channel
Unicall: Replacement for zaptel, with R2 support
SS7: SS7 (ISUP on MTP2/3) channel
asterisk主体可以分为模块装载器,核心交换组件,编码转换,以及调度和IO管理。首先系统启动的时候,通过模块状态器把驱动模块进行加载和初始化,是他们能够完成语音通道的初始化,文件格式以及应用等初始化。所有事情做完后,准备接受电话的呼叫。核心交换组件开始工作,他通过各种接口接受呼叫,例如T1/E1,sip,h323等等,接着开始检索拨号配置文件,然后通知对端振铃,同时连接语音邮件,外出电话或者其他的应用程序。同时他还提供了一个调度和io管理,让驱动和应用程序之间相互协作。编码转换的工作就很明确,主要完成不同编码之间的转化以及评估。这样整个系统就在这三个部分的有序协调下开始了工作。
相关文章推荐
- Android中设置控件可见与不可见
- 写出好的 commit message
- java环境变量配置
- PHP截取字符串,获取长度,获取字符位置的函数 中文字符截取
- C标准库stdio源码分析
- Linux/Unix服务端和客户端Socket编程入门实例(含源码下载)
- hadoop1.0.3 中的hive0.9.0的安装
- 第一次调试微信的Android版本出现的问题和解决方法
- Oracle求当前周和.net求当前周
- test
- [查阅]Dalvik opcodes
- Android上下布局
- Get中文乱码IE浏览器Get中文乱码解决方案
- Python 学习笔记 (5)—— 正则表达式
- Linux IO多路复用之epoll网络编程(含源码)
- Java/JS获取flash高宽
- GBDT(MART)概念简介
- Asterisk 学习进阶 2
- 自己动手开发编译器(六)上下文无关语言和文法
- ZigBee协议栈Z-Stack开发指南(翻译的TI的手册Z-Stack Developer's Guide.pdf)