简体   繁体   English

PHP agi转到队列

[英]PHP agi Goto Queue

I have a problem with my Asterisk Agi. 我的Asterisk Agi有问题。

My script checks if the customer id is correct and then it has to transfer the call into a queue. 我的脚本检查客户ID是否正确,然后必须将呼叫转移到队列中。

I use: 我用:

$agi->exec('Goto',"ext-queues,100,0"); 

But when I call the number, give an existing customer number it terminate the call. 但是,当我拨打该号码时,提供一个现有的客户号码将终止通话。

Thanks in advance. 提前致谢。

You have exit AGI script after goto. 转到后,您已退出AGI脚本。

Better not use that, it can work unpredictable. 最好不要使用它,因为它可能无法预测。

For more info see 有关更多信息,请参见

asterisk -r
core set verbose 3
agi set debug on

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM