Asterisk(raspbx):py脚本open Asterisk CLI和fire命令

2024-04-18 23:15:43 发布

您现在位置:Python中文网/ 问答频道 /正文

我正试图通过星号从python脚本发送短信给我的手机。 我已经在树莓3上安装了树莓,上面有陈冬乐。

手动操作正常:

asterisk -vvvr

然后

^{pr2}$

我的想法是编写python脚本来打开星号cli,并输入命令发送sms。

如此:

^{pr3}$

但没用!有人能帮我吗?

谢谢。瑞士的问候(今天天气不好)


Tags: 命令脚本cli手动星号asterisksms短信
1条回答
网友
1楼 · 发布于 2024-04-18 23:15:43

你应该这样做:

asterisk -rx "core show channels"

-x command Connect to a running Asterisk process and execute a command on a command line, passing any output through to stan‐ dard out and then terminating when the command execution completes. Implies -r when -R is not explicitly supplied.

相关问题 更多 >