Asternic Call Center Stats

從 $1

內容表格
沒有標頭

這是一個用來將 Queue 的使用狀況,在 Web 顯示成各種圖表的套件,它有分 GPL 及商業授權,兩者差別只有在商業授權有多一些的報表。

畫面截圖

asternic-sats.png  

下載套件檔

shell>wget http://www.asternic.org/stats/asternic-stats-1.0.1.tgz

開始安裝

shell>tar -xzf asternic-stats-1.0.1.tgz
shell>cd asternic-stats
shell>cp -r html /var/www/html/asternic-stats

新增資料庫並匯入資料

shell>mysqladmin -u root -p create qstat
shell>mysql -u root -p qstat < sql/qstat.sql

修改設定

shell>vi /var/www/html/asternic-stats/config.php

$dbname = 'qstat';
$dbuser = 'root';
$dbpass = '資料庫密碼';

$language = "en";

shell>vi /var/www/html/asternic-stats/config_realtime.php

$manager_secret = "admin連線密碼";
這裡的密碼請檢查 /etc/asterisk/manager.conf,[admin] 下方的設定。

shell>cd ..
shell>cp -r asternic-stats /opt
shell>cd /opt/asternic-stats/parselog
shell>vi config.php

$dbpass = '資料庫密碼';

第一次執行

shell>cd /opt/asternic-stats/parselog
shell>php -q parselog.php convertlocal

瀏覽網頁 http://你的主機/asternic-stata/

定時自動更新資料

shell>cd /etc/cron.hourly
shell>vi qstats.sh
#!/bin/sh
# Runs the queue stats program parsing the logs
# If you're short on disk space, you might want to tune this commandline.

/opt/asternic-stats/parselog/parselog.php convertlocal
exit 0
shell>chmod 0755 qstats.sh

完成

參考連結:

標籤:
文件大小日期附件上傳者 
 asternic-sats.png
Asternic Call Center Stats
60.63 KB09:05, 27 Mar 2009alang動作
註解 (0)
您必須 登入 才能發佈評論。