GOOD NEWS Gotcha-Free PBX: ElastixMT GUI

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Things are about to get interesting. Guess what just popped up on GitHub.

https://github.com/elastixmt/elastix-mt-gui (with GPL2 license)

CEL-24KWEAAbEtK.jpg:large
 

hecatae

resident hecatae
Joined
Feb 7, 2014
Messages
760
Reaction score
199
Let me know if you need any testing?
 

krzykat

Telecom Strategist
Joined
Aug 2, 2008
Messages
3,145
Reaction score
1,235
What I need is more beer. :cheers2:


If it means getting that working better, let us know what brand and how to get it to you !!!

With the new repository you have established, do you plan to have one for the Elastix MT version as well?
Will there be any collaboration with the Elastix folks to get the best of both worlds?
 

hecatae

resident hecatae
Joined
Feb 7, 2014
Messages
760
Reaction score
199
big tip,

dont run
Code:
#Reconfigure Mysql
echo "SET PASSWORD FOR 'root'@'localhost' = PASSWORD('passw0rd');" | mysql -u root

until installing everything else, otherwise none of the sql tables install, very, very frustrating
 

vic555

Member
Joined
Aug 24, 2014
Messages
76
Reaction score
14
So hecatae does this mean everything works as as advertised?
big tip,

dont run
Code:
#Reconfigure Mysql
echo "SET PASSWORD FOR 'root'@'localhost' = PASSWORD('passw0rd');" | mysql -u root

until installing everything else, otherwise none of the sql tables install, very, very frustrating
 

vic555

Member
Joined
Aug 24, 2014
Messages
76
Reaction score
14
Hi vic555 it's elastix 3.0, was it ever advertised as working? jokes aside, I have yet to find the time to attempt another install.

I know you are working on a number of platforms, and distributions. Elastix 2.xx was always a bright spot, with some security configuration questions; MT4 (Beta) now on Centos 7, appears to be bogged down in some kind of an unknown development state, so we we were looking to Elastix 3.0 for a production setup if and when appropriate.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
It's a very long line at the moment. Hopefully, that will provide the Elastix folks a little time to work out some kinks.
 

hecatae

resident hecatae
Joined
Feb 7, 2014
Messages
760
Reaction score
199
amending the install script:

Code:
# elastix-mt-gui - Elastix MT GUI
 
