如何编写 AGI 脚本
我对 Asterisk 网关接口相当陌生。有几个问题。
- 建议从什么语言开始。
我的最终目标是拥有一个在呼叫驻留时自动寻呼的脚本。本质上,接线员会暂留呼叫,然后显示一个选择(例如,1 用于管理,2 用于 IT,3 用于营销,等等...),一旦设置了条目,就会出现一个自动页面并显示一些内容“管理71。管理71。”
I am fairly new to the Asterisk Gateway Interface. Couple of questions.
- What language would be suggested to start out with.
My end goal is to have a script that automatically page when a call is parked. In esscence, the operator would park the call and then presented with a selection (eg. 1 for management, 2 for IT, 3 for marketing, etc...) and once the entry is set an automated page would go out and say something "Management pick up on 71. Management 71."
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我所知,php 很简单。
我认为,以下链接可以帮助您...
PHP
http://phpagi.sourceforge.net/
示例代码:
http://phpagi.sourceforge.net/phpagi22/api-docs/
Asterisk.NET ( C# )
http://sourceforge.net/projects/asterisk-dotnet/
As of my knowledge, php is easy and simple.
i think, the following links help you ...
PHP
http://phpagi.sourceforge.net/
sample code :
http://phpagi.sourceforge.net/phpagi22/api-docs/
Asterisk.NET ( C# )
http://sourceforge.net/projects/asterisk-dotnet/
首先,最好使用您喜欢的脚本语言。
就我个人而言,我更喜欢用 PHP 编写小脚本,因为我有宾至如归的感觉。
此外,大多数 AGI 命令都有一个 PHP 包装器,名为 phpagi。
当然,Perl、Python 都有相同类型的包装器库……
只需使用您最喜欢的语言即可。
to start, its best to use the favourite scripting language of your taste.
Personally i prefer PHP for small scripts, because i feel at home.
Also, there is a PHP wrapper for most AGI commands called phpagi.
Of course there is the same sort of wrapper library for Perl, Python ...
just use the language you like most.