asterisk-aqlAstconf 查询语言
AQL (Astconf Query Language) 是一种类似 SQL 的语句用来为 PHP 读写 Asterisk 配置文件提供方便。
示例代码:
<?
include("aql.php");
// to query extension 8001 settings from sip.conf
$aql = new aql;
$aql->set('basedir','/etc/asterisk/');
$db = $aql->query("select * from sip.conf where section='8001'");
print_r($db);
?>
output:
Array
(
[8888] => Array
(
[type] => friend
.....
)
)
评论