HOWTO :: VoIP: Whosesale :: Calling Card :: OpenSer :: Radius :: Asterisk :: FreeSwitch :: A2Billing :: IVR :: Colo :: Colocations :: GADGETS

March 30, 2010

How to earn from CNAM Revenue Sharing

Filed under: CNAM — Tags: , — jfanning @ 10:52 pm

Every time a call is made to a phone in the U.S. that has caller-id enabled, the terminating phone company does a lookup in one of several national  databases that contain all the U.S. caller-id names and numbers.  This database lookup is called a CNAM dip.  When this database is being ‘dipped’ the originating local phone company get’s compensated. Each and every time – even is the call is not answered.

CNAM Revenue Sharing is when parties receiving CNAM revenue share this with other parties responsible for generating the CNAM revenue.

With SIP VoIP calls  there usually is no CNAM caller id information published to the CNAM database because the Wholesale VoIP Provider does not gain anything from publishing this information. Therefor most of the time these VoIP calls do not generate any CNAM dips and thus no revenue.

CNAM dip revenue is very little per individual dip, we are talking about pennies or even sub-penny level. Therefor collecting CNAM revenue is only applicable for users with a high volume of outbound traffic terminating in the United States. Telemarketing companies, calling card providers, SIP Termination wholesalers etc. make good candidates for CNAM revenue share programs.

CNAM Revenue Share Programs

With CNAM revenue share programs, the customer gets assigned a numer of virtual ANIs (simplified you can see ANIs as telephone numbers). They then program these ANIs to be displayed on their outbound calls as their caller id, the number that shows what number is calling you.

Because this is simply a flag passed on to the SS7 network, it is something that is very easy to do. It does not require the customer to change anything else in their calling paths. Only the programming of the ANI flag with the ANI provided by the CNAM revenue sharing program.

The customer then provides the CNAM revenue sharing party with the caller name (CNAM) they would like to be displayed when they call someone. The CNAM is then distributed to the different CNAM databases where all phone companies get their CNAM data from.

After this, the customer simply gets paid for each call they place that dips into the CNAM database. This can add up to very significant five or even six figure CNAM revenue share commissions.

For more information, please read more about  CNAM Revenue Share from grnVoIP’s website.

March 29, 2010

Installing Asterisk2Billing A2B 1.6 in Debian Lenny 5.0.4

Filed under: A2Billing, Asterisk PBX — Tags: , , , — admin @ 7:19 pm

I assumed that Debian Lenny is already installed on the system. This is a step-by-step procedure how to install Asterisk2Billing or A2B in Debian Lenny. This HowTo is just a copy/paste procedure. Let me know if you run into trouble installing this.

