Skip to content

Instantly share code, notes, and snippets.

@mgax
Last active October 18, 2016 10:55
Show Gist options
  • Save mgax/97d51d207b40a99dc26cf1b1a0cae477 to your computer and use it in GitHub Desktop.
Save mgax/97d51d207b40a99dc26cf1b1a0cae477 to your computer and use it in GitHub Desktop.
Installation instructions for root.io
#!/bin/bash
## set up freeswitch on debian jessie for root.io
set -e
set -x
curl https://files.freeswitch.org/repo/deb/debian/freeswitch_archive_g0.pub \
| sudo apt-key add -
curl -L https://packagecloud.io/github/git-lfs/gpgkey \
| sudo apt-key add -
echo 'deb http://ftp.ro.debian.org/debian/ jessie-backports main' \
| sudo tee /etc/apt/sources.list.d/jessie-backports.list
echo 'deb http://files.freeswitch.org/repo/deb/freeswitch-1.6/ jessie main' \
| sudo tee /etc/apt/sources.list.d/freeswitch.list
echo 'deb https://packagecloud.io/github/git-lfs/debian/ jessie main' \
| sudo tee /etc/apt/sources.list.d/git-lfs.list
sudo apt-get update
sudo apt-get install -y freeswitch-meta-all freeswitch-mod-shout
sudo apt-get install -y git git-lfs
# append to /etc/freeswitch/autoload_configs/event_socket.xml#configuration/settings:
## <param name="apply-inbound-acl" value="0.0.0.0/0"/>
# uncomment `<load module="mod_shout"/>` in `/etc/freeswitch/autoload_configs/modules.conf.xml`

Instructions to set up root.io locally

rootio_web

git clone https://github.com/rootio/rootio_web.git
cd rootio_web

virtualenv ../venv-web
source ../venv-web/bin/activate
pip install -r requirements.txt

mkdir instance instance/log

cat > instance/rootio.cfg <<ROOTIO_CFG
from pathlib import Path
instance = Path(__file__).resolve().parent
root = instance.parent
PROJECT_ROOT = str(root)
SQLALCHEMY_DATABASE_URI = 'postgres:///rootio'
LOG_FOLDER = str(instance / 'log')
MAIL_SERVER = 'smtp.example.com'
MAIL_USE_TLS = False
MAIL_USE_SSL = False
SECRET_KEY = 'some random secret'
PROJECT = 'Rootio Web'
ADMINS = ['admin@example.com']
DEBUG = True
MEDIA_PREFIX = '/var/local/rootio/media' # github.com/mgax/rootio-test-media
ROOTIO_CFG

./manage.py reset_db

./manage.py demo_data

station-telephony

git clone https://github.com/rootio/station-telephony.git
cd station-telephony

virtualenv ../venv-telephony
source ../venv-telephony/bin/activate
pip install -r requirements.txt

mkdir instance

cat > instance/settings.py <<SETTINGS_PY
from pathlib import Path
root = Path(__file__).resolve().parent.parent
SQLALCHEMY_DATABASE_URI = 'postgres:///rootio'
ROOTIO_WEB_PATH = str(root.parent / 'rootio_web')
ESL_SERVER = '192.168.2.202'
SETTINGS_PY

./run.py

softphone

  • "domain" is the freeswitch server's IP address
  • "user name" is 1007
  • "password" is 1234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment