SARK V4.0.1 Debian install
Contents
SARK 4.0.1 Beta Wheezy Install
This page assumes you already have installed a working 4.0.0 version of sail and that it is the latest release. If it isn't then install/upgrade it using the notes elsewhere in the wiki.
There is currently no repo image for 4.0.1 Beta so you will need to download the package and install it with dpkg. Proceed as follows;
wget http://sailpbx.com/sail/sail-4.0/debs/sail.gpg.key apt-key add sail.gpg.key echo deb http://sailpbx.com/sail/sail-4.0/debs/repo/ wheezy main >> /etc/apt/sources.list apt-get update
On some older S200 installs you may see a key verification error. You can fix this with the following (run apt-get update again after you apply).
gpg --keyserver keys.gnupg.net --recv-key 8B48AD6246925553 gpg -a --export 8B48AD6246925553 | apt-key add -
Now you can install sail
apt-get install sail
The install will take a good few minutes depending upon the speed of the donor box and your internet link. During the install you will be asked to enter a root password for MySQL (make a note of it, you'll need it later). You will also be asked to enter the international dial code (IDD) for your country. For example, if you are in the UK, this would be 44. Let the install run to its conclusion.
Seed the CDR database
Now you can seed the Asterisk MySQL CDR database with the following command (substitute the MySQL root password you gave during the sail installation).
mysql -u root --password={your mysql root password} < /opt/sark/stat/asterisk-stat-v2/cdr-mysql-setup.sql
Install Asterisk extra sounds package
SAIL requires the Asterisk extra sounds package. There is no deb available for this but it's pretty easy to install. At the linux CLI do the following
cd /usr/share/asterisk/sounds wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en-gsm-current.tar.gz tar xvfz asterisk-extra-sounds-en-gsm-current.tar.gz rm asterisk-extra-sounds-en-gsm-current.tar.gz
Clean up
You're done - reboot it
reboot
your sail app will be at http://your.server.ip.address
- UID - admin
- PWD - sarkadmin
Installing a Mail agent
You can use whatever mail agent you like on your server. Exim, sendmail, whatever is your favourite. SARK has on-board support for a lightweight mail agent called ssmtp. If you install it then sark will provide a tab in the networking section for you to configure it. Install it with...
apt-get install ssmtp
There is a setup guide for Asterisk vmail to email HERE