Package Details: freeswitch 1.10.12-1

Git Clone URL: https://aur.archlinux.org/freeswitch.git (read-only, click to copy)
Package Base: freeswitch
Description: An opensource and free (libre, price) telephony system, similar to Asterisk.
Upstream URL: http://freeswitch.org/
Licenses: MPL
Conflicts: freeswitch-fixed, freeswitch-git
Provides: freeswitch
Submitter: None
Maintainer: Korynkai
Last Packager: Korynkai
Votes: 17
Popularity: 0.196693
First Submitted: 2009-03-02 18:40 (UTC)
Last Updated: 2024-11-07 19:00 (UTC)

Required by (0)

Sources (25)

Latest Comments

1 2 3 4 5 6 .. 14 Next › Last »

Korynkai commented on 2025-11-05 04:30 (UTC) (edited on 2025-11-05 04:32 (UTC) by Korynkai)

yogo1212 Hm, I had this running fine without YASM, kinda curious what's using assembly in FreeSwitch, I don't quite recall any assembly... I will have to investigate this further as I add aarch64... However, I am aware of distutils being removed from Python, and I thought I had this resolved, I'll have to investigate that further as well... Hmm... It also looks like my FFMPEG patch is getting some feedback upstream that I need to look into as well, so it looks like I'll be looking at this project and package for a bit...

yogo1212 commented on 2025-10-28 13:52 (UTC) (edited on 2025-10-30 10:50 (UTC) by yogo1212)

Hi Korynkai :-)

I made a whoopsie and only copied the visible part of my terminal buffer. Moving yasm to makedepends_x86_64=('yasm') is also required (no need to compile 80x86 assembly on arm). freeswitch builds and runs with these modifications (add arch, add setuptools, only require yasm on x86_64).

Concerning python-setuptools:

distutils was removed from python. setuptools took its place (kinda).

https://peps.python.org/pep-0632/ https://github.com/python/cpython/issues/92584

./configure goes through without distutils (python_has_distutils=no) which would be used to compile build flags. sadly, it doesn't do pkgconf or so as an alternative. consequently, freeswitch happily starts compiling without setuptools but it fails when compiling the mod_python3 module because it lacks things like -I for Python.h. With setuptools, the compilation goes through and the module works.

(EDIT: libtool 2.5.4+r1+gbaa1fe41-3 worked for me)

Korynkai commented on 2025-10-28 01:04 (UTC) (edited on 2025-10-28 01:06 (UTC) by Korynkai)

Sorry, it has been a while since I have been able to look at this...

micwoj92 Freeswitch uses the spandsp package provided by SignalWire specifically for Freeswitch, which is maintained as a git repository on GitHub with no direct releases and is included in AUR as the spandsp-git package. The spandsp package in the ArchLinux Extra repository is the original spandsp implementation from soft-switch.org and is extremely outdated in comparison, though this is what the git repository is originally derived from. mod_spandsp is specifically written for this git package, the module will most certainly fail to compile with the version in the Extra repository.

th80 I will have to look into if there is a fix for libtool 2.5.4, something is telling me this would be trivial to fix...

yogo1212 I would be happy to add aarch64 to the architecture list after confirming all dependencies are accounted for on that architecture (I have certainly built this for aarch64 before actually, though I am looking at the request you previously made of azzbcc regarding spandsp-git) but I am curious if there is something you came across with python-setuptools as you did not comment on this additional makedepend... A little context would be nice if you don't mind ;)

yogo1212 commented on 2025-10-27 19:35 (UTC)

