Python 和星号

发布于 2024-12-18 10:47:25 字数 136 浏览 5 评论 0原文

有人成功使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

梦过后 2024-12-25 10:47:26

您检查/尝试过 Pyst 吗?

Did you check/try Pyst?

执笏见 2024-12-25 10:47:26

使用 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

情域 2024-12-25 10:47:26

sourceforge 上的 pyst 似乎又活过来了,我正在使用它。

pyst on sourceforge seems to be alive again, and I'm using it.

寄风 2024-12-25 10:47:26

使用pyst。从 sourceforge 下载

现在只需解压 tar 文件,通过终端进入 pyst 目录并输入以下内容命令。

python setup.py install

现在,在你的 python 脚本中添加

from asterisk.agi import *

现在你就可以在 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.

python setup.py install

Now, in your python script add

from asterisk.agi import *

Now you are all set to use asterisk with python.

无妨# 2024-12-25 10:47:26

我写了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

无敌元气妹 2024-12-25 10:47:25

我成功使用 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文