A2Billing: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
New page: = New Installation = == Download == <pre> cd /usr/src wget http://www.asterisk2billing.org/downloads/A2Billing_1.3.4.tar.gz </pre> == Extract == <pre> mkdir A2Billing cd A2Billing tar xv...
 
No edit summary
 
Line 71: Line 71:
</pre>
</pre>


'''NOTE:''' Edit the user, password and dbname fields to suite -> '''Create Databse''' section.<br>
'''NOTE:''' Edit the user, password and dbname fields to suite -> '''Create Database''' section.<br>
Check the contents of the a2billing.conf file as there will be individual changes that you will need to make and pleanty of them.
Check the contents of the a2billing.conf file as there will be individual changes that you will need to make and pleanty of them.



Latest revision as of 11:41, 28 February 2009

New Installation

Download

cd /usr/src
wget http://www.asterisk2billing.org/downloads/A2Billing_1.3.4.tar.gz

Extract

mkdir A2Billing
cd A2Billing
tar xvzf ../A2Billing_1.3.4.tar.gz

Create Database

mysql
create DATABASE mya2billing;
GRANT ALL PRIVILEGES ON mya2billing.* TO 'a2billing'@'%' IDENTIFIED BY 'passw0rd' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON mya2billing.* TO 'a2billing'@'localhost' IDENTIFIED BY 'passw0rd' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON mya2billing.* TO 'a2billing'@'localhost.localdomain' IDENTIFIED BY 'passw0rd' WITH GRANT OPTION;
flush privileges;
exit;

Create Tables

mysql mya2billing -u root -ppassw0rd < DataBase/mysql/Mysql-5.x/a2billing-mysql-schema-MYSQL.5.X-v1.3.0.sql

Install HTTP WEB Portals

Admin UI

mkdir /var/www/html/a2billing
cp -r A2Billing_UI/* /var/www/html/a2billing/

Customer UI

mkdir /var/www/html/a2bcust
cp -r A2BCustomer_UI/* /var/www/html/a2bcust/

Install AGI

cp A2Billing_AGI/a2billing.php /var/lib/asterisk/agi-bin/
cp -r A2Billing_AGI/libs_a2billing/* /var/lib/asterisk/agi-bin/

A2Biling conf File

Installation of a2billing.conf

cp a2billing.conf /etc/asterisk/

Edit a2billing.conf File

vi /etc/asterisk/a2billing.conf

In [database] section, change:

dbtype=postgres
;dbtype=mysql

To:

;dbtype=postgres
dbtype=mysql

NOTE: Edit the user, password and dbname fields to suite -> Create Database section.
Check the contents of the a2billing.conf file as there will be individual changes that you will need to make and pleanty of them.

Log into A2Billing

http://<asterisk IP/a2billing

The default username and password are: admin / mypassword

Create a2billing Asterisk files

touch /etc/asterisk/additional_a2billing_iax.conf
touch /etc/asterisk/additional_a2billing_sip.conf
chmod 646 /etc/asterisk/additional_a2billing*

Include a2billing Files

sip.conf

In you sip.conf file in the include files section include the file additional_a2billing_sip.conf

iax.conf

In you iax.conf file in the include files section include the file additional_a2billing_iax.conf