星号管理器接口和星号网关接口的协议实现
obelus的Python项目详细描述
obelus是麻省理工学院授权的python库,提供通信支持。 使用Asterisk电话服务器。它 支持Asterisk Manager Interface (AMI) 以及Asterisk Gateway Interface (AGI)。
快速链接
功能
限制
- api目前是低级的:它抽象出协议语法和 通信序列,但不尝试公开星号概念 以一种特殊的方式。
示例
AMI客户
有几个AMI客户机示例可用于不同的框架:
$ python -m obelus.ami.tornadoadapter -h $ python -m obelus.ami.tulipadapter -h $ python -m obelus.ami.twistedadapter -h
Fastagi服务器
不同的框架提供了几个FastAgi服务器示例:
$ python -m obelus.agi.tornadofastagi -h $ python -m obelus.agi.tulipfastagi -h
研究这些模块的源代码以获取有关 如何在自己的应用程序中重用obelus协议类。