From 38937d567e2780c0b9ae7061c3090a1d46ae0157 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 8 Oct 2024 18:46:49 -0600 Subject: [PATCH] Use the mod_pgsql.patch --- ubuntu/resources/switch/source-release.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ubuntu/resources/switch/source-release.sh b/ubuntu/resources/switch/source-release.sh index 1cc587e..7f3bccc 100755 --- a/ubuntu/resources/switch/source-release.sh +++ b/ubuntu/resources/switch/source-release.sh @@ -76,6 +76,18 @@ cd /usr/src/freeswitch-$switch_version # bootstrap is needed if using git ./bootstrap.sh -j +#1.10.0 and newer +if [ $(echo "$switch_version" | tr -d '.') -gt 1100 ]; then + #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 + + #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 + + #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/ubuntu/resources/switch/source/mod_pgsql.patch +fi + # enable required modules sed -i /usr/src/freeswitch-$switch_version/modules.conf -e s:'#applications/mod_callcenter:applications/mod_callcenter:' sed -i /usr/src/freeswitch-$switch_version/modules.conf -e s:'#applications/mod_cidlookup:applications/mod_cidlookup:'