我正在尝试连接到Asterisk管理器接口,但我遇到了代码阻塞和连接持久性的问题。下面是我所拥有的,后面是对问题所在的描述:
/**
* The parameters for connecting to the server
*/
$params = array('server' => '192.168.1.100', 'port' => '5038');
/**
* Instantiate Asterisk object and connect to server
*/
$ast = new Net_A