[SR-Users] Double tuple in notify

Eugen Dedu Eugen.Dedu at pu-pm.univ-fcomte.fr
Fri Jun 10 22:32:27 CEST 2011


Hi again,

> Then it is the time for Eugen to add it in his sip client and send
> the patch for enhancing kamailio's presence server with rfc4481, as
> well

:o)

I start my application, and make my own status be shown.  I change my 
status back and forth a few times between Away and DoNotDisturb (each 
time a publish is sent), the status returned (in notify) is good.  When 
I change my status to Online/Available (and only to this), kamailio 
returns a double tuple.  Is it normal to have a double tuple?  If yes, 
which one to choose (the one with latest timestamp)?  Here it is:

NOTIFY sip:eugen.dedu at 82.238.108.175:5060 SIP/2.0
CSeq: 7 NOTIFY
Via: SIP/2.0/UDP 86.64.162.35;branch=z9hG4bK7634.4d863c14.0
User-Agent: Kamailio (1.5.3-notls (i386/linux))
From: sip:eugen.dedu at ekiga.net;tag=f85b0bd16aaafa8479586ac9f88b3198-29fc
Call-ID: 8a0d723b-0f8d-e011-84d7-0024d693d8e8 at snoopy
To: sip:eugen.dedu at ekiga.net;tag=7c75723b-0f8d-e011-84d7-0024d693d8e8
Contact: <sip:86.64.162.35:5060>
Subscription-State: active;expires=270
Event: presence
Content-Length: 938
Content-Type: application/pidf+xml
Max-Forwards: 70

<?xml version="1.0" encoding="UTF-8"?>
<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="pres:eugen.dedu at ekiga.net">
   <tuple id="T00000002">
     <status>
       <basic>open</basic>
     </status>
     <contact priority="1">sip:eugen.dedu at ekiga.net</contact>
     <note>online - </note>
     <timestamp>2011-06-04T13:55:56+02:00+02:00</timestamp>
   </tuple>

   <tuple xmlns="urn:ietf:params:xml:ns:pidf" id="T00000001">
     <status>
       <basic>open</basic>
     </status>
     <contact priority="1">sip:eugen.dedu at ekiga.net</contact>
     <note>away - jjk</note>
     <timestamp>2011-06-04T13:54:37+02:00+02:00</timestamp>
   </tuple>
   <dm:person xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" 
xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid" id="pid1">
     <rpid:activities>
       <rpid:away/>
     </rpid:activities>
   </dm:person>
</presence>

-- 
Eugen



More information about the sr-users mailing list