問題描述:A2Billing 預設是以 Asterisk Realtime Mode 與 Asterisk 作連結,但若沒有經過一些設定,會使兩者的設定無法同步。
軟體版本:A2Billing 1.7.0[1]
解決步驟:
// 檢查 asterisk 有無啟動以下的模組
$ asterisk -rx "module show like res" Module Description Use Count ... res_config_mysql.so MySQL RealTime Configuration Driver 0 res_realtime.so Realtime Data Lookup/Rewrite 0
// 編輯 /etc/asterisk/res_mysql.conf
[general] dbhost = 127.0.0.1 dbname = mya2billing dbuser = a2billinguser dbpass = a2billing dbport = 3306 dbsock = /var/lib/mysql/mysql.sock
TIPS:
* dbname,dbuser,dbpass 可以參考 /etc/asterisk/a2billing.conf
// 編輯 /etc/asterisk/extconfig.conf
[settings] sipusers => mysql,mya2billing,cc_sip_buddies sippeers => mysql,mya2billing,cc_sip_buddies iaxusers => mysql,mya2billing,cc_iax_buddies iaxpeers => mysql,mya2billing,cc_iax_buddies
//