The Architecture of Open Source Applications: Asterisk
2012-09-29 10:02
417 查看
The architecture of Asterisk
Lessons from the architecture of Asterisk
concepts of channelTelephony endpoints are represented as channels, and they are connected by channel bridge. Channel bridge is responsible of chennal negotiation, codec and frame transport. Because the media transport technology of each endpoint may vary, each channel is assigned with a specific channel driver. So that channel API provides the telephony protocol abstraction which allows all other Asterisk features to work independently of the telephony protocol in use.
flexible call handling using the Asterisk dialplan
This flexible method is often called separating strategy and mechanism: Asterisk only implments the basic mechanism, leaving call routing configuration to user. Asterisk users can set up call routing by diaplan, which resides in the /etc/asterisk/extensions.conf file. The dialplan is made up of a series of call rules called extensions.
A simple example of diaplan:
; Define the rules for what happens when someone dials 1234. ; exten => 1234,1,Answer() same => n,Playback(demo-congrats) same => n,Hangup()
Reference:
aosabook.org相关文章推荐
- The Architecture of Open Source Applications: Asterisk
- The Architecture of Open Source Applications---VTK
- The Architecture of Open Source Applications -- llvm
- The Architecture of Open Source Applications: The Bourne-Again Shell
- 推荐一本好书《The Architecture of Open Source Applications 》
- The Architecture of Open Source Applications
- The Architecture of Open Source Applications: The Bourne-Again Shell
- The Architecture of Open Source Applications
- The Architecture of Open Source Applications: Audacity
- The Architecture of Open Source Applications - CMake
- The Architecture of Open Source Applications——阅读笔记part 1
- <<the architecture of open source applications>> 中关于虚拟机复制与迁移(上)
- The Architecture of Open Source Applications: Nginx
- The Architecture of Open Source Applications - CMake
- The Architecture of Open Source Applications 开源软件体系架构
- <<the architecture of open source applications>> 中关于虚拟机复制与迁移(下)
- The Architecture of Open Source Applications(GDB & zeromq)
- <<the architecture of open source applications>> 中关于虚拟机复制与迁移(中)
- The Architecture of Open Source Applications: Audacity
- The Architecture of Open Source Applications - Berkeley DB