Wednesday, November 25, 2009

A2Billing Installation


Step 1)

mkdir /usr/local/src/a2billing

step 2)

cd /usr/local/src/a2billing

step 3)

yum -y install perl-DBD-Pg subversion

step 4)

svn co --username guest --password guest http://svn.a2billing.net/svn/asterisk2billing/trunk/ /usr/local/src/a2billing

step 5)

cp a2billing.conf /etc/a2billing.conf
ln /etc/a2billing.conf /etc/asterisk/a2billing.conf

step 6)

mysql -u root -p < DataBase/mysql-5.x/a2billing-createdb-user.sql
pass=passw0rd (ziro)
*Database name is: mya2billing
*Database user is: a2billinguser
*User password is: a2billing

step 7)

mysql -u root -p mya2billing < DataBase/mysql-5.x/a2billing-schema-v1.4.0.sql

step 8)

mysql -u root -p mya2billing < DataBase/mysql-5.x/UPDATE-a2billing-v1.4.0-to-v1.4.1.sql
mysql -u root -p mya2billing < DataBase/mysql-5.x/UPDATE-a2billing-v1.4.1-to-v1.4.2.sql
mysql -u root -p mya2billing < DataBase/mysql-5.x/UPDATE-a2billing-v1.4.2-to-v1.4.3.sql

step 9)

vi /etc/a2billing.conf

[database]
hostname = localhost
; port for postgres is 5432 by default
port = 3306
user = a2billinguser
password = a2billing
dbname = mya2billing
; dbtype setting can either be mysql or postgres
dbtype = mysql

step 10)

chmod 775 /etc/asterisk

step 11)

touch /etc/asterisk/additional_a2billing_iax.conf

step 12)

touch /etc/asterisk/additional_a2billing_sip.conf

step 13)

echo \#include additional_a2billing_sip.conf >> /etc/asterisk/sip_custom.conf

step 14)

echo \#include additional_a2billing_iax.conf >> /etc/asterisk/iax_custom.conf

step 15)

chown -Rf asterisk:asterisk /etc/asterisk/additional_a2billing_iax.conf

step 16)

chown -Rf asterisk:asterisk /etc/asterisk/additional_a2billing_sip.conf

step 17)

ln -s /usr/local/src/a2billing/AGI/a2billing.php /var/lib/asterisk/agi-bin/a2billing.php

step 18)

chown asterisk:asterisk /var/lib/asterisk/agi-bin/a2billing.php

step 19)

chmod +x /var/lib/asterisk/agi-bin/a2billing.php

step 20)

cd /usr/local/src/a2billing/addons/sounds

step 21)

./install_a2b_sounds.sh

step 22)

chown -R asterisk:asterisk /var/lib/asterisk/

step 23)

vi /etc/asterisk/manager_custom.conf
[myasterisk]
secret = mycode
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user

step 24)

mkdir /var/www/html/a2billing

step 25)

ln -s /usr/local/src/a2billing/common /var/www/html/a2billing/common

step 26)

ln -s /usr/local/src/a2billing/admin /var/www/html/a2billing/admin

step 27)

ln -s /usr/local/src/a2billing/agent /var/www/html/a2billing/agent

step 28)

ln -s /usr/local/src/a2billing/customer /var/www/html/a2billing/customer

step 29)

chown -R asterisk:asterisk /var/www/html/a2billing/

step 30)

chown -R asterisk:asterisk /usr/local/src/a2billing/common

step 31)

chown -R asterisk:asterisk /usr/local/src/a2billing/admin

step 32)

chown -R asterisk:asterisk /usr/local/src/a2billing/customer

step 33)

chown -R asterisk:asterisk /usr/local/src/a2billing/agent

step 34)

