<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Yes, correct. I don't think this is anything to do with Kamailio, I will detach you from the thread,<div><br></div><div>Thanks for all your assistance!<br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br class="Apple-interchange-newline">--------</div><div>Robert Jongbloed</div><div>Vox Lucida Pty. Ltd.</div><div><br></div></div></span></span>
</div>
<br><div><div>On 12/06/2011, at 8:11 PM, Iñaki Baz Castillo wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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><div><br class="webkit-block-placeholder"></div><blockquote type="cite">El 10/06/2011 21:32, "Eugen Dedu" &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'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. &nbsp;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. &nbsp;When I change my status to Online/Available (and only to this), kamailio returns a double tuple. &nbsp;Is it normal to have a double tuple? &nbsp;If yes, which one to choose (the one with latest timestamp)? &nbsp;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="1.0" encoding="UTF-8"?&gt;<br>
&lt;presence xmlns="urn:ietf:params:xml:ns:<u></u>pidf" xmlns:dm="urn:ietf:params:xml:<u></u>ns:pidf:data-model" xmlns:<br>
rpid="urn:ietf:params:xml:ns:<u></u>pidf:rpid" entity="<a href="mailto:pres%3Aeugen.dedu@ekiga.net" target="_blank">pres:eugen.dedu@ekiga.<u></u>net</a>"&gt;<br>
 &nbsp;&lt;tuple id="T00000002"&gt;<br>
 &nbsp; &nbsp;&lt;status&gt;<br>
 &nbsp; &nbsp; &nbsp;&lt;basic&gt;open&lt;/basic&gt;<br>
 &nbsp; &nbsp;&lt;/status&gt;<br>
 &nbsp; &nbsp;&lt;contact priority="1"&gt;<a href="mailto:sip%3Aeugen.dedu@ekiga.net" target="_blank">sip:eugen.dedu@<u></u>ekiga.net</a>&lt;/contact&gt;<br>
 &nbsp; &nbsp;&lt;note&gt;online - &lt;/note&gt;<br>
 &nbsp; &nbsp;&lt;timestamp&gt;2011-06-04T13:55:<u></u>56+02:00+02:00&lt;/timestamp&gt;<br>
 &nbsp;&lt;/tuple&gt;<br>
<br>
 &nbsp;&lt;tuple xmlns="urn:ietf:params:xml:ns:<u></u>pidf" id="T00000001"&gt;<br>
 &nbsp; &nbsp;&lt;status&gt;<br>
 &nbsp; &nbsp; &nbsp;&lt;basic&gt;open&lt;/basic&gt;<br>
 &nbsp; &nbsp;&lt;/status&gt;<br>
 &nbsp; &nbsp;&lt;contact priority="1"&gt;<a href="mailto:sip%3Aeugen.dedu@ekiga.net" target="_blank">sip:eugen.dedu@<u></u>ekiga.net</a>&lt;/contact&gt;<br>
 &nbsp; &nbsp;&lt;note&gt;away - jjk&lt;/note&gt;<br>
 &nbsp; &nbsp;&lt;timestamp&gt;2011-06-04T13:54:<u></u>37+02:00+02:00&lt;/timestamp&gt;<br>
 &nbsp;&lt;/tuple&gt;<br>
 &nbsp;&lt;dm:person xmlns:dm="urn:ietf:params:xml:<u></u>ns:pidf:data-model" xmlns:rpid="urn:ietf:params:<u></u>xml:ns:pidf:rpid" id="pid1"&gt;<br>
 &nbsp; &nbsp;&lt;rpid:activities&gt;<br>
 &nbsp; &nbsp; &nbsp;&lt;rpid:away/&gt;<br>
 &nbsp; &nbsp;&lt;/rpid:activities&gt;<br>
 &nbsp;&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><div><br class="webkit-block-placeholder"></div>
</blockquote></div><br></div></body></html>