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

查看:120
本文介绍了星号/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)

推荐答案

通过添加以下内容解决:

Solved by just adding:

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

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

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