Package Details: asterisk 22.0.0-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: 112
Popularity: 0.060478
First Submitted: 2008-01-27 13:42 (UTC)
Last Updated: 2024-10-18 07:11 (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 .. 24 Next › Last »

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

ectospasm commented on 2023-03-10 03:08 (UTC)

I can confirm that the following git diff successfully upgrades asterisk to 20.2.0:

diff --git a/PKGBUILD b/PKGBUILD
index 0b20953..b3b5344 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@
 # Contributor: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>

 pkgname=asterisk
-pkgver=20.1.0
+pkgver=20.2.0
 pkgrel=1
 pkgdesc='A complete PBX solution'
 arch=(x86_64 i686 aarch64 armv7h)
@@ -149,7 +149,7 @@ source=("https://downloads.asterisk.org/pub/telephony/$pkgname/releases/$_archiv
         "$pkgname.sysusers"
         "$pkgname.logrotated"
         "$pkgname.tmpfiles")
-sha256sums=('4364dc762652e2fd4d3e7dc8428c83550ebae090b8a0e9d4820583e081778883'
+sha256sums=('eca0f7ee7e49a72bdb0c26512db45c9683ca40c8fdf63466a04705ffaba04b85'
             '38a53911647fb2308482179cba605ebf12345df37eed23eb4ea67bf0bf041486'
             'b97dc10a262621c95e4b75e024834712efd58561267b59b9171c959ecd9f7164'
             '1b6b489d4f71015bfc56ce739d92df7e9abdb349aed6f5a47dd9c18d84546c1b')

ectospasm commented on 2023-01-27 04:48 (UTC)

@mozo, don't use pastebin.com for pastes, it is laden with ads, spyware, and malware. See the wiki regarding the Arch Linux IRC channel for sane places to paste. Or better yet, learn to use Markdown and post the content directly in your comment.

Your download of pjsip is getting corrupted. Check your Internet connection and try again.

mozo commented on 2023-01-25 13:54 (UTC) (edited on 2023-01-25 13:54 (UTC) by mozo)

Can't compile it:

https://pastebin.com/F8fMAtu5

ectospasm commented on 2022-10-19 22:07 (UTC) (edited on 2022-10-19 22:12 (UTC) by ectospasm)

I forgot to mention, Asterisk 19.7.0 was released today as well, but I flagged this package saying that Asterisk 20.0.0 was released today.

As soon as this package is updated to Asterisk 20, I plan on submitting the asterisk-lts-20 PKGBUILD, which for now will be a meta package that depends on asterisk >= 20, but <21. As soon as Asterisk 21 is released next year, I will replace asterisk-lts-20 with the latest copy of the asterisk PKGBUILD on version 20, whatever that may be.

Astroturf commented on 2022-06-11 18:28 (UTC) (edited on 2022-06-11 18:28 (UTC) by Astroturf)

Since Asterisk 19 the log file has been renamed to "messages.log". Logrotate should be updated accordingly.
https://github.com/asterisk/asterisk/blob/master/UPGRADE.txt#L25

diff --git a/asterisk.logrotated b/asterisk.logrotated
index f03d0ac..4bf367b 100644
--- a/asterisk.logrotated
+++ b/asterisk.logrotated
@@ -1,4 +1,4 @@
-/var/log/asterisk/*_log /var/log/asterisk/messages {
+/var/log/asterisk/*_log /var/log/asterisk/messages.log {
   create 640 asterisk asterisk
   compress
   missingok