From 376473b38c0a6f4a8e742a26caafbf484ed1b9c5 Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Thu, 7 Oct 2021 18:31:07 +0200 Subject: [PATCH 1/3] pjproject: sync patches with asterisk 18.7.1 Switch to AUTORELEASE while at it. Signed-off-by: Andre Heider --- libs/pjproject/Makefile | 2 +- ..._get_rtpmap-Strip-param-trailing-whi.patch | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 libs/pjproject/patches/0120-pjmedia_sdp_attr_get_rtpmap-Strip-param-trailing-whi.patch diff --git a/libs/pjproject/Makefile b/libs/pjproject/Makefile index 7d441cb..3347b3e 100644 --- a/libs/pjproject/Makefile +++ b/libs/pjproject/Makefile @@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=pjproject PKG_VERSION:=2.10 -PKG_RELEASE:=4 +PKG_RELEASE:=$(AUTORELEASE) # download "vX.Y.tar.gz" as "pjproject-vX.Y.tar.gz" PKG_SOURCE_URL_FILE:=$(PKG_VERSION).tar.gz diff --git a/libs/pjproject/patches/0120-pjmedia_sdp_attr_get_rtpmap-Strip-param-trailing-whi.patch b/libs/pjproject/patches/0120-pjmedia_sdp_attr_get_rtpmap-Strip-param-trailing-whi.patch new file mode 100644 index 0000000..a3e668c --- /dev/null +++ b/libs/pjproject/patches/0120-pjmedia_sdp_attr_get_rtpmap-Strip-param-trailing-whi.patch @@ -0,0 +1,27 @@ +From 2ae784030b0d9cf217c3d562af20e4967f19a3dc Mon Sep 17 00:00:00 2001 +From: George Joseph +Date: Tue, 14 Sep 2021 10:47:29 -0600 +Subject: [PATCH] pjmedia_sdp_attr_get_rtpmap: Strip param trailing whitespace + +Use pj_scan_get() to parse the param part of rtpmap so +trailing whitespace is automatically stripped. + +Fixes #2827 +--- + pjmedia/src/pjmedia/sdp.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- a/pjmedia/src/pjmedia/sdp.c ++++ b/pjmedia/src/pjmedia/sdp.c +@@ -313,9 +313,9 @@ PJ_DEF(pj_status_t) pjmedia_sdp_attr_get + + /* Expecting either '/' or EOF */ + if (*scanner.curptr == '/') { ++ /* Skip the '/' */ + pj_scan_get_char(&scanner); +- rtpmap->param.ptr = scanner.curptr; +- rtpmap->param.slen = scanner.end - scanner.curptr; ++ pj_scan_get(&scanner, &cs_token, &rtpmap->param); + } else { + rtpmap->param.slen = 0; + } From 0399a3dc730ae639636bcd053193b37751f8df4d Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Tue, 28 Sep 2021 20:11:44 +0200 Subject: [PATCH 2/3] asterisk: bump to 18.7.1 The removed patch has been applied upstream and is part of this release. Switch to AUTORELEASE while at it. Signed-off-by: Andre Heider --- net/asterisk/Makefile | 6 +- ...-A-option-to-add-caller-announcement.patch | 147 ------------------ .../patches/140-use-default-lua.patch | 2 +- 3 files changed, 4 insertions(+), 151 deletions(-) delete mode 100644 net/asterisk/patches/090-app_dial-expanded-A-option-to-add-caller-announcement.patch diff --git a/net/asterisk/Makefile b/net/asterisk/Makefile index 7cbcf9b..b2d9f34 100644 --- a/net/asterisk/Makefile +++ b/net/asterisk/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=asterisk -PKG_VERSION:=18.5.1 -PKG_RELEASE:=1 +PKG_VERSION:=18.7.1 +PKG_RELEASE:=$(AUTORELEASE) PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://downloads.asterisk.org/pub/telephony/asterisk/releases -PKG_HASH:=e7d78716a0deeadf24b7d537cd24c11c2d9a096265eefc9470565c4da0fc54c7 +PKG_HASH:=11c8728718b59af74440276ba888484bc9201217719d56436e1e0e85bf533c17 PKG_BUILD_DEPENDS:=libxml2/host diff --git a/net/asterisk/patches/090-app_dial-expanded-A-option-to-add-caller-announcement.patch b/net/asterisk/patches/090-app_dial-expanded-A-option-to-add-caller-announcement.patch deleted file mode 100644 index bd20730..0000000 --- a/net/asterisk/patches/090-app_dial-expanded-A-option-to-add-caller-announcement.patch +++ /dev/null @@ -1,147 +0,0 @@ -From 1e5a2cfe3037823b17dd4ac47b071f02d6f9825f Mon Sep 17 00:00:00 2001 -From: Naveen Albert -Date: Fri, 21 May 2021 20:08:58 -0400 -Subject: [PATCH] app_dial: Expanded A option to add caller announcement - -Hitherto, the A option has made it possible to play -audio upon answer to the called party only. This option -is expanded to allow for playback of an audio file to -the caller instead of or in addition to the audio -played to the answerer. - -ASTERISK-29442 - -Change-Id: If6eed3ff5c341dc8c588c8210987f2571e891e5e ---- - apps/app_dial.c | 79 +++++++++++++++---- - doc/CHANGES-staging/app_dial_announcement.txt | 6 ++ - 2 files changed, 68 insertions(+), 17 deletions(-) - create mode 100644 doc/CHANGES-staging/app_dial_announcement.txt - ---- a/apps/app_dial.c -+++ b/apps/app_dial.c -@@ -93,11 +93,17 @@ - - - --