减少使用 goto 时的时间流逝



使用 Goto 命令时,我意识到在到达下一个扩展之前我有大约 5 秒的时间流逝。有没有办法减少它?

[test]
...
exten => 1001,3,Background(chooseOption)
exten => 1001,4,WaitExten(3)
exten => 1,1,Goto(francais,s,1)
exten => 2,1,Goto(english,s,1)
exten => i,1,Goto(test,1001,3)
exten => t,1,Goto(test,1001,3)
[francais]
exten => s,1,Background(IVR2)

呼叫者按下 1 和 IVR2 启动时间之间有 5 秒。

goto 中没有延时摄影。

您还有其他问题。在您的上下文中,您有 1 位和 4 位扩展名(混合(。因此,它等待(可能的(输入匹配 4 位数字。

为了快速反应,您应该创建只有 1 位 ext 的其他上下文,然后转到该上下文,之后使用背景。所以只会有 1 位数字的答案,它不会等待。

或者您可以使用应用程序读取,支持输入长度。

最新更新