[英]asterisk phpagi returns busy
現在,我的腳本無法接聽電話,但最終,該腳本重試3次,因此我的星號服務器被命中3次。 如何返回忙音而不是不接聽電話? 還是其他任何方法可以防止他們的客戶端每次呼叫打到我的服務器3次我沒有agi腳本來接聽電話?
這是我腳本的一部分
require_once('phpagi.php');
$agi = new AGI();
//$agi->answer();
stuff here
$agi->hangup();
有2種變體:
1)
$agi->exec("Busy","");
2)掛斷電話前回答(如果不方便)。
好。 為此,您不需要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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.