Module: kamailio
Branch: master
Commit: 205cad460ba5c519e4c6411a3b0c2d33cacba534
URL:
https://github.com/kamailio/kamailio/commit/205cad460ba5c519e4c6411a3b0c2d3…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Sergey Safarov <s.safarov(a)gmail.com>
Date: 2020-12-14T14:14:52+03:00
lost: removed not used namespace
fix #2584
---
Modified: src/modules/lost/utilities.c
---
Diff:
https://github.com/kamailio/kamailio/commit/205cad460ba5c519e4c6411a3b0c2d3…
Patch:
https://github.com/kamailio/kamailio/commit/205cad460ba5c519e4c6411a3b0c2d3…
---
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);