Asterisk PHPAGI问题

时间:2017-01-27 14:58:49

标签: php asterisk

我使用的PHPAGI曾经无数次使用过。 但是,它似乎没有在我的新测试服务器上运行。

当我尝试wait_for_digit时,它立即返回,Asterisk CLI显示

WARNING[11873][C-00000000]: channel.c:3660 ast_waitfordigit_full: The FD we were waiting for has something waiting. Waitfordigit returning numeric 1

这是我的php代码:

#!/usr/bin/php
<?php
require 'phpagi.php';

$agi = new AGI();

$test = $agi->wait_for_digit(); //lets try to simply get asterisk to wait. 

?>

和我的拨号方案

exten => 123,1,Answer()
exten => 123,n,AGI(/var/lib/asterisk/agi-bin/voicemail.php,test,1)

0 个答案:

没有答案