mirror of
https://github.com/jambonz/jambonz-infrastructure.git
synced 2026-01-25 02:08:27 +00:00
updates to latest freeswitch (1.10.10), includes latest drachtio-freeswitch-modules with some fixes, updates to lws 4.3.2 (which has MIT License), and some fixes for debian bookworm though not working yet
31 lines
997 B
Bash
31 lines
997 B
Bash
#!/bin/bash
|
|
VERSION=$1
|
|
DISTRO=$2
|
|
|
|
echo "drachtio version to install is ${VERSION} on ${DISTRO}"
|
|
|
|
chmod 0777 /usr/local/src
|
|
cd /usr/local/src
|
|
|
|
git clone https://github.com/drachtio/drachtio-server.git -b ${VERSION}
|
|
cd drachtio-server
|
|
git submodule update --init --recursive
|
|
./autogen.sh && mkdir -p build && cd $_ && ../configure --enable-tcmalloc=yes CPPFLAGS='-DNDEBUG -g -O2' && make -j 4 && sudo make install
|
|
|
|
echo "installing drachtio for aws"
|
|
sudo mv /tmp/drachtio.service /etc/systemd/system
|
|
sudo mv /tmp/drachtio-5070.service /etc/systemd/system
|
|
|
|
sudo mv /tmp/drachtio.conf.xml /etc
|
|
sudo chmod 644 /etc/drachtio.conf.xml
|
|
sudo chmod 644 /etc/systemd/system/drachtio.service
|
|
sudo systemctl enable drachtio
|
|
sudo systemctl restart drachtio
|
|
sudo systemctl status drachtio.service
|
|
|
|
sudo mv /tmp/drachtio-5070.conf.xml /etc
|
|
sudo chmod 644 /etc/drachtio-5070.conf.xml
|
|
sudo chmod 644 /etc/systemd/system/drachtio-5070.service
|
|
sudo systemctl enable drachtio-5070
|
|
sudo systemctl restart drachtio-5070
|