wget -O - https://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6/freeswitch_archive_g0.pub | apt-key add -
echo "deb http://files.freeswitch.org/repo/ubuntu-1604/freeswitch-1.6/ xenial main" > /etc/apt/sources.list.d/freeswitch.list
# you may want to populate /etc/freeswitch at this point.
# if /etc/freeswitch does not exist, the standard vanilla configuration is deployed
apt-get update && apt-get install -y freeswitch-meta-all
update the newly created instance
sudo apt update -y
Install rtpengine dependecies
sudo apt-get install debhelper iptables-dev libcurl4-openssl-dev
libpcre3-dev libxmlrpc-core-c3-dev markdown libavfilter-dev
libavformat-dev libavresample-dev libevent-dev libglib2.0-dev libhiredis-dev
libjson-glib-dev libpcap0.8-dev libpcap-dev libssl-dev dkms module-assistant
This file contains 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
require('dotenv').config(); | |
console.log('Environment variable TWILIO_ACCOUNT_SID has the value: ', process.env.TWILIO_ACCOUNT_SID); | |
const accountSid = process.env.TWILIO_ACCOUNT_SID; | |
const authToken = process.env.TWILIO_AUTH_TOKEN; | |
const client = require('twilio')(accountSid, authToken); | |
const app = require('express')(); | |
const bodyParser = require('body-parser'); |
OlderNewer