Last active
August 29, 2015 13:57
-
-
Save zhacker98/9643861 to your computer and use it in GitHub Desktop.
Debian Kamailio Installer from GIT Version 4.1 (Created on Debian 7.0 x64 , but should work on all Debian Variants)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Created for Debian 7.0 x64 (Wheezy) but should work on any Debian Variant | |
blue='\e[0;34m' | |
NC='\e[0m' # No Color | |
echo -e "${blue}Installing Prerequisites Required for the installer to complete${NC}" | |
apt-get install -y autoconf automake devscripts gawk g++ git-core libjpeg-dev libncurses5-dev libtool make python-dev pkg-config libtiff5-dev libperl-dev libgdbm-dev libdb-dev sudo gcc flex bison libmysqlclient-dev libssl1.0.0 libcurl3 libxml2 libpcre3 gettext && \ | |
cd /usr/local/src/ && \ | |
echo -e "${blue}Cloning Kamailio v4.1 from GIT${NC}" | |
git clone --depth 1 --no-single-branch git://git.sip-router.org/kamailio kamailio && cd /usr/local/src/kamailio/ && git checkout -b 4.1 origin/4.1 && \ | |
echo -e "${blue}Compiling Kamailio from Source${NC}" | |
cd /usr/local/src/kamailio/ && make include_modules="db_mysql" cfg && make all && make install && \ | |
echo "DBENGINE=MYSQL" >> /usr/local/etc/kamailio/kamctlrc && \ | |
echo -e "${blue}All Done, Now Go Make It Happen${NC}" | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment