Module: kamailio
Branch: master
Commit: 6c1c957b18a395e2dad79a8b3a3c0de347aa4f2d
URL:
https://github.com/kamailio/kamailio/commit/6c1c957b18a395e2dad79a8b3a3c0de…
Author: Wolfgang Kampichler <49035738+wkampich(a)users.noreply.github.com>
Committer: GitHub <noreply(a)github.com>
Date: 2020-12-17T09:25:19+01:00
Merge pull request #2584 from sergey-safarov/master
lost: removed not used namespace
---
Modified: src/modules/lost/utilities.c
---
Diff:
https://github.com/kamailio/kamailio/commit/6c1c957b18a395e2dad79a8b3a3c0de…
Patch:
https://github.com/kamailio/kamailio/commit/6c1c957b18a395e2dad79a8b3a3c0de…
---
diff --git a/src/modules/lost/utilities.c b/src/modules/lost/utilities.c
index ab717fce18..4e3450b21b 100644
--- a/src/modules/lost/utilities.c
+++ b/src/modules/lost/utilities.c
@@ -955,12 +955,15 @@ char *lost_find_service_request(p_loc_t loc, int *lgth)
/* set properties */
xmlNewProp(ptrFindService, BAD_CAST "xmlns",
BAD_CAST "urn:ietf:params:xml:ns:lost1");
- xmlNewProp(ptrFindService, BAD_CAST "xmlns:p2",
- BAD_CAST "http://www.opengis.net/gml");
xmlNewProp(ptrFindService, BAD_CAST "serviceBoundary",
(loc->boundary == 1) ? BAD_CAST "value" : BAD_CAST
"reference");
xmlNewProp(ptrFindService, BAD_CAST "recursive",
(loc->recursive == 1) ? BAD_CAST "true" : BAD_CAST "false");
+ if(loc->xpath == NULL) {
+ xmlNewProp(ptrFindService, BAD_CAST "xmlns:p2",
+ BAD_CAST "http://www.opengis.net/gml");
+ }
+
/* location - element */
ptrLocation = xmlNewChild(ptrFindService, NULL, BAD_CAST "location", NULL);
xmlNewProp(ptrLocation, BAD_CAST "id", BAD_CAST loc->identity);