Package Details: asterisk 23.4.1-1

Git Clone URL: https://aur.archlinux.org/asterisk.git (read-only, click to copy)
Package Base: asterisk
Description: A complete PBX solution
Upstream URL: https://www.asterisk.org
Keywords: sip, telephony, voip
Licenses: GPL-2.0-only
Submitter: pressh
Maintainer: nkukard (alerque)
Last Packager: nkukard
Votes: 113
Popularity: 0.000119
First Submitted: 2008-01-27 13:42 (UTC)
Last Updated: 2026-06-25 17:35 (UTC)

Pinned Comments

alerque commented on 2020-02-22 06:10 (UTC) (edited on 2020-02-22 06:34 (UTC) by alerque)

PSA: I've started hosting this and all its dependencies as prebuilt packages (x86_86 only) in my repository for those that want to install them using pacman without messing around with building from the AUR.

Latest Comments

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

severach commented on 2026-06-09 19:17 (UTC) (edited on 2026-06-09 19:17 (UTC) by severach)

To get started installing AUR packages you're expected to pacman -S --needed base-devel

GopalS commented on 2026-06-09 15:14 (UTC)

Couldn't install Asterisk Please help with this Error Output: ======= ==> Starting prepare()... Applying patch fix-upnp.patch /home/ar/Downloads/asterisk/PKGBUILD: line 163: patch: command not found ==> ERROR: A failure occurred in prepare(). Aborting...

jwh commented on 2026-04-25 10:50 (UTC)

Some of those optdepends could be moved to makedepends so that the modules are built and if people want to use them they can install the dependencies (like odbc, postgres, etc) in the same way gsm is. helpful for those using automated building and can't modify the PKGBUILD.

jwh commented on 2026-03-05 16:34 (UTC)

Any chance srtp could be moved to depends so it's built by default?

micwoj92 commented on 2025-01-30 20:41 (UTC)

I think optdep should be lua instead of lua51

ectospasm commented on 2024-10-25 01:49 (UTC) (edited on 2024-10-25 01:58 (UTC) by ectospasm)

I was able to upgrade from asterisk-lts-20 to asterisk-22.0.0-1 using this PKGBUILD. One thing I noticed, it replaced all my existing configuration in /etc/asterisk/ with .pacsave; which is a little annoying. I would have preferred the new files get added as .pacnew; is there any way to correct that? I don't have time to research the fix and supply a patch myself, so I apologize in advance if that is impolite to ask.

I was able to fix this with an anonymous zsh script, as root:

# for conf in *.pacsave; do 
    print ${conf}
    orig=$(basename ${conf} .pacsave)
    print ${orig}
    mv -v ${conf} ${orig}
done

Incidentally I just pushed asterisk-lts-22 to the AUR; it depends on asterisk>=22, and asterisk<23. Next year when asterisk 23.0.0 is released (circa mid-October 2025), the asterisk-lts-22 PKGBUILD will be replaced with the latest PKGBUILD from asterisk on version 22 which is the latest LTS release until the release of 24 in 2026 (assuming Sangoma doesn't drastically change the established release cycle before then).

dreieck commented on 2024-10-20 08:38 (UTC)

According to the COPYING file, the license is GPL-2.0-or-later (instead of GPL-2.0-only):

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

nkukard commented on 2023-03-13 15:28 (UTC)

Thanks @severach! patch added.

severach commented on 2023-03-12 22:02 (UTC)

The update of third-party/{pjproject,versions.mak} from 2.12.1 to 2.13 is detecting libupnp on the system, usually from vlc, found on desktop systems, not found on Asterisk servers. This changes pjnath to -DPJNATH_HAS_UPNP=1 which causes -lupnp -lixml. Fix with this patch.

diff -ru2 a/third-party/pjproject/Makefile.rules b/third-party/pjproject/Makefile.rules
--- a/third-party/pjproject/Makefile.rules<>2023-03-09 12:17:03.000000000 -0500
+++ b/third-party/pjproject/Makefile.rules<>2023-03-12 18:01:07.948709803 -0400
@@ -16,4 +16,5 @@
.
 PJPROJECT_CONFIG_OPTS = $(PJPROJECT_CONFIGURE_OPTS) --prefix=/opt/pjproject \
+>--disable-upnp \
 >--disable-speex-codec \
 >--disable-speex-aec \

rriddicc commented on 2023-03-12 11:13 (UTC) (edited on 2023-03-12 11:14 (UTC) by rriddicc)

20.2.0-1 does not compile on my box (because: libasteriskpj.so does not have a link to libupnp.so?):

/usr/bin/ld: ./libasteriskpj.so: undefined reference to `ixmlNode_getNodeName'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `ixmlNode_getFirstChild'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `UpnpDownloadXmlDoc'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `UpnpRegisterClient'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `ixmlElement_getElementsByTagName'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `UpnpMakeAction'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `UpnpDiscovery_get_Location_cstr'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `UpnpGetErrorMessage'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `ixmlDocument_free'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `UpnpEnableWebserver'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `UpnpAddToAction'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `UpnpGetServerIp6Address'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `UpnpSendActionAsync'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `UpnpActionComplete_get_ErrCode'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `ixmlRelaxParser'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `UpnpSendAction'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `UpnpActionComplete_get_ActionResult'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `ixmlNodeList_length'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `ixmlNode_getParentNode'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `UpnpInit2'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `ixmlNodeList_item'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `UpnpIsWebserverEnabled'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `ixmlNode_getNodeValue'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `UpnpGetServerPort'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `UpnpGetServerIpAddress'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `UpnpSearchAsync'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `UpnpFinish'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `ixmlNodeList_free'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `UpnpDiscovery_get_ErrCode'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `UpnpDiscovery_get_DeviceID_cstr'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `UpnpGetServerPort6'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `UpnpResolveURL2'
/usr/bin/ld: ./libasteriskpj.so: undefined reference to `ixmlDocument_getElementsByTagName'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:326: asterisk] Error 1
make[1]: Leaving directory '/usr/home/aw/.cache/pikaur/build/asterisk/src/asterisk-20.2.0/main'
make: *** [Makefile:396: main] Error 2