How to install PIAF on a Xen VPS

Written by admin on November 22, 2014. Posted in PIAF

This method was tested on  Centos 6 - 32bit

1. Download Media

# cd /media
# wget ''

2. Mount Iso

# mkdir iso

# mount -o loop pbxinaflash20624-i386.iso /media/iso


3. Create Repo

# echo 

name=CentOS-$releasever - Local
' > /etc/yum.repos.d/CentOS-Local.repo

# yum --disablerepo=\* --enablerepo=c6-local upgrade

4. Install dependencies

# yum --disablerepo=\* --enablerepo=c6-local groupinstall additional-devel base cifs-file-server compat-libraries console-internet core debugging development mail-server ftp-server hardware-monitoring java-platform legacy-unix mysql network-file-system-client network-tools php performance perl-runtime security-tools server-platform server-policy system-management system-admin-tools web-server

# yum --disablerepo=\* --enablerepo=c6-local install kernel-devel php php-mysql php-gd php-mbstring php-pear php-pear-db perl perl-libwww-perl perl-DateManip perl-DBD-mysql perl-DBI perl-Net-DNS perl-suidperl perl-XML-Parser audiofile-devel dhcp gd lm_sensors libusb-devel mysql-devel gcc-c++ flite flite-devel automake xinetd tftp-server piafdl piafxtras joe gtk2 gtk2-devel arts arts-devel esound-devel jack-audio-connection-kit lcms libart_lgpl-devel libogg-devel libvorbis-devel nas pulseaudio-libs SDL alsa-lib-devel libmng libtool-ltdl libtool-ltdl-devel qt dialog coreutils sqlite-devel libstdc++-devel tzdata ntp ntpdate php-process php-imap php-xml

# /usr/sbin/ntpdate -su mkdir -p /etc/pbx mkdir -p /etc/viaf mkdir -p /etc/siaf date --iso-8601=minutes > /etc/pbx/.installdate echo "20624" > /etc/pbx/.isoversion echo "20624" > /etc/viaf/.isoversion echo "20624" > /etc/siaf/.isoversion echo "ks" > /etc/pbx/.installmethod echo "ks" > /etc/viaf/.installmethod echo "ks" > /etc/siaf/.installmethod echo "/usr/local/sbin/isomenu" >> /etc/rc.d/rc3.d/S99local /bin/cp -f /usr/src/piafxtras/preinstallmenu/piafxtras-menu /usr/local/sbin/piafxtras-menu chmod +x /usr/local/sbin/piafxtras-menu cat /usr/src/piafxtras/preinstallmenu/motd.tmp >/etc/motd

5.Unmount media and reboot to continue with installation

# umount /media/iso

# reboot

6. Once rebooted login via console. and follow the installation instructions and you are done.

How to reset passwords for Freepbx, A2billing, Elastix and PIAF

Written by admin on November 16, 2014. Posted in A2billing, Asterisk, Elastix, Freepbx, PIAF, Server Security

Many times i get asked how to reset passwords in different systems. This article will explain how to do this in some VOIP systems.


1. FreePBX® 

To reset the admin password in FreePBX® you do the following:

Login to your ssh client and type the following

amportal admin auth_none

You will get the following response

Please wait...

trying to run as user asterisk:

[AUTHTYPE] changed from previous value: [database] to new value: [none]

Now login to yourFreePBX®  using username admin and no password and edit/add/create  admin details

After that go into your ssh and enter

amportal admin auth_database

You will get this response

Please wait...

trying to run as user asterisk:

[AUTHTYPE] changed from previous value: [none] to new value: [database]

You are done. You can now logout of FreePBX®  and login with new credentials

Please note that FreePBX® is a Registered Trademark of Schmooze Com, Inc and our mention of it in this or any other tutorial does not mean we are in any way associated or affiliated with them.


2. A2billing

To reset A2billing password you need to login to your ssh

1. Determine the database name, user and password for your A2Billing database

# head -n 15 /etc/a2billing.conf

The settings are normally at the top of the file so we just need the first 15 lines. They are usually

user = a2billinguser
password = a2billing
dbname = mya2billing

2. Log in to MySQL using the details we just got for the A2Billing database -

# mysql -u a2billing-user -p mya2billing
Enter password: a2billing

3. Change the password for root to ‘changepassword’ by using the following string

#mysql> update cc_ui_authen set pwd_encoded = '410fc6268dd3332226de95e42d9efa4046c5463769d7493b85e65cfa5c26362dc2455cc23c0bc5831deb008def4ab11a9eaa9b76ba3f377da134f39ec60dd758' where login='root';

4. You should now be able to login to A2Billing using the username/password of root/changepassword.

The A2billing password reset part is courtesy of  Matt Newcombe


3. Elastix

For Elastix just login to your ssh and enter the following line

# sqlite3 /var/www/db/acl.db "UPDATE acl_user SET md5_password = '`echo -n password|md5sum|cut -d ' ' -f 1`' WHERE name = 'admin'"

Replace the red coloured password with your desired password.


4. PBX in a flash (PIAF)

In PIAF login to ssh and enter the following

# passwd-master

This will change all your access passwords to the new one that you will be prompted to provide.

Thats it for now