[reSIProcate] generating pidf+xml PUBLISH
Mateus Bellomo
mateusbellomo at gmail.com
Tue Jul 12 22:19:37 CDT 2016
Hello,
I'm trying to create a xml for PUBLISH contact status and it appears is not
working. I have one client logged at Empathy/resiprocate and it is sending
it's status to other client at Jitsi. I say that it's not working because
there is no change of Jitsi status buddy after I change the user status at
Empathy/resiprocate. My generated PUBLISH is:
PUBLISH sip:mateusbellomo at ekiga.net SIP/2.0
Via: SIP/2.0/ ;branch=z9hG4bK-524287-1---15a95b2ad559a616;rport
Max-Forwards: 70
Contact: <sip:mateusbellomo>
To: <sip:mateusbellomo at ekiga.net>
From: "mateusbellomo"<sip:mateusbellomo at ekiga.net>;tag=136f4f77
Call-ID: ldlI4b1BhtJNrk58joKIUA..
CSeq: 1 PUBLISH
Expires: 3600
Accept-Language: en
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, SUBSCRIBE, UPDATE,
PRACK, INFO, MESSAGE, PUBLISH
Content-Type: application/pidf+xml
Supported: replaces, timer, norefersub, answermode, tdialog
Event: presence
Content-Length: 322
<?xml version="1.0" encoding="UTF-8"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
entity="sip:mateusbellomo at ekiga.net">
<tuple id="292644" >
<status><basic>open</basic></status>
<contact priority="0.0">sip:mateusbellomo at ekiga.net</contact>
<note>Online</note>
</tuple>
</presence>
I'm comparing with the generated xml generated by Jitsi:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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" entity="
sip:mateusruivo at ekiga.net">
<dm:person id="p6311">
<rpid:activities/>
</dm:person>
<tuple id="t5763">
<status><basic>open</basic></status>
<contact>sip:mateusruivo at ekiga.net</contact>
<note>Online</note>
</tuple>
</presence>
And I saw that is some attributes missing at "presence" tag, and some tags
missing but I don't how to include it, and I don't even know if this is the
real problem.
I've looked into RFC [1] and it doesn't have a single example of a xml
PUBLISH.
Any document with examples would help me very much. Thanks in advance
[1] https://www.ietf.org/rfc/rfc3903.txt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20160713/18eb0e11/attachment.htm>
More information about the resiprocate-devel
mailing list