我有运行 Elastix 的 VOIP 服务器,以及运行在不同服务器上的 Django 中的 Web 应用程序。我想在这两个服务器之间进行通信以传输数据并在 IVR 中使用它们,例如从电话键盘获取用户 ID 和密码并在 Django 数据库中检查它,然后使用 IVR 将相关数据提供给用户。
是否有任何框架或 API 可以执行此操作? 有谁知道VOIP服务器吗?? 请帮助。 . .
最佳答案
我不知道这个特定的设备,但它似乎在 Asterisk 上运行.用于此类内容的 Asterisk API 称为 AGI (Asterisk Gateway Interface) .
The Asterisk Gateway Interface is an interface for adding functionality to Asterisk with many different programming languages. Perl, PHP, C, Pascal, Bourne Shell - it's your choice, really.
- AGI may control the dial plan, called in extensions.conf.
- Async AGI Introduced in Asterisk 1.6, allows asynchronous AGI scripting.
- EAGI gives the application the possibility to access and control the sound channel in addition to interaction with the dial plan.
- FastAGI can be used to do the processing on a remote machine via a network connection.
- DeadAGI gives access to a dead channel, after hangup. Deprecated since Asterisk 1.6
关于django - 用于与 django web 应用程序通信的 elastix API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11947953/