现在,我让我的脚本不接电话,但在他们那端,它重试了3次,所以我的asterisk服务器被击中了3次。如何返回忙碌信号而不是不应答呼叫?或任何其他方法,以防止他们的客户端访问我的服务器3次,因为我没有我的agi脚本回答呼叫?
以下是我的脚本的一部分
require_once('phpagi.php');
$agi = new AGI();
//$agi->answer();
stuff here
$agi->hangup();发布于 2013-01-03 21:10:25
有两种变体:
1)
$agi->exec("Busy","");
2)挂机前接听(如果之前没有帮助)。
发布于 2013-01-05 01:25:18
好的。为此,您不需要AGI。您可以使用"GosubIf“来测试呼叫是否与您的烦人呼叫者具有相同的呼叫者ID。然后,使用以下代码:
[no_one_home_but_us_chickens]
exten => s,1,Answer ; can't Playtones unless we answer first
same => n,Playtones(busy) ; send the audio sequence that humans understand means "busy"
same => n,Busy(10) ; signal the other end that the line is busy.
same => n,Hangup()
same => n,Return()..。简单得多,而且可以完成你的工作。有关更多信息,请参阅:http://www.voip-info.org/wiki/view/Asterisk+cmd+Busy
https://stackoverflow.com/questions/14112746
复制相似问题