CODE: SELECT ALL
php /var/www/html/mbilling/cron.php Backup
CODE: SELECT ALL
yum clean all
yum -y install kernel-devel.`uname -m`
yum -y install gcc.`uname -m` gcc-c++.`uname -m` make.`uname -m` wget.`uname -m` bison.`uname -m` openssl-devel.`uname -m` ncurses-devel.`uname -m` doxygen.`uname -m` newt-devel.`uname -m` mlocate.`uname -m` lynx.`uname -m` tar.`uname -m` wget.`uname -m` nmap.`uname -m` bzip2.`uname -m` mod_ssl.`uname -m` speex.`uname -m` speex-devel.`uname -m` unixODBC.`uname -m` unixODBC-devel.`uname -m` libtool-ltdl.`uname -m` sox libtool-ltdl-devel.`uname -m` flex.`uname -m` screen.`uname -m` autoconf automake libxml2.`uname -m` libxml2-devel.`uname -m` sqlite* subversion
yum -y install php.`uname -m` php-cli.`uname -m` php-devel.`uname -m` php-gd.`uname -m` php-mbstring.`uname -m` php-pdo.`uname -m` php-xml.`uname -m` php-xmlrpc.`uname -m` php-process.`uname -m` php-posix libuuid-devel.`uname -m`
yum -y install jansson.`uname -m` jansson-devel.`uname -m` unzip.`uname -m`
yum -y install mysql mariadb-server mariadb-devel mariadb php-mysql mysql-connector-odbc git
yum -y install epel-release dmidecode gtk2-devel binutils-devel svn libtermcap-devel libtiff-devel audiofile-devel cronie cronie-anacron
CODE: SELECT ALL
apt-get -o Acquire::Check-Valid-Until=false update
apt-get install -y curl php5-fpm php5 php5-mcrypt libmyodbc unixodbc-bin apache2 php5-dev php5-common php5-cli php5-gd php-pear php5-cli php-apc php5-curl libapache2-mod-php5 libxml2 libxml2-dev openssl libcurl4-openssl-dev gettext gcc g++ libncurses5-dev sqlite3 libsqlite3-dev subversion mpg123
echo mysql-server mysql-server/root_password password ${password} | debconf-set-selections
echo mysql-server mysql-server/root_password_again password ${password} | debconf-set-selections
apt-get install -y mysql-server php5-mysql mysql-client
apt-get install -y unixODBC unixODBC-dev unzip git
apt-get install -y libmysqlclient15-dev
CODE: SELECT ALL
cd /usr/src
wget http://www.digip.org/jansson/releases/jansson-2.7.tar.gz
tar -zxvf jansson-2.7.tar.gz
cd jansson-2*
./configure
make clean
make && make install
ldconfig
CODE: SELECT ALL
mv /usr/lib/asterisk/modules /usr/lib/asterisk/modules_11
CODE: SELECT ALL
cd /usr/src
rm -rf asterisk*
clear
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz
cd /usr/src
tar xzvf asterisk-13-current.tar.gz
rm -rf asterisk-13-current.tar.gz
cd asterisk-*
useradd -c 'Asterisk PBX' -d /var/lib/asterisk asterisk
mkdir /var/run/asterisk
mkdir /var/log/asterisk
chown -R asterisk:asterisk /var/run/asterisk
chown -R asterisk:asterisk /var/log/asterisk
make clean
./configure --with-ssl
make menuselect.makeopts
menuselect/menuselect --enable res_config_mysql menuselect.makeopts
menuselect/menuselect --enable format_mp3 menuselect.makeopts
menuselect/menuselect --enable codec_opus menuselect.makeopts
menuselect/menuselect --enable codec_silk menuselect.makeopts
menuselect/menuselect --enable codec_siren7 menuselect.makeopts
menuselect/menuselect --enable codec_siren14 menuselect.makeopts
contrib/scripts/get_mp3_source.sh
make
make install
ldconfig
CODE: SELECT ALL
mv /var/www/html/mbilling /usr/local/src/mbilling_5
cd /var/www/html
git clone https://github.com/magnussolution/magnusbilling6.git mbilling
cd /var/www/html/mbilling/
rm -rf /var/www/html/mbilling/tmp && mkdir /var/www/html/mbilling/tmp
mkdir /var/www/html/mbilling/assets
chown -R asterisk:asterisk /var/www/html/mbilling
mkdir /var/run/magnus
touch /etc/asterisk/extensions_magnus.conf
touch /etc/asterisk/sip_magnus_register.conf
touch /etc/asterisk/sip_magnus.conf
touch /etc/asterisk/sip_magnus_user.conf
touch /etc/asterisk/iax_magnus_register.conf
touch /etc/asterisk/iax_magnus.conf
touch /etc/asterisk/iax_magnus_user.conf
CODE: SELECT ALL
8 8 * * * php /var/www/html/mbilling/cron.php servicescheckCODE: SELECT ALL
change
* * * * * php /var/www/html/mbilling/cron.php MasiveCall
to
* * * * * php /var/www/html/mbilling/cron.php MassiveCall
CODE: SELECT ALL
echo "
[general]
bandwidth=low
disallow=lpc10
jitterbuffer=no
autokill=yes
#include iax_magnus_register.conf
#include iax_magnus_user.conf
#include iax_magnus.conf
" > /etc/asterisk/iax.confCODE: SELECT ALL
chown -R asterisk:asterisk /var/lib/php/session/
chown -R asterisk:asterisk /var/spool/asterisk/outgoing/
chown -R asterisk:asterisk /etc/asterisk
chown -R asterisk:asterisk /var/www/html/mbilling
chmod -R 777 /tmp
chmod -R 555 /var/www/html/mbilling/
chmod -R 750 /var/www/html/mbilling/resources/reports
chmod -R 774 /var/www/html/mbilling/protected/runtime/
chmod +x /var/www/html/mbilling/agi.php
mkdir -p /usr/local/src/magnus/monitor
mkdir -p /usr/local/src/magnus/sounds
mkdir -p /usr/local/src/magnus/backup
mv /usr/local/src/backup* /usr/local/src/magnus/backup
chown -R asterisk:asterisk /usr/local/src/magnus/
chmod -R 755 /usr/local/src/magnus/
chmod 774 /var/www/html/mbilling/resources/ip.blacklist
chmod -R 655 /var/www/html/mbilling/tmp
chmod -R 750 /var/www/html/mbilling/resources/sounds
chmod -R 770 /var/www/html/mbilling/resources/images
chmod -R 755 /var/www/html/mbilling/assets/
CODE: SELECT ALL
reboot