Thanks @severach! patch added.
Search Criteria
Package Details: asterisk 20.4.0-1
Package Actions
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 |
Submitter: | pressh |
Maintainer: | nkukard (alerque) |
Last Packager: | nkukard |
Votes: | 112 |
Popularity: | 0.028187 |
First Submitted: | 2008-01-27 13:42 (UTC) |
Last Updated: | 2023-07-22 08:02 (UTC) |
Dependencies (21)
- alsa-lib (alsa-lib-x205ta)
- curl (curl-git, curl-quiche-git, curl-http3-ngtcp2)
- jansson (jansson-git)
- libedit
- libvorbis (libvorbis-aotuv, libvorbis-aotuv-lancer, libvorbis-git)
- libxml2 (libxml2-git, libxml2-2.9)
- libxslt (libxslt-git)
- opus (opus-git)
- popt (popt-git)
- speex (speex-git)
- gsm (make)
- sqlite3 (sqlite) (make)
- dahdi (optional)
- gsm (optional)
- libpri (optional)
- libsrtp (optional)
- libss7 (optional)
- lua51 (optional)
- openr2 (openr2-git) (optional)
- postgresql (postgresql-9.5, postgresql-9.4, postgresql-9.6, postgresql-11, postgresql-10, postgresql-12, postgresql-lts, postgresql-src, postgresql-git, postgresql-beta, postgresql13) (optional)
- Show 1 more dependencies...
Required by (8)
Sources (5)
nkukard commented on 2023-03-13 15:28 (UTC)
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:
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
Marc_Eberhard commented on 2022-06-07 07:36 (UTC)
@fs_developer I'm using the repo from alerque and both systemd and systemd-libs are installed:
alerque/asterisk 19.3.1-1 [installed] A complete PBX solution alerque/asterisk-g729 1:1.4.3.r4.3855cec2ef26-3 [installed] G.729 codec for Asterisk open source PBX
core/systemd 251.2-1 [installed] system and service manager core/systemd-libs 251.2-1 [installed] systemd client libraries
So, it must be something else that's missing... question is how can I narrow this down?
fs_developer commented on 2022-06-07 06:08 (UTC)
@Marc_Eberhard I had the same problem when building in a clean chroot without systemd and systemd-libs package installed. The asterisk autoconfig script tries to detect if systemd is installed and only enables systemd-notify support if it is found at buildtime. Maybe it would be better to add systemd to the list of dependencies.
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.