Python 和星号
有人成功使用Python API 连接到Asterisk AMI 吗?也许是 Starpy 或 py-asterisk,甚至是 FATS?
如果是这样,您可以显示示例或指向链接吗?
关于 Python API 的文档似乎很少。
Has anyone successfully used a Python API to connect to Asterisk AMI? Maybe Starpy or py-asterisk, or even FATS?
If so can you please display examples or point to a link?
There seems to be very little documentation regarding the Python APIs.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
您检查/尝试过 Pyst 吗?
Did you check/try Pyst?
使用 pyst2,它是 pyst 的一个分支。最后就是不再发展了。 http://pypi.python.org/pypi/pyst2/0.4
Use pyst2, it's a fork of pyst. Last is not develops any more. http://pypi.python.org/pypi/pyst2/0.4
sourceforge 上的 pyst 似乎又活过来了,我正在使用它。
pyst on sourceforge seems to be alive again, and I'm using it.
使用pyst。从 sourceforge 下载
现在只需解压 tar 文件,通过终端进入 pyst 目录并输入以下内容命令。
现在,在你的 python 脚本中添加
现在你就可以在 python 中使用星号了。
Use pyst. Download it from sourceforge
Now just extract the tar file, go to the directory of pyst through terminal and enter following commands.
Now, in your python script add
Now you are all set to use asterisk with python.
我写了panoramisk,它仅适用于python3(旧版本可以与python2.7一起使用)
https://github.com/gawel/全景
I wrote panoramisk which is python3 only (old releases can work with python2.7)
https://github.com/gawel/panoramisk
我成功使用 https://github.com/al-the-x/pyst多年来,
请参阅此处文档块中的用法示例 - https://github.com/al-the-x/pyst/blob/master/asterisk/manager.py
i am successfully using https://github.com/al-the-x/pyst for years
see usage example in the doc block here - https://github.com/al-the-x/pyst/blob/master/asterisk/manager.py