Module: kamailio
Branch: 5.5
Commit: 3c3ffd803192b92f126f7f08119459593eafe30c
URL:
https://github.com/kamailio/kamailio/commit/3c3ffd803192b92f126f7f081194595…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2022-02-14T15:17:04+01:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/xmlops/README
---
Diff:
https://github.com/kamailio/kamailio/commit/3c3ffd803192b92f126f7f081194595…
Patch:
https://github.com/kamailio/kamailio/commit/3c3ffd803192b92f126f7f081194595…
---
diff --git a/src/modules/xmlops/README b/src/modules/xmlops/README
index 0ecfcb5ca0..df62770802 100644
--- a/src/modules/xmlops/README
+++ b/src/modules/xmlops/README
@@ -93,11 +93,28 @@ modparam("xmlops", "buf_size", 8192)
3.2. xml_ns (str)
Register xml namespace prefix. Parameter value must have the format:
- 'prefix=uri'.
+ 'prefix=uri'. It can be set many times to cope with multiple namespaces
+ without prefix.
+
+ This is useful when it is needed to access XML documents that specify
+ xmlns without prefix, which is not XML-standard compliant, but it comes
+ with SIP SIMPLE presence bodies.
Example 1.2. Set xml_ns parameter
...
modparam("xmlops", "xml_ns",
"rpid=urn:ietf:params:xml:ns:pidf:rpid")
+modparam("xmlops", "xml_ns",
"pidf=urn:ietf:params:xml:ns:pidf")
+...
+$xml(x=>doc) = '<?xml version="1.0" encoding="utf-8"?>
+ <presence xmlns="urn:ietf:params:xml:ns:pidf"
entity="sip:test@mydomain.com"
+>
+ <tuple id="86ae65b7-42de-4399-b635-295caad13aac">
+ <status><basic>none</basic></status>
+ </tuple>
+ </presence>';
+
+xinfo("status: $xml(x=>xpath:/pidf:presence/pidf:tuple/pidf:status/pidf:basic)\n
+");
...
4. Pseudo-Variables