挂断后星号IVR



我想在拨打号码挂断后将呼叫者重定向到 IVR。我做了研究,发现了一种叫做deadAGI的东西,但我无法让它工作。您可以在下面找到我的extensions_custom.conf文件。

[from-internal-custom]
exten => 80,1,AGI(custom/agi.php)
exten => 80,2,MixMonitor(${FILE}.WAV)
exten => 80,3,Dial(SIP/custom/${NUMBER})
exten => 80,4,Hangup()
exten => h,1,deadAGI(custom/finish)

我的AGI文件是正确的,我确信。我只需要在挂断命令正确后运行即可。

提前谢谢。

"核心显示应用程序拨号"指出:

    g: Proceed with dialplan execution at the next priority in the current
extension if the destination channel hangs up.

因此,请将您的代码更改为:

[from-internal-custom]
exten => 80,1,AGI(custom/agi.php)
exten => 80,2,MixMonitor(${FILE}.WAV)
exten => 80,3,Dial(SIP/custom/${NUMBER},,g)
exten => 80,4,deadAGI(custom/finish)
exten => 80,5,Hangup()

如果要运行脚本,则调用方或被调用方不会挂断:

e: Execute the 'h' extension for peer after the call ends

所以:

[from-internal-custom]
exten => 80,1,AGI(custom/agi.php)
exten => 80,2,MixMonitor(${FILE}.WAV)
exten => 80,3,Dial(SIP/custom/${NUMBER},,ge)
exten => 80,4,deadAGI(custom/finish)
exten => 80,5,Hangup()
exten => h,1,deadAGI(custom/finish)

你的想法几乎没问题。 "h"是一个扩展,而不是一个优先级

相关内容

  • 没有找到相关文章