< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate] generating pidf+xml PUBLISH


I've found some examples at [1] and it's much like the one I'm generating. Nevertheless Jitsi seems don't recognize my presence.


[1] https://tools.ietf.org/html/rfc3863#page-14

2016-07-13 0:19 GMT-03:00 Mateus Bellomo <mateusbellomo@xxxxxxxxx>:
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@xxxxxxxxx SIP/2.0
Via: SIP/2.0/ ;branch=z9hG4bK-524287-1---15a95b2ad559a616;rport
Max-Forwards: 70
Contact: <sip:mateusbellomo>
To: <sip:mateusbellomo@xxxxxxxxx>
From: "mateusbellomo"<sip:mateusbellomo@xxxxxxxxx>;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@xxxxxxxxx">
  <tuple id="292644" >
     <status><basic>open</basic></status>
     <contact priority="0.0">sip:mateusbellomo@xxxxxxxxx</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@xxxxxxxxx">
  <dm:person id="p6311">
    <rpid:activities/>
  </dm:person>
  <tuple id="t5763">
    <status><basic>open</basic></status>
    <contact>sip:mateusruivo@xxxxxxxxx</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