作者 : Sun bing
版本 : 1.0
文件 : rpcpbx_option.php
说明 :
OPTION设置函数包
函数 :
取得extensions里的global变量
$retrun = dialplan_globalvar_get($gvar)
参数:
$gvar global变量
返回数据: $retrun
设置extensions里的global变量
$retrun = dialplan_globalvar_set($gvar,$val)
参数:
$gvar global变量
$val 变量内容
返回数据: $retrun
fri2标准返回
取出配置文件列表
$retrun = option_confile_list($folder)
参数:
$folder
返回数据: $retrun
配置文件数据流
$retrun = option_confile_stream($folder,$filename)
参数:
$folder
$filename 文件名称
返回数据: $retrun
配置文件数据流写回
$retrun = option_confile_puts($folder,$filename,$filestream)
参数:
$folder
$filename 文件名称
$filestream 写回内容
返回数据: $retrun
fri2标准返回
删除配置文件
$retrun = option_confile_delete($folder,$filename)
参数:
$folder
$filename 文件名称
返回数据: $retrun
fri2标准返回
取得配置文件中的section
$retrun = option_confsection_get($folder,$type,$section)
参数:
$folder
$type 文件名称
$section section的名称
返回数据: $retrun
编辑配置文件中指定文件的section下的key值
$retrun = option_confkey_edit($folder,$type,$section,$key,$newvalue)
参数:
$folder
$type 文件名称
$section section的名称
$key 键
$newvalue 新值
返回数据: $retrun
fri2标准返回
硬件语音卡状态输出
$retrun = hardware_card_stat()
返回数据: $retrun
chan_dahdi驱动配置中信号设置部分
$retrun = hardware_chandahdi_signalling_set($type,$signalling)
参数:
$type 配置类型,目前只能填写'pri'
$signalling 信号类型,比如pri_net或pri_cpe
返回数据: $retrun
fri2标准返回