From 32780058c2c9c62300031aca9dc9f67eaf635b55 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 23 Nov 2024 16:34:47 -0700 Subject: [PATCH] Update the install to use a git repo --- debian/resources/config.sh | 2 +- debian/resources/switch/source-release.sh | 11 ++++++----- ubuntu/resources/switch/source-release.sh | 7 ++++--- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/debian/resources/config.sh b/debian/resources/config.sh index 4089cde..01b4d0e 100755 --- a/debian/resources/config.sh +++ b/debian/resources/config.sh @@ -9,7 +9,7 @@ system_branch=5.3 # master, 5.3 switch_branch=stable # master, stable switch_source=true # true (source compile) or false (binary package) switch_package=false # true (binary package) or false (source compile) -switch_version=1.10.11 # which source code to download, only for source +switch_version=1.10.12 # which source code to download, only for source switch_tls=true # true or false switch_token= # Get the auth token from https://signalwire.com # Signup or Login -> Profile -> Personal Auth Token diff --git a/debian/resources/switch/source-release.sh b/debian/resources/switch/source-release.sh index e979563..f8a4568 100755 --- a/debian/resources/switch/source-release.sh +++ b/debian/resources/switch/source-release.sh @@ -100,16 +100,17 @@ if [ $switch_branch = "stable" ]; then #1.10.0 and newer if [ $(echo "$switch_version" | tr -d '.') -gt 1100 ]; then - wget http://files.freeswitch.org/freeswitch-releases/freeswitch-$switch_version.-release.zip - unzip freeswitch-$switch_version.-release.zip - mv freeswitch-$switch_version.-release freeswitch-$switch_version + git clone -b $switch_version --single-branch https://github.com/fusionpbx/freeswitch freeswitch-$switch_version + #wget http://files.freeswitch.org/freeswitch-releases/freeswitch-$switch_version.-release.zip + #unzip freeswitch-$switch_version.-release.zip + #mv freeswitch-$switch_version.-release freeswitch-$switch_version cd /usr/src/freeswitch-$switch_version #apply rtp timestamp patch - Fix RTP audio issues use the following for additional information. https://github.com/briteback/freeswitch/commit/9f8968ccabb8a4e0353016d4ea0ff99561b005f1 - patch -u /usr/src/freeswitch-$switch_version/src/switch_rtp.c -i /usr/src/fusionpbx-install.sh/debian/resources/switch/source/switch_rtp.diff + #patch -u /usr/src/freeswitch-$switch_version/src/switch_rtp.c -i /usr/src/fusionpbx-install.sh/debian/resources/switch/source/switch_rtp.diff #apply pull request 2300 to Fix session deadlock that results in stale or stuck calls. https://github.com/signalwire/freeswitch/pull/2300 - patch -d /usr/src/freeswitch-$switch_version/src -i /usr/src/fusionpbx-install.sh/debian/resources/switch/source/pull_2300.diff + #patch -d /usr/src/freeswitch-$switch_version/src -i /usr/src/fusionpbx-install.sh/debian/resources/switch/source/pull_2300.diff #apply mod_pgsql patch #patch -u /usr/src/freeswitch-$switch_version/src/mod/databases/mod_pgsql/mod_pgsql.c -i /usr/src/fusionpbx-install.sh/debian/resources/switch/source/mod_pgsql.patch diff --git a/ubuntu/resources/switch/source-release.sh b/ubuntu/resources/switch/source-release.sh index 3db771b..387b7e8 100755 --- a/ubuntu/resources/switch/source-release.sh +++ b/ubuntu/resources/switch/source-release.sh @@ -68,9 +68,10 @@ cd /usr/src #mv freeswitch-$switch_version freeswitch #cd /usr/src/freeswitch #1.10.0 and newer -wget http://files.freeswitch.org/freeswitch-releases/freeswitch-$switch_version.-release.zip -O freeswitch-$switch_version.-release.zip -unzip freeswitch-$switch_version.-release.zip -mv freeswitch-$switch_version.-release freeswitch-$switch_version +git clone -b $switch_version --single-branch https://github.com/fusionpbx/freeswitch freeswitch-$switch_version +#wget http://files.freeswitch.org/freeswitch-releases/freeswitch-$switch_version.-release.zip -O freeswitch-$switch_version.-release.zip +#unzip freeswitch-$switch_version.-release.zip +#mv freeswitch-$switch_version.-release freeswitch-$switch_version cd /usr/src/freeswitch-$switch_version # bootstrap is needed if using git