在拾取任意呼叫时,在FreePBX Distro中触发脚本

时间:2017-08-15 15:59:57

标签: asterisk freepbx

我在FreePBX 14.0.1.1发行版上使用Asterisk 13.17.0。无论是内部调用还是外部调用,我都希望执行一个python脚本,无论是内部调用还是外部调用,都会将其作为命令行参数传递给调用者和正在调用它的用户。我怎么能修改我的拨号方案才能完成这个?我已尝试修改[app-pickup]中的/etc/asterisk/extensions_additional.conf扩展程序,但是通过此修改取消内部呼叫无济于事

1 个答案:

答案 0 :(得分:0)

你应该检查diall命令参数,特别是G param

https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_Dial

G( context^exten^priority ) - If the call is answered, transfer the calling party to the specified priority and the called party to the specified priority plus one.

    context
    exten
    priority

在freepbx中,您可以在设置选项卡中更改拨号参数。

你也不应该触及extensions_additional.conf,它甚至会在文件顶部发出警告。每次更改配置时,文件都会重新编辑。您在 extensions_custom.conf

做了更改