Module: kamailio Branch: master Commit: f9d424ac426dc0547c7233902dfa44ad1287e077 URL: https://github.com/kamailio/kamailio/commit/f9d424ac426dc0547c7233902dfa44ad...
Author: Sergey Safarov s.safarov@gmail.com Committer: Henning Westerholt hw@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/f9d424ac426dc0547c7233902dfa44ad... Patch: https://github.com/kamailio/kamailio/commit/f9d424ac426dc0547c7233902dfa44ad...
---
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,