vi /etc/crontab
echo "
# Automatically added for A2Billing
0 * * * * php /usr/local/src/a2billing/Cronjobs/a2billing_alarm.php
0 12 * * * php /usr/local/src/a2billing/Cronjobs/a2billing_archive_data_cront.php
0 10 21 * * php /usr/local/src/a2billing/Cronjobs/a2billing_autorefill.php
#Batch process at 00:20 each day
20 0 * * * php /usr/local/src/a2billing/Cronjobs/a2billing_batch_process.php
#Bill DID usage at 00:00 each day
0 0 * * * php /usr/local/src/a2billing/Cronjobs/a2billing_bill_diduse.php
#Remind users of low balance every day at 06:00
0 6 * * * php /usr/local/src/a2billing/Cronjobs/a2billing_check_account.php
#Generate Invoices at 7am everyday
0 7 * * * php /usr/local/src/a2billing/Cronjobs/a2billing_invoice2_cront.php
0 7 * * * php /usr/local/src/a2billing/Cronjobs/a2billing_invoice_cront.php
#Check if balance below preset value, and email user if so.
1 * * * * php /usr/local/src/a2billing/Cronjobs/a2billing_notify_account.php
#Charge subscriptions at 06:05 on the 1st of each month
0 6 1 * * php /usr/local/src/a2billing/Cronjobs/a2billing_subscription_fee.php
#Update currencies at 01:00 each day
0 1 * * * php /usr/local/src/a2billing/Cronjobs/currencies_update_yahoo.php
" >> /var/spool/cron/asterisk

step 35)

touch /var/log/asterisk/a2billing-daemon-callback.log

step 36)

touch /var/log/a2billing/a2billing-daemon-callback.log

step 37)

touch /var/log/a2billing/cront_a2b_alarm.log

step 38)

touch /var/log/a2billing/cront_a2b_autorefill.log

step 39)

touch /var/log/a2billing/cront_a2b_batch_process.log

step 40)

touch /var/log/a2billing/cront_a2b_bill_diduse.log

step 41)

touch /var/log/a2billing/cront_a2b_subscription_fee.log

step 42)

touch /var/log/a2billing/cront_a2b_currency_update.log

step 43)

touch /var/log/a2billing/cront_a2b_invoice.log

step 44)

touch /var/log/a2billing/cront_a2b_check_account.log

step 45)

touch /var/log/a2billing/a2billing_paypal.log

step 46)

touch /var/log/a2billing/a2billing_epayment.log

step 47)

touch /var/log/a2billing/api_ecommerce_request.log

step 48)

touch /var/log/a2billing/api_callback_request.log

step 49)

touch /var/log/a2billing/a2billing_agi.log

step 50)

cp /usr/local/src/a2billing/addons/Doc/extensions_a2billing.conf /etc/asterisk/extensions_a2billing.conf

step 51)

echo \#include extensions_a2billing.conf >> /etc/asterisk/extensions_custom.conf

step 52) remove PHP info

vi /var/www/html/a2billing/common/lib/admin.defines.php

define ("PHP_QUICK_PROFILER", false);

vi /var/www/html/a2billing/common/lib/agent.defines.php

define ("PHP_QUICK_PROFILER", false);

vi /var/www/html/a2billing/common/lib/customer.defines.php

define ("PHP_QUICK_PROFILER", false);

step 52)

http:///a2billing/

user: root
pass: changepassword

What is A2Billing


A2Billing combined with Asterisk now gives any Telecom company a very good reason to consider the A2Billing Soft-Switch over the traditional offerings for TDM and VoIP Soft-Switches as well as wholesale and IP PBX billing, particularly when you consider the cost of A2Billing – FREE! If you want to launch any of the following services, then A2Billing may be the system for you:
  • Traditional Calling Card services – A2Billing can be configured to provide standard calling card services via traditional “dial through”, with PIN or CID authentication.
  • Callback services, A2Billing supports a number of call-back methods including ANI, DID and web based call-backs.
  • VoIP residential services – Customers can be issued with a softphone or hard phone and be billed for calls made via Voice over IP.
  • VoIP wholesale termination - A2Billing and Asterisk can be used as a softswitch to terminate and bill large numbers of VoIP minutes from a number of sources such as resellers and distributors of your services.
  • VoIP termination for Asterisk and FreePBX systems. – With the growth of IP based PBX systems, as well as the asterisk based systems, A2Billing can be used to provide services and billing to IP PBX resellers and Asterisk system integrators.
  • DID termination and redirection. DID can be redirected to any SIP, IAX or PSTN destination with monthly charges and duration based charges.
