<p>The id of both tuples are different so the server must keep both. However the client sholud use if-match header on the second PUBLISH to ensure it will replace the existing one.</p>
<p><blockquote type="cite">El 10/06/2011 21:32, &quot;Eugen Dedu&quot; &lt;<a href="mailto:Eugen.Dedu@pu-pm.univ-fcomte.fr">Eugen.Dedu@pu-pm.univ-fcomte.fr</a>&gt; escribió:<br><br>Hi again,<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Then it is the time for Eugen to add it in his sip client and send<br>
the patch for enhancing kamailio&#39;s presence server with rfc4481, as<br>
well<br>
</blockquote>
<br>
:o)<br>
<br>
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:<br>

<br>
NOTIFY <a href="http://sip:eugen.dedu@82.238.108.175:5060" target="_blank">sip:eugen.dedu@82.238.108.175:<u></u>5060</a> SIP/2.0<br>
CSeq: 7 NOTIFY<br>
Via: SIP/2.0/UDP 86.64.162.35;branch=<u></u>z9hG4bK7634.4d863c14.0<br>
User-Agent: Kamailio (1.5.3-notls (i386/linux))<br>
From: <a href="mailto:sip%3Aeugen.dedu@ekiga.net" target="_blank">sip:eugen.dedu@ekiga.net</a>;tag=<u></u>f85b0bd16aaafa8479586ac9f88b31<u></u>98-29fc<br>
Call-ID: 8a0d723b-0f8d-e011-84d7-<u></u>0024d693d8e8@snoopy<br>
To: <a href="mailto:sip%3Aeugen.dedu@ekiga.net" target="_blank">sip:eugen.dedu@ekiga.net</a>;tag=<u></u>7c75723b-0f8d-e011-84d7-<u></u>0024d693d8e8<br>
Contact: &lt;sip:<a href="http://86.64.162.35:5060" target="_blank">86.64.162.35:5060</a>&gt;<br>
Subscription-State: active;expires=270<br>
Event: presence<br>
Content-Length: 938<br>
Content-Type: application/pidf+xml<br>
Max-Forwards: 70<br>
<br>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>
&lt;presence xmlns=&quot;urn:ietf:params:xml:ns:<u></u>pidf&quot; xmlns:dm=&quot;urn:ietf:params:xml:<u></u>ns:pidf:data-model&quot; xmlns:<br>
rpid=&quot;urn:ietf:params:xml:ns:<u></u>pidf:rpid&quot; entity=&quot;<a href="mailto:pres%3Aeugen.dedu@ekiga.net" target="_blank">pres:eugen.dedu@ekiga.<u></u>net</a>&quot;&gt;<br>
  &lt;tuple id=&quot;T00000002&quot;&gt;<br>
    &lt;status&gt;<br>
      &lt;basic&gt;open&lt;/basic&gt;<br>
    &lt;/status&gt;<br>
    &lt;contact priority=&quot;1&quot;&gt;<a href="mailto:sip%3Aeugen.dedu@ekiga.net" target="_blank">sip:eugen.dedu@<u></u>ekiga.net</a>&lt;/contact&gt;<br>
    &lt;note&gt;online - &lt;/note&gt;<br>
    &lt;timestamp&gt;2011-06-04T13:55:<u></u>56+02:00+02:00&lt;/timestamp&gt;<br>
  &lt;/tuple&gt;<br>
<br>
  &lt;tuple xmlns=&quot;urn:ietf:params:xml:ns:<u></u>pidf&quot; id=&quot;T00000001&quot;&gt;<br>
    &lt;status&gt;<br>
      &lt;basic&gt;open&lt;/basic&gt;<br>
    &lt;/status&gt;<br>
    &lt;contact priority=&quot;1&quot;&gt;<a href="mailto:sip%3Aeugen.dedu@ekiga.net" target="_blank">sip:eugen.dedu@<u></u>ekiga.net</a>&lt;/contact&gt;<br>
    &lt;note&gt;away - jjk&lt;/note&gt;<br>
    &lt;timestamp&gt;2011-06-04T13:54:<u></u>37+02:00+02:00&lt;/timestamp&gt;<br>
  &lt;/tuple&gt;<br>
  &lt;dm:person xmlns:dm=&quot;urn:ietf:params:xml:<u></u>ns:pidf:data-model&quot; xmlns:rpid=&quot;urn:ietf:params:<u></u>xml:ns:pidf:rpid&quot; id=&quot;pid1&quot;&gt;<br>
    &lt;rpid:activities&gt;<br>
      &lt;rpid:away/&gt;<br>
    &lt;/rpid:activities&gt;<br>
  &lt;/dm:person&gt;<br>
&lt;/presence&gt;<br><font color="#888888">
<br>
-- <br>
Eugen<br>
<br>
______________________________<u></u>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
</font></blockquote></p>