aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Angelacos <nangel@alpinelinux.org>2021-04-24 15:47:13 +0000
committerLeo <thinkabit.ukim@gmail.com>2021-04-25 03:52:01 +0000
commit07b9e0b9807ccfa5fcac86af352476c329a7bd68 (patch)
tree21cf8c7dd9ddead826fd497e96957498c49ce4c1
parente88c59c242411b88c4668b2fed6660a84a91078f (diff)
downloadaports-07b9e0b9807ccfa5fcac86af352476c329a7bd68.tar.gz
aports-07b9e0b9807ccfa5fcac86af352476c329a7bd68.tar.bz2
aports-07b9e0b9807ccfa5fcac86af352476c329a7bd68.tar.xz
main/kamailio: upgrade to 5.4.5
-rw-r--r--main/kamailio/APKBUILD8
-rw-r--r--main/kamailio/tm-proper-fill-of-From-To-URI-tag-values-using-parsed.patch73
2 files changed, 3 insertions, 78 deletions
diff --git a/main/kamailio/APKBUILD b/main/kamailio/APKBUILD
index 342400f5fe..2bad009055 100644
--- a/main/kamailio/APKBUILD
+++ b/main/kamailio/APKBUILD
@@ -4,8 +4,8 @@
# Maintainer: Nathan Angelacos <nangel@alpinelinux.org>
pkgname=kamailio
-pkgver=5.4.2
-pkgrel=4
+pkgver=5.4.5
+pkgrel=0
# If building from a git snapshot, specify the gitcommit
# If building a proper release, leave gitcommit blank or commented
@@ -33,7 +33,6 @@ makedepends="bison flex freeradius-client-dev expat-dev
# These are in testing / community - can't enable for kamailio in main
# librdkafka-dev dnssec-tools-dev
source="kamailio-${pkgver}$_suffix.tar.gz::https://github.com/kamailio/kamailio/archive/$_gitcommit.tar.gz
- tm-proper-fill-of-From-To-URI-tag-values-using-parsed.patch
kamailio.initd
"
@@ -555,6 +554,5 @@ sipdump() {
"$_mod_list_sipdump"
}
-sha512sums="944eb54fe5ec1408def842f3f1f909002ba274863ea68baa85fc70aa9abd7331647f75813ccd264ed659a794570c6d8b9c89108684de603e90b0713f33412502 kamailio-5.4.2.tar.gz
-b82dc389dc294cc09b0089ef2e846d308b937a9984a53574f0a434180341725dc025222d2bd9d9b0bb01b05bebd106412cfaf81e3150e338393a6a4012f1deb0 tm-proper-fill-of-From-To-URI-tag-values-using-parsed.patch
+sha512sums="34ad79d4d954499b3711eb12afe1c753e42c6c59d2085d2495237ecce287255510271b61284d79c0db587b75eb9adbc462c4f5470c60fda41de012f1dc41aa7b kamailio-5.4.5.tar.gz
0c87bfb78481568c03e603049eb8597a90d24ae2941fc81694181b2326fa9db89fbddaaa3cf08c7bc2f5fa0e7ffac4cf4e2d010d08c4faa6cf6df98593432539 kamailio.initd"
diff --git a/main/kamailio/tm-proper-fill-of-From-To-URI-tag-values-using-parsed.patch b/main/kamailio/tm-proper-fill-of-From-To-URI-tag-values-using-parsed.patch
deleted file mode 100644
index 694d94a425..0000000000
--- a/main/kamailio/tm-proper-fill-of-From-To-URI-tag-values-using-parsed.patch
+++ /dev/null
@@ -1,73 +0,0 @@
-From aa6e9963b2725c1b6b7e5ff995a77c222d95fa3c Mon Sep 17 00:00:00 2001
-From: Daniel-Constantin Mierla <miconda@gmail.com>
-Date: Thu, 19 Nov 2020 17:06:06 +0100
-Subject: [PATCH] tm: proper fill of From/To URI/tag values using parsed
- structure in t_uac_send()
-
----
- src/modules/tm/rpc_uac.c | 24 ++++++++++++++++++------
- 1 file changed, 18 insertions(+), 6 deletions(-)
-
-diff --git a/src/modules/tm/rpc_uac.c b/src/modules/tm/rpc_uac.c
-index cc50274f0c..dfe99d1390 100644
---- a/src/modules/tm/rpc_uac.c
-+++ b/src/modules/tm/rpc_uac.c
-@@ -593,7 +593,7 @@ void rpc_t_uac_wait(rpc_t* rpc, void* c)
-
- static int t_uac_check_msg(struct sip_msg* msg,
- str* method, str* body,
-- int* fromtag, int *cseq_is, int* cseq,
-+ str *fromtag, int *cseq_is, int* cseq,
- str* callid)
- {
- struct to_body* parsed_from;
-@@ -628,7 +628,13 @@ static int t_uac_check_msg(struct sip_msg* msg,
- }
-
- parsed_from = (struct to_body*)msg->from->parsed;
-- *fromtag = parsed_from->tag_value.s && parsed_from->tag_value.len;
-+ if(parsed_from->tag_value.s && parsed_from->tag_value.len) {
-+ fromtag->s = parsed_from->tag_value.s;
-+ fromtag->len = parsed_from->tag_value.len;
-+ } else {
-+ fromtag->s = NULL;
-+ fromtag->len = 0;
-+ }
-
- *cseq = 0;
- if (msg->cseq && (parsed_cseq = get_cseq(msg))) {
-@@ -676,7 +682,8 @@ int t_uac_send(str *method, str *ruri, str *nexthop, str *send_socket,
- struct socket_info* ssock;
- str saddr;
- int sport, sproto;
-- int ret, fromtag, cseq_is, cseq;
-+ int ret, cseq_is, cseq;
-+ str fromtag;
- dlg_t dlg;
- uac_req_t uac_req;
-
-@@ -749,7 +756,9 @@ int t_uac_send(str *method, str *ruri, str *nexthop, str *send_socket,
- */
-
- /* Generate fromtag if not present */
-- if (!fromtag) {
-+ if (fromtag.s && fromtag.len) {
-+ dlg.id.loc_tag = fromtag;
-+ } else {
- generate_fromtag(&dlg.id.loc_tag, &dlg.id.call_id, ruri);
- }
-
-@@ -758,8 +767,11 @@ int t_uac_send(str *method, str *ruri, str *nexthop, str *send_socket,
- else dlg.loc_seq.value = DEFAULT_CSEQ;
- dlg.loc_seq.is_set = 1;
-
-- dlg.loc_uri = faked_msg.from->body;
-- dlg.rem_uri = faked_msg.to->body;
-+ dlg.loc_uri = get_from(&faked_msg)->uri;
-+ dlg.rem_uri = get_to(&faked_msg)->uri;
-+ if(get_to(&faked_msg)->tag_value.len > 0) {
-+ dlg.id.rem_tag = get_to(&faked_msg)->tag_value;
-+ }
- dlg.rem_target = *ruri;
- dlg.dst_uri = *nexthop;
- dlg.send_sock=ssock;