Asterisk/FreePBX - 接到电话时执行操作 [英] Asterisk / FreePBX - Perform action when receiving a call

查看:30
本文介绍了Asterisk/FreePBX - 接到电话时执行操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 FreePBX 并在 extensions_custom.conf 中有此配置,以便我可以通过 Pushover 接收通知.

I'm using FreePBX and have this configuration in extensions_custom.conf so that I can receive a notification via Pushover.

[macro-dialout-trunk-predial-hook]
exten => s,1,System(/usr/bin/sendpush.php "Call from ${CALLERID(num)} to ${OUTNUM}")

我还需要接收来电通知,但不知道我应该在什么上下文中应用它.
(如果有什么不同,我正在使用 4 个中继线并希望收到所有中继线的通知)

I also need to receive notifications on incoming calls, but can't figure it out on what context should I apply it.
(If it makes any difference, I'm using 4 trunks and want notifications from all of them)

推荐答案

只需添加:

[ext-did-custom]
exten => s,1,System(/usr/bin/sendpush.php "External call from ${CALLERID(num)}")

这篇关于Asterisk/FreePBX - 接到电话时执行操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