apt-get update
apt-get upgrade
aptitude install ssh ntp screen
aptitude install build-essential libcurl3-dev libvorbis-dev libspeex-dev unixodbc unixodbc-dev libiksemel-dev flex xsltproc linux-headers-`uname -r` g++ libncurses5-dev libnewt-dev libusb-dev subversion git-core flex bison
cd /usr/src/
wget http://downloads.digium.com/pub/asterisk/asterisk-1.4-current.tar.gz
wget http://downloads.digium.com/pub/zaptel/zaptel-1.4-current.tar.gz
wget http://downloads.digium.com/pub/libpri/libpri-1.4-current.tar.gz
wget http://downloads.digium.com/pub/asterisk/asterisk-addons-1.4-current.tar.gz
tar xvfz asterisk-1.4-current.tar.gz
tar xvzf asterisk-1.4-current.tar.gz && tar xvzf zaptel-1.4-current.tar.gz && tar xvzf libpri-1.4-current.tar.gz && tar xvzf asterisk-addons-1.4-current.tar.gz tar
tar xvfz zaptel-1.4.12.1/
cd zaptel-1.4.12.1/
./install_prereq test
./install_prereq install
./configure
make
make install
make config
modprobe ztdummy
cd ../libpri-1.4.10.2/
make && make install
cd ../asterisk-1.4.30/
./configure
make
make install
make samples
make config
asterisk -vvvvvvvvvvvvgc
echo “ztdummy”
echo “ztdummy” >> /etc/modules
cd ../asterisk-addons-1.4-current.tar.gz
cd ..
tar xvfz asterisk-addons-1.4-current.tar.gz
cd asterisk-addons-1.4.10/
./configure && make && make install
make samples
apt-get install apache2 php5 mysql-server
cd /var/www/
wget http://www.asterisk2billing.org/downloads/A2Billing_1.6.0.tar.gz
tar xvfz A2Billing_1.6.0.tar.gz
mv A2Billing_1.6.0.tar.gz /tmp/
apt-get install libapache2-mod-php5 php5 php5-common
apt-get install php5-cli php5-mysql mysql-server apache2 php5-gd
apt-get install openssh-server subversion
apt-get install php5-mcrypt
mysql -u root -p < DataBase/mysql-5.x/a2billing-createdb-user.sql
mysql -u a2billinguser -p mya2billing
mysql -u root -p mya2billing < DataBase/mysql-5.x/a2billing-schema-v1.4.0.sql
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
mysql -u root -p mya2billing < DataBase/mysql-5.x/UPDATE-a2billing-v1.4.3-to-v1.4.4.sql
mysql -u root -p mya2billing < DataBase/mysql-5.x/UPDATE-a2billing-v1.4.4-to-v1.4.4.1.sql
mysql -u root -p mya2billing < DataBase/mysql-5.x/UPDATE-a2billing-v1.4.4.1-to-v1.4.5.sql
mysql -u root -p mya2billing < DataBase/mysql-5.x/UPDATE-a2billing-v1.4.5-to-v1.5.0.sql
mysql -u root -p mya2billing < DataBase/mysql-5.x/UPDATE-a2billing-v1.5.0-to-v1.5.1.sql
mysql -u root -p mya2billing < DataBase/mysql-5.x/UPDATE-a2billing-v1.5.1-to-v1.6.0.sql
mysql -u a2billinguser -p mya2billing
cp a2billing.conf /etc/

touch /etc/asterisk/additional_a2billing_iax.conf
touch /etc/asterisk/additional_a2billing_sip.conf
echo \#include additional_a2billing_sip.conf >> /etc/asterisk/sip.conf
echo \#include additional_a2billing_iax.conf >> /etc/asterisk/iax.conf
chown -Rf www-data /etc/asterisk/additional_a2billing_iax.conf
chown -Rf www-data /etc/asterisk/additional_a2billing_sip.conf
cd addons/sounds/
./install_a2b_sounds.sh
chown -R asterisk:asterisk /var/lib/asterisk/sounds/
vi /etc/asterisk/manager.conf

Notice that we are using the default values (myasterisk, mycode) in this section. The configuration should look like this
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0

[myasterisk]
secret=mycode
read=system,call,log,verbose,command,agent,user
write=system,call,log,verbose,command,agent,user

cd AGI/
cp a2billing.php /var/lib/asterisk/agi-bin/
cp -rf ../common/lib /var/lib/asterisk/agi-bin/
chmod +x /var/lib/asterisk/agi-bin/a2billing.php
mkdir /var/www/a2billing
chown www-data:www-data /var/www/a2billing
mkdir -p /var/lib/a2billing/script
mkdir -p /var/run/a2billing
mv admin a2billing/
mv agent a2billing/
mv customer a2billing/
mv common a2billing/
chmod 755 a2billing/admin/templates_c
chmod 755 a2billing/customer/templates_c
chmod 755 a2billing/agent/templates_c
chown -Rf www-data:www-data /var/www/a2billing/admin/templates_c
chown -Rf www-data:www-data /var/www/a2billing/customer/templates_c/
chown -Rf www-data:www-data /var/www/a2billing/customer/templates_c
chown -Rf www-data:www-data /var/www/a2billing/agent/templates_c
/etc/init.d/apache2 status
/etc/init.d/apache2 restart
apt-get install python-setuptools python-mysqldb python-psycopg2 python-sqlalchemy
easy_install callback-daemon-py/dist/callback_daemon-1.0.prod_r1527-py2.5.egg

