#Step1 : Install Trixbox Pada Linux
#Step2 : Download a2billing
#cd /usr/src
#mkdir a2billing
#cd a2billing
#wget www.asterisk2billing.org/downloads/A2Billing_1.6.0.tar.gz
#tar -xzf A2Billing_1.6.0.tar.gz
#chown -R root:root /usr/src/a2billing
#Step3 : Membuat Database
# cd /usr/src/a2billing/DataBase/mysql/Mysql-3.x_4.x
# mysql -u root -ppassw0rd < a2billing-MYSQL-createdb-user.sql
# mysql -u root -ppassw0rd mya2billing < a2billing-mysql-schema-MYSQL.3.X-4.X_v1.2.3.sql
#Step4 : Install Web Interface A2billing
#cp -rf /usr/src/a2billing/customer /var/www/html/a2customer
#chmod 777 /var/www/html/a2customer/templates_c
#cp -rf /usr/src/a2billing/agent /var/www/html
#chmod 777 /var/www/html/agent/templates_c
#cp -rf /usr/src/a2billing/admin /var/www/html/a2billing
#chmod 777 /var/www/html/a2billing/templates_c
#cp -Rf /usr/src/a2billing/common /var/www/html
#cp /usr/src/a2billing/AGI/a2billing.php /var/lib/asterisk/agi-bin/
#cp -rf /usr/src/a2billing/common/lib /var/lib/asterisk/agi-bin/
#chmod +x /var/lib/asterisk/agi-bin/a2billing.php
#chown -R asterisk:asterisk /var/lib/asterisk/agi-bin
#Step5 : Konfigurasi File A2billing
#cp /usr/src/a2billing/a2billing.conf /etc/asterisk
#chown asterisk:asterisk /etc/asterisk/a2billing.conf
#ln -sf /etc/asterisk/a2billing.conf /etc/a2billing.conf
#sed -i "s/\(port *= *\)\(.*\)/\13306/" /etc/asterisk/a2billing.conf
#sed -i "s/\(user *= *\)\(.*\)/\1a2billinguser/" /etc/asterisk/a2billing.conf
#sed -i "s/\(password *= *\)\(.*\)/\1a2billing/" /etc/asterisk/a2billing.conf
#sed -i "s/\(dbname *= *\)\(.*\)/\1mya2billing/" /etc/asterisk/a2billing.conf
#A2billing Extra sounds
#cd /usr/src/a2billing/addons/sounds
#./install_a2b_sounds.sh
# Step6 : Asterisk files
#cd /etc/asterisk/
#touch additional_a2billing_iax.conf
#touch additional_a2billing_sip.conf
#touch extensions_a2billing.conf
#echo "#include additional_a2billing_sip.conf" >> /etc/asterisk/sip_custom.conf
#echo "#include additional_a2billing_iax.conf" >> /etc/asterisk/iax_custom.conf
#echo -e >> /etc/asterisk/extensions_custom.conf
#echo "#include extensions_a2billing.conf" >> /etc/asterisk/extensions_custom.conf
# Step7 : A2billing file permissions
#chmod 666 /etc/asterisk/additional_a2billing_iax.conf
#chmod 666 /etc/asterisk/additional_a2billing_sip.conf
#chmod 666 /etc/asterisk/extensions_a2billing.conf
#chown -R asterisk:asterisk /etc/asterisk/
#chown -R asterisk:asterisk /var/www/html/common
#chown -R asterisk:asterisk /var/www/html/a2billing
#chown -R asterisk:asterisk /var/www/html/a2customer
#chown -R asterisk:asterisk /var/www/html/agent
#chown -R asterisk:asterisk /var/lib/asterisk/
#Step8 : Agar asterisk berkomunikasi dengan a2billing, ada yang di perhatikan di file extensions_a2billing.conf
[a2billing]
exten => _X.,1,Answer
exten => _X.,n,Wait(1)
exten => _X.,n,DeadAGI(a2billing.php,1)
exten => _X.,n,Hangup
[custom-a2billing]
exten => _X.,1,Answer
exten => _X.,n,Wait(1)
exten => _X.,n,DeadAGI(a2billing.php,1,did)
exten => _X.,n,Hangup
Selesai, tinggal kita buka lewat browser http://localhost/a2billing
User : root
Password : changepassword
Tidak ada komentar:
Posting Komentar