[asterisk-dev] SIP presence XML namespaces

Klaus Darilion klaus.mailinglists at pernau.at
Fri May 21 07:24:08 CDT 2010


Hi!

I analyzed the XML documents sent by Asterisk (trunk) when "presence" is 
subscribed:

<?xml version="1.0" encoding="ISO-8859-1"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:pp="urn:ietf:params:xml:ns:pidf:person"
xmlns:es="urn:ietf:params:xml:ns:pidf:rpid:status:rpid-status"
xmlns:ep="urn:ietf:params:xml:ns:pidf:rpid:rpid-person"
entity="sip:klaus2 at 83.136.32.165">
<pp:person>
	<status>
		<ep:activities><ep:busy/></ep:activities>
	</status>
</pp:person>
<note>On the phone</note>
<tuple id="362">
	<contact priority="1">sip:362 at 83.136.32.165</contact>
	<status><basic>open</basic></status>
</tuple>
</presence>


I wonder where these namespaces come from? I can not find [1] any 
standards describing

xmlns:pp="urn:ietf:params:xml:ns:pidf:person"
xmlns:es="urn:ietf:params:xml:ns:pidf:rpid:status:rpid-status" [2]
xmlns:ep="urn:ietf:params:xml:ns:pidf:rpid:rpid-person"

Maybe these namespaces are based on old drafts?

The source code mentions:
   case PIDF_XML: /* Eyebeam supports this format */

But also eyebeam uses other namespaces (the IETF defined ones), e.g:
<presence xmlns='urn:ietf:params:xml:ns:pidf'
  xmlns:dm      ='urn:ietf:params:xml:ns:pidf:data-model'
  xmlns:rpid    ='urn:ietf:params:xml:ns:pidf:rpid'
  xmlns:c       ='urn:ietf:params:xml:ns:pidf:cipid'
  xmlns:lt      ='urn:ietf:params:xml:ns:location-type'

I think we should aligne this to the standardized namespaces.

regards
Klaus

[1] http://www.iana.org/assignments/xml-registry/ns.html
[2] this one is not even used at all



More information about the asterisk-dev mailing list