diff --git a/PKGBUILD b/PKGBUILD
index 2f684ce..9031a59 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -168,7 +168,7 @@ pkgname=freeswitch
 pkgver=1.10.12
 pkgrel=1
 pkgdesc="An opensource and free (libre, price) telephony system, similar to Asterisk."
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'aarch64')
 url="http://freeswitch.org/"
 license=('MPL')
 depends=('curl'
@@ -197,6 +197,7 @@ makedepends=('git'
              'libedit'
              'curl'
              'python'
+             'python-setuptools'
              'unixodbc'
              'sed'
              'make'

th80 commented on 2025-09-05 21:47 (UTC) (edited on 2025-09-06 14:56 (UTC) by th80)

I am running arch fresh install, and try to install freeswitch and it jumps me out. Are there any special compile flags ?

config.status: executing libtool commands
=== configuring in libs/apr (/usr/local/src/archv1/pkgs/freeswitch/src/freeswitch-1.10.12/libs/apr)
configure: running /bin/sh ./configure.gnu --disable-option-checking '--prefix=/var/lib/freeswitch'  '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--localstatedir=/var' '--sysconfdir=/etc' '--datarootdir=/usr/share' '--libexecdir=/usr/lib/freeswitch' '--libdir=/usr/lib/freeswitch' '--includedir=/usr/include/freeswitch' '--enable-core-odbc-support' '--with-recordingsdir=/var/spool/freeswitch/recordings' '--with-dbdir=/var/spool/freeswitch/db' '--with-pkgconfigdir=/usr/lib/pkgconfig' '--with-logfiledir=/var/log/freeswitch' '--with-modinstdir=/usr/lib/freeswitch/mod' '--with-scriptdir=/usr/share/freeswitch/scripts' '--with-certsdir=/etc/freeswitch/certs' '--with-rundir=/run/freeswitch' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' 'LDFLAGS=-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs' 'CXXFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS' '--with-modinstdir=/usr/lib/freeswitch/mod' 'CONFIGURE_CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' 'CONFIGURE_CXXFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS ' 'CONFIGURE_LDFLAGS=-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs' --cache-file=/dev/null --srcdir=.
./configure: line 4316: syntax error near unexpected token `)'
/configure: line 4316: `])])'
configure: error: ./configure.gnu failed for libs/apr
==> ERROR: A failure occurred in prepare().
Aborting...

source of error. It has something todo with the package "libtool". On debian it's libtool 2.4.7 while on arch 2.5.4.62-6389d which caused the jumpout.

-- SOLVED -- SOLVED

Freeswitch can be easily build by installing previously libtool 2.4.7.x https://archive.archlinux.org/packages/l/libtool/

which needs to be replaced from the newest version.

Successfully build in arch linux podman container just now.

micwoj92 commented on 2025-03-06 20:37 (UTC)

Why does this depende on spandsp-git instead of spandsp?

Korynkai commented on 2024-11-06 05:00 (UTC)

OK, finally all the elements have come together for me to focus on patching and releasing 1.10.12. I seem to have even found the solution to utilizing ffmpeg7. Also required was a little pointer nonsense with iksemel and xml_rpc... If anybody notices any odd behavior, please let me know.

Korynkai commented on 2023-09-17 21:02 (UTC) (edited on 2023-09-17 21:02 (UTC) by Korynkai)

gianluca_n yes, this is an issue within spandsp-fs and should be fixed if you rebuild spandsp-fs so a newer commit is pulled. However, due to the fact spandsp-fs is a git package, ymmv; you may find other issues within spandsp down the line. I am awaiting stable releases of the spandsp package to be provided by the freeswitch fork.

Unfortunately my current focus on the freeswitch package is due to the fact it is currently outdated and builds for the latest version are currently broken due to the issue I reported at https://github.com/signalwire/freeswitch/issues/2202 regarding ffmpeg v6, so I apologize that it took me longer to reply to this comment than intended. I am awaiting progress on this particular issue and I believe progress may be unlikely until they release v1.10.11.

gianluca_n commented on 2023-08-24 16:38 (UTC)

Korynkai, thank you very much for the pointer, indeed I forgot I had installed sofia-sip-bc a while ago. Replaced it with sofia-sip and the error is gone.

However I also had to disable mod_event_zmq in the PKGBUILD otherwise I get a compile error in one of tis sources (not a big deal in my case as I don't need that module) and to comment out line 69 (not a joke) in /usr/include/spandsp/expose.h as it is an include pointing to an unexisting file (spandsp/private/v80.h), though this is probably an issue for the spandsp-fs package.

Korynkai commented on 2023-08-22 23:39 (UTC)

gianluca_n what version of sofia-sip are you using? This is currently tested against the current stable in AUR under the sofia-sip package. sdp symbols are defined in sofia-sip.