![ScrennShot](https://raw.githubusercontent.com/lordbasex/elastix-mt-gui/master/logo/elastixmtgui.png)
 
 
This code is distributed under the GNU LGPL v2.0 license.
 
 
## Introduction
 
 
## Installation
 
Install the git package and follow the instructions on a CentOS 6.
 
 
```bash
 
#Disable Selinux
sed -i 's/enforcing/disabled/g' /etc/selinux/config/config
 
#Activating the interface eth0
sed -i "s/^\(ONBOOT=\).*$/\1yes/g" /etc/sysconfig/network-scripts/ifcfg-eth0
 
#disable iptables
service iptables save
service iptables stop
chkconfig iptables off
 
#Yum Update
wget https://raw.githubusercontent.com/lordbasex/elastix-mt-gui/master/elastix-framework/additionals/etc/yum.repos.d/elastix.repo -O /etc/yum.repos.d/elastix.repo
yum -y update
 
 
cd /usr/src
 
#System packages
yum -y install system-config-date system-config-firewall-base system-config-keyboard system-config-language system-config-network-tui system-config-users
#Packages for this implementation.
yum -y install dialog vim mc screen nmap wget mlocate mailx
#Packages for Development
yum -y groupinstall "Development Tools"
yum -y install gcc gcc-c++ make openssl openssl-devel newt-devel ncurses-devel autoconf automake libpcap-devel
yum -y install rpm-build redhat-rpm-config rpmdevtools
#Packages for web server.
yum -y groupinstall "Web Server"
yum -y install mod_ssl openssl
#Packages to the database.
yum -y install mysql-server mysql-connector-odbc
#Packages for php
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm -O /usr/src/epel-release-6-8.noarch.rpm
rpm -ivh /usr/src/epel-release-6-8.noarch.rpm
yum -y install php-mcrypt
yum -y install php php-cli php-common php-devel php-gd php-imap php-mbstring  php-mysql php-pdo php-pear php-pear-DB php-process php-soap php-xml
#Packages for perl
yum -y install perl-Archive-Tar perl-Archive-Zip perl-CGI perl-Convert-BinHex perl-Crypt-OpenSSL-Bignum perl-Crypt-OpenSSL-RSA perl-Date-Manip perl-Digest-HMAC perl-Digest-SHA perl-Encode-Detect perl-HTML-Parser perl-HTML-TokeParser-Simple perl-HTTP-Response-Encoding perl-IO-Multiplex perl-IO-Socket-INET6 perl-IO-Socket-SSL perl-IO-stringy perl-MIME-tools perl-Mail-DKIM perl-Mail-IMAPClient perl-Net-IP perl-Net-Server perl-Net-Telnet perl-NetAddr-IP perl-String-CRC32 perl-URI perl-Unix-Syslog perl-WWW-Mechanize perl-XML-Parser  perl-suidperl
 
#Git 2.0.4
yum -y remove git
yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
yum -y install  gcc perl-ExtUtils-MakeMaker
 
cd /usr/src
wget https://www.kernel.org/pub/software/scm/git/git-2.0.4.tar.gz
tar xzf git-2.0.4.tar.gz
cd git-2.0.4
make prefix=/usr/local/git all
make prefix=/usr/local/git install
echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc
source /etc/bashrc
 
#Install Asterisk
yum -y install asterisk
/usr/sbin/adduser asterisk
/usr/sbin/usermod -c "Asterisk VoIP PBX" -g asterisk -s /bin/bash -d /var/lib/asterisk asterisk
 
 
#Cloning repository
cd /usr/src
git clone https://github.com/lordbasex/elastix-mt-gui.git
 
#Creating RPM for installation
rpmdev-setuptree
rm -fr /root/rpmbuild/
ln -s /usr/src/elastix-mt-gui/rpmbuild /root/
rpmbuild -ba /root/rpmbuild/SPECS/elastix-agenda.spec
rpmbuild -ba /root/rpmbuild/SPECS/elastix-email_admin.spec
rpmbuild -ba /root/rpmbuild/SPECS/elastix-fax.spec
rpmbuild -ba /root/rpmbuild/SPECS/elastix-firstboot.spec
rpmbuild -ba /root/rpmbuild/SPECS/elastix-framework.spec
rpmbuild -ba /root/rpmbuild/SPECS/elastix-pbx.spec
rpmbuild -ba /root/rpmbuild/SPECS/elastix-portknock.spec
rpmbuild -ba /root/rpmbuild/SPECS/elastix-reports.spec
rpmbuild -ba /root/rpmbuild/SPECS/elastix-security.spec
rpmbuild -ba /root/rpmbuild/SPECS/elastix.spec
rpmbuild -ba /root/rpmbuild/SPECS/elastix-system.spec
 
#Start Services
chkconfig --level 345 ntpd on
chkconfig --level 345 mysqld on
chkconfig --level 345 httpd on
 
/etc/init.d/ntpd start
/etc/init.d/mysqld start
/etc/init.d/httpd start
 
#Reconfigure Mysql
echo "SET PASSWORD FOR 'root'@'localhost' = PASSWORD('eLaStIx.2oo7');" | mysql -u root
 
## INSTALL RPM ##
#Install elastix-firstboot
rpm -i --nodeps /root/rpmbuild/RPMS/noarch/elastix-firstboot-3.0.0-6.noarch.rpm
 
#Install elastix-framework
rpm -i /root/rpmbuild/RPMS/noarch/elastix-framework-3.0.0-12.noarch.rpm
 
#Install elastix-agenda
rpm -i /root/rpmbuild/RPMS/noarch/elastix-agenda-3.0.0-8.noarch.rpm < my install breaks here the elpbx database does not exist....
 
#Install elastix-email_admin
yum -y install cyrus-imapd mailman spamassassin
rpm -i /root/rpmbuild/RPMS/noarch/elastix-email_admin-3.0.0-7.noarch.rpm
 
#Install elastix-fax
yum -y install ghostscript hylafax iaxmodem
rpm -i /root/rpmbuild/RPMS/noarch/elastix-fax-3.0.0-8.noarch.rpm
 
#Install elastix-system
yum -y install dahdi dhcp
rpm -i /root/rpmbuild/RPMS/noarch/elastix-system-3.0.0-8.noarch.rpm
 
#Install elastix-pbx
yum -y install asterisk-chan-allogsm asterisk-chan-extra asterisk-dahdi asterisk-festival asterisk-odbc asterisk-voicemail asterisk-perl festival kamailio kamailio-mysql kamailio-presence kamailio-unixodbc kamailio-utils t*f*t*p-server vsftpd uuid-perl
rpm -i /root/rpmbuild/RPMS/noarch/elastix-pbx-3.0.0-13.noarch.rpm
source /etc/elastix.conf
echo "GRANT ALL PRIVILEGES ON elxpbx.* TO 'asteriskuser'@'localhost' IDENTIFIED BY '${mysqlrootpwd}' WITH GRANT OPTION;" | mysql -u root -p${mysqlrootpwd}
echo "GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO 'asteriskuser'@'localhost' IDENTIFIED BY '${mysqlrootpwd}' WITH GRANT OPTION;" | mysql -u root -p${mysqlrootpwd}
echo "GRANT ALL PRIVILEGES ON kamailio.* TO 'asteriskuser'@'localhost' IDENTIFIED BY '${mysqlrootpwd}' WITH GRANT OPTION;" | mysql -u root -p${mysqlrootpwd}
 
 
#Install elastix-reports
rpm -i /root/rpmbuild/RPMS/noarch/elastix-reports-3.0.0-9.noarch.rpm
 
#Install elastix-portknock
rpm -i /root/rpmbuild/RPMS/x86_64/elastix-portknock-0.0.1-0.x86_64.rpm
 
#Install elastix-security
rpm -i /root/rpmbuild/RPMS/noarch/elastix-security-3.0.0-5.noarch.rpm
```

added my fixes to general code, now looking at why the databases are not created,
 

hecatae

resident hecatae
Joined
Feb 7, 2014
Messages
760
Reaction score
199
ok, finally got time to have a look at this again, comparing the elastixmt kamailio documentation to sipwise's kamailio documentation shows some interesting bits

edit: looks like the elastix.2oo7 password is hardcoded, sigh

edit edit: rtpproxy missing from install instructions, asteriskuser has wrong password, kamailio errors completely, fail2ban does not exist, shall I continue?

if you change the mysql root password from eLaStIx.2oo7 to passw0rd none of the elastix updates install.

Code:
Checking for update-elastix3. NOT FOUND. Installing... tar (child): update-elastix3.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
rm: cannot remove `update-elastix3.tar.gz': No such file or directory
/root/lastupdate-elastix: line 24: /root/update-elastix3: No such file or directory
rm: cannot remove `/root/update-elastix3': No such file or directory
 

hecatae

resident hecatae
Joined
Feb 7, 2014
Messages
760
Reaction score
199
final result:

Code:
  Incredible PBX 11.13-02 for Elastix 3.0 
                                                                                                     
                                                        Asterisk: UP      Apache: UP    MySQL: UP   
                                                        Postfix: UP    IPtables: DN      SSH: UP   
                                                        LAN port: UP    Fail2Ban: DN  Webmin: DN   
                                                        Kamailio: DN  IAX Modem: DN  HylaFax: UP   
                                                                                                     
                                                        RAM:139MB  CentOS 6.7 (x86_64)  Disk:5.4G   
                                                                                                     
                                                        Asterisk 11.13.0          Elastix MT: 3.0   
                                                                                                     
                                                        Private IP:                       
                                                                                                     
                                                        Public IP:                       
                                                                                                     
                                                        System Time: Sun Sep 13 16:38:44 EDT 2015   
                                                                                                     
                                                                                                     
                                                                          <  OK  >

I will be deleting this server on cloudatcost, but yes, too many services are down, and too many packages missing from install script, no fail2ban and no rtpproxy being a big issue
 

vic555

Member
Joined
Aug 24, 2014
Messages
76
Reaction score
14
hecatae wardmundy does that mean that cloud at cost is hosed (at least for now)as well? It is well known that Elastix.3.0MT was never ready for primetime.

I have not definatively heard of anything pointing to a viable muti-tenant open source Software solution, though some say the Third Lane offering can work for.those can do some heavy configuration lifting. Please post if possible.
 

hecatae

resident hecatae
Joined
Feb 7, 2014
Messages
760
Reaction score
199
hecatae wardmundy does that mean that cloud at cost is hosed (at least for now)as well? It is well known that Elastix.3.0MT was never ready for primetime.

I have not definatively heard of anything pointing to a viable muti-tenant open source Software solution, though some say the Third Lane offering can work for.those can do some heavy configuration lifting. Please post if possible.

vic555 I'm still tinkering with sipwise, let me come back to you on that
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
ThirdLane MT works fine. 10-user license is free so you can try it for yourself. When you're ready to purchase, call Alex and tell him I sent you: 415.261.6601
 

Members online

No members online now.

Forum statistics

Threads
25,781
Messages
167,507
Members
19,201
Latest member
troutpocket
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top