[SIP Beyond VoIP] entity in pidf+xml body
Juha Heinanen
jh at tutpro.com
Sun May 5 07:51:53 CEST 2013
i found another interoperability issues with sipsimple 0.34.0 presence when
i started to wonder why jitsi does not understand the notify it gets
from sipsimple.
sip-publish-presence generates this kind of body in publish request from
user test at test.fi:
<?xml version='1.0' encoding='UTF-8'?>
<presence xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid" xmlns:agp-pidf="urn:ag-projects:xml:ns:pidf" xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" xmlns="urn:ietf:params:xml:ns:pidf" entity="test%40test.fi"><tuple id="ID-2e4eae00-c2c7-4136-a74e-2336177a0ae0"><status><basic>open</basic><agp-pidf:extended>available</agp-pidf:extended></status><agp-pidf:device-info id="urn:uuid:2e4eae00-c2c7-4136-a74e-2336177a0ae0"/><contact priority="0.0">sip%3Atest%40test.fi%3Bgr%3Durn%3Auuid%3A2e4eae00-c2c7-4136-a74e-2336177a0ae0</contact><timestamp>2013-05-05T08:42:14.266758+03:00</timestamp></tuple><dm:person id="ID-bef633c87f520ffed3bc0bd6ef1675fa"><rpid:time-offset>180</rpid:time-offset><dm:timestamp>2013-05-05T07:58:32.893489+03:00</dm:timestamp></dm:person><dm:device id="sqqypdkp"><dm:deviceID>urn:uuid:2e4eae00-c2c7-4136-a74e-2336177a0ae0</dm:deviceID><dm:note xml:lang="en">Powered by sipsimple 0.34.0</dm:note><dm:timestamp>2013-05-05T07:58:32.895225+03:00</dm:timestamp></dm:device></presence>
note presence entity attribute:
entity="test%40test.fi"
according to http://tools.ietf.org/html/rfc3863:
The <presence> element MUST have an 'entity' attribute. The value of
the 'entity' attribute is the 'pres' URL of the PRESENTITY publishing
this presence document.
'test%40test.fi' is not 'pres' URL, because url scheme 'pres:' is
missing. here is example from this rfc:
<?xml version="1.0" encoding="UTF-8"?>
<impp:presence xmlns:impp="urn:ietf:params:xml:ns:pidf"
entity="pres:someone at example.com">
<impp:tuple id="sg89ae">
<impp:status>
<impp:basic>open</impp:basic>
</impp:status>
<impp:contact priority="0.8">tel:+09012345678</impp:contact>
</impp:tuple>
</impp:presence>
it would be nice to get a message to the mailing list when this has been
fixed and i can try again the test with jitsi.
-- juha
More information about the SIPBeyondVoIP
mailing list