Recurring services are handled via the /etc/crontab. Start or restart FreePBX amportal restart Recurring Services nano /etc/asterisk/extensions_nf Įxten => s,1,GotoIf($["$,1ĭestination Quick Pick: (pick destination) If possible try find examples specific to A2Billing. Search for documentation on Asterisk custom extensions and dialplans. Customizing this to your needs is considered beyond the scope of this document. Depending on what you are doing and how you are doing it some may not apply and some may not work. If not using FreePBX then this would go into /etc/asterisk/nf. Ln -s /var/www/html/a2billing/common/lib /var/lib/asterisk/agi-bin/lib Add the following extensions to /etc/asterisk/extensions_nf Set up AGI mkdir /var/lib/asterisk/agi-binĬp a2billing.php /var/lib/asterisk/agi-binĬp a2billing_monitoring.php /var/lib/asterisk/agi-binĬhown -R asterisk:asterisk /var/lib/asterisk/agi-binĬhmod 755 /var/lib/asterisk/agi-bin/a2billing.phpĬhmod 755 /var/lib/asterisk/agi-bin/a2billing_monitoring.php
Once logged in click change password link at bottom left and change it. cp -rf /usr/src/a2billing/admin /var/www/html/a2billingĬp -rf /usr/src/a2billing/agent /var/www/html/a2billingĬp -rf /usr/src/a2billing/customer /var/www/html/a2billingĬp -rf /usr/src/a2billing/common /var/www/html/a2billing chown -R asterisk:asterisk /var/www/html/a2billingĬhmod 755 /var/www/html/a2billing/admin/templates_cĬhmod 755 /var/www/html/a2billing/customer/templates_cĬhmod 755 /var/www/html/a2billing/agent/templates_c Check admin web interfaceįrom a web browser go to ( make sure you get the authentication screen. mkdir /var/www/html/a2billingĭirectory may already exist. Write=system,call,log,verbose,command,agent,user Set up a2billing web foldersĪ2billing has 3 GUIs. Read=system,call,log,verbose,command,agent,user If you don't have FreePBX installed then you should follow the INSTALL.rst instructions included with the a2billing source files. You can also do it via the FreePBX Asterisk APImodule. Touch /etc/asterisk/additional_a2billing_sip.confĮcho \#include additional_a2billing_sip.conf > /etc/asterisk/sip_nfĮcho \#include additional_a2billing_iax.conf > /etc/asterisk/iax_nfĬhown -Rf asterisk:asterisk /etc/asterisk/additional_a2billing_iax.confĬhown -Rf asterisk:asterisk /etc/asterisk/additional_a2billing_sip.conf Run sound installation script cd /usr/src/a2billing/addons/soundsĬhown -R asterisk:asterisk /var/lib/asterisk/sounds/ Add the following to /etc/asterisk/manager_nf Touch /etc/asterisk/additional_a2billing_iax.conf If you just have Asterisk installed then use the files specified in the INSTALL.rst instructions included with A2billing source files. Some of these files assume you have FreePBX installed and not just Asterisk. If unsure then proceed as if you are not using Asterisk Realtime. Only required if not using Asterisk Realtime. nano /etc/nf ĭbtype = mysql Create files and set permissions Make sure the following parameters are set as shown. Otherwise skip down to Create A2Billing Database. If you do not know what it is this guide has a procedure for changing the MySQL root password which is as follows. If you do not know the MySQL root password and want to change it This will be the password the following commands will ask for. For distributions such as PiaF, the password might be passw0rd.
For PowerPBX install guide a password of abcdef was used. If you get access denied the password has already been set. mysqladmin -u root password 'rootmysqlpassword' If MySQL root password already exists If you did not create a mysql root password during the asterisk install you should create one now.
rpm -Uvh yum update Install additional required packages if not already installed yum -y install php-mcrypt perl-DBD-Pg git Get A2Billing source cd /usr/src In other words, not in a Gnome/KDE GUI and not using a limited access account. The following 2 diagrams illustrate A2billing inbound and outbound call flow.Īll commands are assuming you are at run level 3 running in a shell as root. We do not cover the installation of the callback daemon.
It is also assumed you have compiled asterisk realtime driver module ( res_config_mysql) by selecting it in asterisk menuselect before compiling asterisk. It is assumed you already have Linux and Asterisk and FreePBX installed using a procedure similar to this one.
This guide will show how to install A2Billing v2.x on a Redhat Enterprise Linux v6 based system.