[sr-dev] git:master:f9d424ac: lost: trimed spaces before reolving locationURI value
Henning Westerholt
hw at skalatan.de
Wed Dec 2 21:13:43 CET 2020
Module: kamailio
Branch: master
Commit: f9d424ac426dc0547c7233902dfa44ad1287e077
URL: https://github.com/kamailio/kamailio/commit/f9d424ac426dc0547c7233902dfa44ad1287e077
Author: Sergey Safarov <s.safarov at gmail.com>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2020-12-02T21:13:37+01:00
lost: trimed spaces before reolving locationURI value
fixes GH2569 (#2569). Allow parse exmaples from RFC7840
---
Modified: src/modules/lost/functions.c
---
Diff: https://github.com/kamailio/kamailio/commit/f9d424ac426dc0547c7233902dfa44ad1287e077.diff
Patch: https://github.com/kamailio/kamailio/commit/f9d424ac426dc0547c7233902dfa44ad1287e077.patch
---
diff --git a/src/modules/lost/functions.c b/src/modules/lost/functions.c
index c94c7883f0..481d737071 100644
--- a/src/modules/lost/functions.c
+++ b/src/modules/lost/functions.c
@@ -298,6 +298,8 @@ int lost_held_function(struct sip_msg *_m, char *_con, char *_pidf, char *_url,
if(geo.len == 0) {
LM_WARN("%s element not found\n", HELD_TYPE_URI);
geo.s = NULL;
+ } else {
+ geo.s = lost_trim_content(geo.s, &geo.len);
}
}
if(xmlStrcmp(cur_node->name,
More information about the sr-dev
mailing list