Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium Component-MSPS SubComponent-MSPS-PS
Version-1.0.0
New issue 2351 by [email protected]: MSPS: Remove unused namespaces
from "notified" Presence XML
http://code.google.com/p/mobicents/issues/detail?id=2351
This mess is done by JAXB Marshaller, and results in higher network trafic.
Issue 2232 introduced more accepted namespaces, which turns the issue even
more dramatic, here is an example:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:ns2="urn:ietf:params:xml:ns:pidf:rpid"
xmlns:ns3="urn:ietf:params:xml:ns:pidf:data-model"
xmlns:ns4="urn:oma:xml:prs:pidf:oma-pres"
xmlns:ns5="urn:oma:xml:pde:pidf:ext"
xmlns:ns6="urn:oma:xml:pde:pidf:ext:1.1"
xmlns:ns7="urn:ietf:params:xml:ns:pidf:geopriv10"
xmlns:ns8="urn:ietf:params:xml:ns:pidf:geopriv10:basicPolicy"
xmlns:ns9="urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr"
xmlns:ns10="urn:ietf:params:xml:ns:pidf:caps"
xmlns:ns11="urn:ietf:params:xml:ns:xcap-diff"
xmlns:ns12="urn:ietf:params:xml:ns:resource-lists"
entity="sip:[email protected]">
<tuple id="3a">
<status>
<basic>open</basic>
</status>
<contact priority="0.8">sip:[email protected]</contact>
<timestamp>2001-10-27T16:49:29Z</timestamp>
</tuple>
</presence>
The notified XML should have been:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
entity="sip:[email protected]">
<tuple id="3a">
<status>
<basic>open</basic>
</status>
<contact priority="0.8">sip:[email protected]</contact>
<timestamp>2001-10-27T16:49:29Z</timestamp>
</tuple>
</presence>