Direct a browser to the administrative web interface (http:///a2billing/admin) and login as administrator. Default passwords are:
user: root
pass: changepassword

vi /etc/asterisk/extensions.conf

[default]

include => a2billing

[a2billing]
; CallingCard application
exten => _X.,1,Answer
exten => _X.,2,Wait,2
exten => _X.,3,DeadAGI,a2billing.php
exten => _X.,4,Wait,2
exten => _X.,5,Hangup

[did]
; CallingCard application
exten => _X.,1,DeadAGI(a2billing.php|1|did)

crontab -e

# update the currency table
0 6 * * * php /usr/local/src/a2billing/Cronjobs/currencies_update_yahoo.php

# manage the monthly services subscription
0 6 1 * * php /usr/local/src/a2billing/Cronjobs/a2billing_subscription_fee.php

# To check account of each Users and send an email if the balance is less than the user have choice.
0 * * * * php /usr/local/src/a2billing/Cronjobs/a2billing_notify_account.php

# this script will browse all the DID that are reserve and check if the customer need to pay for it
# bill them or warn them per email to know if they want to pay in order to keep their DIDs
0 2 * * * php /usr/local/src/a2billing/Cronjobs/a2billing_bill_diduse.php

# This script will take care of the recurring service.
0 12 * * * php /usr/local/src/a2billing/Cronjobs/a2billing_batch_process.php

#Generate Invoices at 6am everyday
0 6 * * * php /usr/local/src/a2billing/Cronjobs/a2billing_batch_billing.php

# to proceed the autodialer
*/5 * * * * php /usr/local/src/a2billing/Cronjobs/a2billing_batch_autodialer.php

# manage alarms
0 * * * * php /usr/local/src/a2billing/Cronjobs/a2billing_alarm.php

This is the initial installation for Asterisk2Billing 1.6 in Debian Lenny 5.0.4

March 26, 2010

Installing Nagios 3.2.1 in CentOS 5

Filed under: Nagios — Tags: , , , , — admin @ 12:26 am

Here’s a quick step-by-step procedure on how to install Nagios Monitoring in CentOS 5. The installation is straightforward. You just have to copy and paste it to your SSH Terminal.

yum update
yum install httpd php
yum install gcc glibc glibc-common
yum install gd gd-devel
/usr/sbin/useradd -m nagios
passwd nagios
set nagios as password (I used nagios)
/usr/sbin/groupadd nagcmd
/usr/sbin/usermod -a -G nagcmd nagios
/usr/sbin/usermod -a -G nagcmd apache
mkdir ~/downloads
cd ~/downloads
wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.1.tar.gz
wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.11.tar.gz
tar xvzf nagios-3.2.1.tar.gz
cd nagios-3.2.1
./configure –with-command-group=nagcmd
make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
set password for nagiosadmin = this is the webui
service httpd restart
cd ~/downloads
tar xvzf nagios-plugins-1.4.11.tar.gz
cd nagios-plugins-1.4.11
./configure –with-nagios-user=nagios –with-nagios-group=nagios
make
make install
chkconfig –add nagios
chkconfig nagios on
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
chmod 777 /usr/local/nagios/var/rw/nagios.cmd
service nagios start

Powered by WordPress

HOWTO :: VoIP: Whosesale :: Calling Card :: OpenSer :: Radius :: Asterisk :: FreeSwitch :: A2Billing :: IVR :: Colo :: Colocations :: GADGETS is Digg proof thanks to caching by WP Super Cache!