Action => 是什么意思? 'ping'在 Asterisk 管理器界面脚本中使用 send_action 吗?
我已经开始阅读有关 Asterisk::AMI 模块的内容。 在该模块中,如果我们想要将操作发送到 AMI 服务器,我们需要通过 send_action 方法使用带有操作名称的操作。 在该模块中,他们提到了 Action => send_action 方法中的“Ping”。 这里Action有什么用=> 'Ping'。谁能给我解释一下吗?
send_action({ Action => 'Ping',
CALLBACK => \&method,
});
提前致谢。
I have started to read about Asterisk::AMI module.
In that module if we want to send the action to the AMI server,we need to use the Action with action name using send_action method.
In that module they mentioned about Action => 'Ping' within send_action method.
Here what is the use of Action => 'Ping'.Can anyone explain me about it.
send_action({ Action => 'Ping',
CALLBACK => \&method,
});
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Asterisk 管理器接口 (AMI) 允许客户端程序连接到 Asterisk 实例并通过 TCP/IP 流发出命令或读取事件
操作:连接的客户端发送到 Asterisk 的数据包,请求执行特定操作。客户端可以使用一组有限(但可扩展)的操作,由 Asterisk 引擎中当前加载的模块决定。一次只有一项操作可能未完成,
从而使保持活动数据包从客户端发送到 Astersik
The Asterisk Manager Interface (AMI) allows a client program to connect to an Asterisk instance and issue commands or read events over a TCP/IP stream
Action: A packet sent by the connected client to Asterisk, requesting a particular Action be performed. There are a finite (but extendable) set of actions available to the client, determined by the modules presently loaded in the Asterisk engine. Only one action may be outstanding at a time
gives Keep alive packet to be sent from the client to Astersik
操作:Ping
概要:Keepalive 命令
权限:<无>
描述:“Ping”动作将引起“Pong”响应。用于保留
管理器连接打开。
变量:无
您可以从 Asterisk CLI 中获取任何 Asterisk AMI 命令的基本帮助
界面
通过键入manager show command yourCommand
查看受支持命令的完整列表
,您可以通过键入manager show command
顺便说一句,shell命令可以访问Asterisk CLI 是
asterisk -r
Action: Ping
Synopsis: Keepalive command
Privilege: <none>
Description: A 'Ping' action will elicit a 'Pong' response. Used to keep the
manager connection open.
Variables: NONE
You can get basic help for any Asterisk AMI command from within the Asterisk CLI
interface by typing
manager show command yourCommand
You can see an entire list of supported commands by typing
manager show commands
BTW the shell command to get to the Asterisk CLI is
asterisk -r
我想这只是一个维持生命的手段。 Asterisk Manager Interface 因有点不可靠而闻名。 Astmanproxy 是解决这个问题的好方法。
I think this is a just a keep alive. Asterisk Manager Interface is known for being a little unreliable. Astmanproxy is a good way to fix that.