Its is fair to say that A2Billing when combined with Asterisk is is now a full featured telecom platform and softswitch providing converged services, with self contained billing (pre or post-paid), reporting and statistics for IP and TDM based voice networks and can be configured to supply a wide range of services, rate calls, prepare and send out invoices, as well as accept payments via a number of payment service providers.
The A2Billing solution comprises of the following components: -
  • Server: The computer to run the system.
  • Line Interface Cards: The Digium hardware (optional)to connect to the TDM network (PRI, BRI, Analogue)
  • Linux: The base operating system
  • Asterisk: The telephony engine
  • Apache: The web server
  • MySQL/Postgresql: The back end database
  • A2Billing: The Billing engine handling Authentication, Authorisation and Accounting.
The platform can be fitted with a TDM cards to interconnect with the PSTN, and can support in excess of 120 concurrent calls given the right hardware. If more capacity is required, then more Asterisk servers can be added as necessary.
The A2Billing Platform has been deployed in a number of commercial environments by both traditional TDM based telecoms companies wishing to move into the VoIP market, and calling card and call-shop businesses. Additionally, there has been a lot of interest from IT and networking companies who are beginning to deploy VoIP PBXs in addition to their traditional business, and wish to enjoy an ongoing income by terminating their customer’s calls using A2Billing as their Wholesale Billing Platform.
A2Billing is licenced under the AGPL – this means that you have the freedom to modify the system to suit your own needs, within the rules of the AGPL.

official website for a2billing is www.a2billing.org.

Asterisk Installation

download asterisk source from http://www.asterisk.org/downloads on you local system. as it is *.tar.gz file you have to decompress it using the following command
tar -zxf  asterisk-1.XXX.tar.gz. >>> out put would be the directory with the name asterisk-1.XXX
go the that directory using the "cd asterisk-1.XXX" command and run the following commands.

make clean
make
make all
make install

and thats it.

for more details follow instruction given on below link.

http://www.voip-info.org/wiki/view/Asterisk+installation+for+CentOS+4.x

Monday, November 9, 2009

What is Asterisk?


Asterisk is the world's most popular open source telephony project. Under development since 1999, Asterisk is free, open source software that turns an ordinary computer into a feature-rich voice communications server. Asterisk makes it simple to create and deploy a wide range of telephony applications and services. Code for Asterisk, originally written by Mark Spencer of Digium, Inc., has been contributed from open source software engineers around the world. Currently boasting over two million users, Asterisk supports a wide range of telephony protocols. It includes rich support for the handling and transmission of voice over traditional telephony interfaces including analog lines, ISDN-BRI lines and digital T1/E1 trunks. Asterisk also features support for a wide range of VoIP protocols including SIP, IAX and H.323 among others. It supports U.S. and European standard signaling types used in business phone systems, allowing it to bridge between next-generation voice-data integrated networks and existing infrastructure.
Asterisk is released as open source under the GNU General Public License (GPL), and it is available for download free of charge. Asterisk® is the leading open source telephony project and the Asterisk community has been ranked as a key factor in the growth of VoIP.

Sunday, November 8, 2009

Free Books Sites

here are some websites, where you can find free book of all categories i.e computer, information technology, OS ( Unix, Linux, Windows, Solaris, HP-UX, FreeBSD), Networks, Telecomunications etc.
http://www.getfreeebooks.com
http://www.freetechbooks.com/
http://freecomputerbooks.com/
http://www.freebookcentre.net/
http://www.techbooksforfree.com

i hope you will find the above links very usefull.