FusionPBX支持dinstar SIP終端Auto provision的話,需要經(jīng)過幾個(gè)步驟來實(shí)現(xiàn)。首先,用戶需要修改FusionPBX的源代碼,包括device 的php 文件和provison 的文件。
觀看視頻關(guān)于FusionPBX支持dinstar SIP終端Auto provision 自動(dòng)部署:

用戶使用開發(fā)編輯工具,編輯/var/www/fusionpbx/app/devices/resources/classes的device.php文件,添加dinstar 的 MAC地址前綴。
// add dinstar mac address
case "f8a03d":
$device_vendor = "dinstar";
break;
case "7cbacc":
$device_vendor = "dinstar";
break;

然后修改/var/www/fusionpbx/app/provision/resources/classes下的provision.php文件,添加dinstar的模板路徑和各種型號(hào)。
$templates['HW GXP2135'] = 'grandstream/gxp2135';
$templates['HW GXP2140'] = 'grandstream/gxp2140';
$templates['HW GXP2160'] = 'grandstream/gxp2160';
$templates['HW GXP2170'] = 'grandstream/gxp2170';
$templates['HW GXV3140'] = 'grandstream/gxv3140';
$templates['HW GXV3240'] = 'grandstream/gxv3240';
$templates['HW GXV3175'] = 'grandstream/gxv3175';
// add tem for dinstar
$templates['Dinstar C61'] = 'dinstar/c61';
$templates['Dinstar C62'] = 'dinstar/c62';
$templates['Dinstar C63'] = 'dinstar/c63';
$templates['Dinstar C64'] = 'dinstar/c64';
$templates['Dinstar C66'] = 'dinstar/c66';
$templates['PolycomVVX-VVX_101-UA/4'] = 'polycom/4.x';
$templates['PolycomVVX-VVX_201-UA/4'] = 'polycom/4.x';
$templates['PolycomVVX-VVX_300-UA/4'] = 'polycom/4.x';

我們接下來在/var/www/fusionpbx/resources/templates/provision創(chuàng)建
dinstar 產(chǎn)品的SIP終端系列話機(jī)的配置文件,添加cfg配置文件。



{$mac}.cfg配置內(nèi)容:

最后,通過FusionPBX菜單-Advanced > Default Settings,設(shè)置provisioning 中的訪問界面的用戶名稱和參數(shù),需要設(shè)置的參數(shù)為: 

以上為FusionPBX的源代碼修改流程和管理配置。然后,我們通過界面針對(duì)SIP extension 添加相應(yīng)的SIP 賬號(hào)配置模板。選擇dinstar 對(duì)應(yīng)的型號(hào)和MAC地址。配置界面,添加dinstar 模板和MAC地址。

分機(jī)101和分機(jī)102分別添加了不同的兩個(gè)dinstar SIP終端。



在FusionPBX界面配置好以后,我們配置SIP終端的Auto provisioning 設(shè)置。用戶登錄SIP終端界面,訪問Upgrade菜單,找到子菜單Auto provision, 在部署服務(wù)器的地址中輸入IPPBX地址,然后輸入IPPBX的界面登錄用戶名稱和密碼,暫時(shí)忽略其他AES設(shè)置(如果沒有設(shè)置的話)。其他品牌的話機(jī)可能支持部署服務(wù)器的官方地址,這里和其他品牌的不同。

點(diǎn)擊 “Auto Provision Now” 按鈕就可以實(shí)現(xiàn)自動(dòng)部署更新。界面成功更新以后,就可以看到SIP終端自動(dòng)注冊(cè)到了FusionPBX系統(tǒng)。
如果用戶需要獲得更多關(guān)于dinstar SIP話機(jī)固件或者其他配置的話,聯(lián)系官方技術(shù)人員。這里,筆者僅提供關(guān)于FusionPBX 自動(dòng)部署的配置實(shí)例。
通過修改幾個(gè)必要的php配置文件和添加dinstar的自動(dòng)部署的模板和cfg配置文件,我們?nèi)缓笤僭O(shè)置SIP話機(jī)的更新自動(dòng)部署的設(shè)置就可以實(shí)現(xiàn)SIP終端的自動(dòng)部署功能。
參考資料:
www.dinstar.cn
www.hiastar.com
www.fusionpbx.cn