星号confbridge记录完成后执行命令

时间:2015-07-31 10:14:37

标签: asterisk conference

我试图找到答案如何在confbridge的录制结束后让Asterisk执行一些命令(我的脚本)

confbridge.conf中有下一个信息:

  

record_conference =是

     

记录第一个用户进入时开始的电话会议   房间,并在最后一个用户离开房间时结束。

它可以很好地记录文件,但我希望它通过电子邮件发送wav文件。

有人能帮助我吗?

我的配置现在看起来像这样(如果有必要的话):

  

exten => 333,1,ConfBridge(100010,100010_bridge_profile,100010_user_profile)

2 个答案:

答案 0 :(得分:0)

您可以在confbridge之后使用h-extension,在其中检查confbridge是否仍处于活动状态(最后一位用户)。

如果是,请通过系统调用运行脚本。

答案 1 :(得分:0)

Dialplan scripting is limited to events relating to each call channel. To get event info for other parts of asterisk (such as the ConfBridge application) you should hook into the Asterisk Manager Interface (AMI).

There are many libraries already created to make working with the AMI easier. (That site may be outdated. Refer to the official Asterisk Wiki whenever possible.)

The AMI event you're interested in is "ConfBridgeEnd". Docs here.