<p>Anca, </p>
<p>Doing some more testing it looks like the Bria client is sending PUBLISH messages and they are &quot;open&quot;. Only when they bria client is shut down is the record in the presentity table set to &quot;closed&quot;. Then when the Bria client is turned on again a new PUBLISH is sent and entered into the presentity table with &quot;open&quot;, but the NOTIFY that is sent to any watchers has the &quot;closed&quot; in the notify. So it appears that because there are multiple entries in the Presentity table for a single user it is confusing things. Here is an example </p>

<div>I have user 9013349018 that just closed down Bria. Then the user starts Bria back up and you have the following in the table </div>
<div><a href="http://pastebin.com/1aZdXsbR">http://pastebin.com/1aZdXsbR</a></div>
<div> </div>
<div><br>So the new Presentity record for user 9013349018 is record id 2921. And as the bria client came up you see the following Notify message get sent to user 9013349019 and it has the &quot;closed&quot; in the notify message. Here are the Notify messages </div>

<div><a href="http://pastebin.com/QJvYiD1B">http://pastebin.com/QJvYiD1B</a></div>
<div> </div>
<div>So you see that the Bria client came up and sent OpenSIPS a PUBLISH message and it doesn&#39;t have &quot;closed&quot; in the XML. Yet when OpenSIPS relays a NOTIFY to a watcher you see that the &quot;closed&quot; gets placed in the xml. So now I am thinking that Bria isn&#39;t the issue.</div>

<div> </div>
<div><br> </div>
<div class="gmail_quote">On Mon, Jun 20, 2011 at 11:46 AM, Anca Vamanu <span dir="ltr">&lt;<a href="mailto:anca.vamanu@gmail.com">anca.vamanu@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi Duane,<br><br>Sure looks like a Bria problem.. If it sends publishes with status closed, the presence server doesn&#39;t have what else to do but to believe that is the real state that it wants to publish. Maybe something in Bria&#39;s configuration leads to this...<br>
<br>Regards,<br>Anca Vamanu<br><br>
<div class="gmail_quote">
<div>
<div></div>
<div class="h5">On Mon, Jun 20, 2011 at 5:10 AM, <span dir="ltr">&lt;<a href="mailto:duane.larson@gmail.com" target="_blank">duane.larson@gmail.com</a>&gt;</span> wrote:<br></div></div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div></div>
<div class="h5">I have OpenSIPS set up with Presence and am using Counterpath&#39;s Bria Client. In the past I was able to get Bria/OpenSIPS/OpenXCAP to all work. Now I am trying to get it to work again and I&#39;m having problems. When two users agree to view each others presence it doesn&#39;t work. I see that each user is recieving NOTIFY messages about the other users presence but the Bria client doesn&#39;t update the users status. I see that every time a Bria client starts up it is Publishing its presence but it always has &lt;basic&gt;closed&lt;/basic&gt; in the xml <br>
<br>U 2011/06/19 21:00:12.240159 <a href="http://108.67.136.231:31194/" target="_blank">108.67.136.231:31194</a> -&gt; <a href="http://173.203.93.107:5060/" target="_blank">173.203.93.107:5060</a> <br>PUBLISH sip:<a href="tel:9013349018" target="_blank" value="+19013349018">9013349018</a>@<a href="http://irock.com/" target="_blank">irock.com</a> SIP/2.0. <br>
Via: SIP/2.0/UDP 108.67.136.231:31194;branch=z9hG4bK-d8754z-96515b7ec527b151-1---d8754z-;rport. <br>Max-Forwards: 70. <br>Contact: &lt;sip:<a href="tel:9013349018" target="_blank" value="+19013349018">9013349018</a>@108.67.136.231:31194;transport=udp&gt;. <br>
To: &quot;<a href="tel:9013349018" target="_blank" value="+19013349018">9013349018</a>&quot;&lt;sip:<a href="tel:9013349018" target="_blank" value="+19013349018">9013349018</a>@<a href="http://irock.com/" target="_blank">irock.com</a>&gt;. <br>
From: &quot;<a href="tel:9013349018" target="_blank" value="+19013349018">9013349018</a>&quot;&lt;sip:<a href="tel:9013349018" target="_blank" value="+19013349018">9013349018</a>@<a href="http://irock.com/" target="_blank">irock.com</a>&gt;;tag=71799813. <br>
Call-ID: NTJkNzgyYmMwMDQ1ZWUwMzExMzkyM2Y1OTgxNDgwN2U.. <br>CSeq: 1 PUBLISH. <br>Expires: 3600. <br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO. <br>Content-Type: application/pidf+xml. <br>
User-Agent: Bria 3 release 3.2.1 stamp 62387. <br>Event: presence. <br>Content-Length: 469. <br>. <br>&lt;?xml version=&#39;1.0&#39; encoding=&#39;UTF-8&#39;?&gt;&lt;presence xmlns=&#39;urn:ietf:params:xml:ns:pidf&#39; xmlns:dm=&#39;urn:ietf:params:xml:ns:pidf:data-model&#39; xmlns:rpid=&#39;urn:ietf:params:xml:ns:pidf:rpid&#39; xmlns:c=&#39;urn:ietf:params:xml:ns:pidf:cipid&#39; xmlns:lt=&#39;urn:ietf:params:xml:ns:location-type&#39; xmlns:caps=&#39;urn:ietf:params:xml:ns:pidf:caps&#39; entity=&#39;sip:<a href="tel:9013349018" target="_blank" value="+19013349018">9013349018</a>@<a href="http://irock.com/" target="_blank">irock.com</a>&#39;&gt;&lt;tuple id=&#39;td9cbb9c2&#39;&gt;&lt;status&gt;&lt;basic&gt;closed&lt;/basic&gt;&lt;/status&gt;&lt;/tuple&gt;&lt;dm:person id=&#39;p0f48c387&#39;&gt;&lt;/dm:person&gt;&lt;/presence&gt; <br>
# <br>U 2011/06/19 21:00:12.244401 <a href="http://173.203.93.107:5060/" target="_blank">173.203.93.107:5060</a> -&gt; <a href="http://108.67.136.231:31194/" target="_blank">108.67.136.231:31194</a> <br>SIP/2.0 200 OK. <br>
Via: SIP/2.0/UDP 108.67.136.231:31194;branch=z9hG4bK-d8754z-72b75f4a63995f60-1---d8754z-;rport=31194. <br>To: &lt;sip:<a href="tel:9013349018" target="_blank" value="+19013349018">9013349018</a>@<a href="http://irock.com/" target="_blank">irock.com</a>&gt;;tag=31ec65e482de21ae66d7d44df69d3d8c-c4ef. <br>
From: &quot;<a href="tel:9013349018" target="_blank" value="+19013349018">9013349018</a>&quot;&lt;sip:<a href="tel:9013349018" target="_blank" value="+19013349018">9013349018</a>@<a href="http://irock.com/" target="_blank">irock.com</a>&gt;;tag=b5e76db3. <br>
Call-ID: ZGI1OTA4NmEyYjAzZjFiY2VhNDY4OWY1Njk5MWIwZDA.. <br>CSeq: 1 SUBSCRIBE. <br>Expires: 3600. <br>Contact: &lt;<a href="http://sip:sa@173.203.93.107:5060" target="_blank">sip:sa@173.203.93.107:5060</a>&gt;. <br>Server: Aethercommunications SIP Proxy. <br>
Content-Length: 0. <br><br><br><br><br>Then in the Presentity table I have the following <br><br>mysql&gt; select * from presentity; <br>+------+------------+-----------+----------+--------------------------+------------+---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+--------+ <br>
| id | username | domain | event | etag | expires | received_time | body | extra_hdrs | sender | <br>+------+------------+-----------+----------+--------------------------+------------+---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+--------+ <br>
| 2914 | <a href="tel:9013349018" target="_blank" value="+19013349018">9013349018</a> | <a href="http://irock.com/" target="_blank">irock.com</a> | presence | a.1308527728.29011.36.15 | 1308537940 | 1308534340 | &lt;?xml version=&#39;1.0&#39; encoding=&#39;UTF-8&#39;?&gt;&lt;presence xmlns=&#39;urn:ietf:params:xml:ns:pidf&#39; xmlns:dm=&#39;urn:ietf:params:xml:ns:pidf:data-model&#39; xmlns:rpid=&#39;urn:ietf:params:xml:ns:pidf:rpid&#39; xmlns:c=&#39;urn:ietf:params:xml:ns:pidf:cipid&#39; xmlns:lt=&#39;urn:ietf:params:xml:ns:location-type&#39; xmlns:caps=&#39;urn:ietf:params:xml:ns:pidf:caps&#39; entity=&#39;sip:<a href="tel:9013349018" target="_blank" value="+19013349018">9013349018</a>@<a href="http://irock.com/" target="_blank">irock.com</a>&#39;&gt;&lt;tuple id=&#39;t1f9e4914&#39;&gt;&lt;status&gt;&lt;basic&gt;closed&lt;/basic&gt;&lt;/status&gt;&lt;/tuple&gt;&lt;dm:person id=&#39;pf69e3d57&#39;&gt;&lt;/dm:person&gt;&lt;/presence&gt; | | | <br>
| 2916 | <a href="tel:9013349018" target="_blank" value="+19013349018">9013349018</a> | <a href="http://irock.com/" target="_blank">irock.com</a> | presence | a.1308527728.29010.37.2 | 1308538423 | 1308534823 | &lt;?xml version=&#39;1.0&#39; encoding=&#39;UTF-8&#39;?&gt;&lt;presence xmlns=&#39;urn:ietf:params:xml:ns:pidf&#39; xmlns:dm=&#39;urn:ietf:params:xml:ns:pidf:data-model&#39; xmlns:rpid=&#39;urn:ietf:params:xml:ns:pidf:rpid&#39; xmlns:c=&#39;urn:ietf:params:xml:ns:pidf:cipid&#39; xmlns:lt=&#39;urn:ietf:params:xml:ns:location-type&#39; xmlns:caps=&#39;urn:ietf:params:xml:ns:pidf:caps&#39; entity=&#39;sip:<a href="tel:9013349018" target="_blank" value="+19013349018">9013349018</a>@<a href="http://irock.com/" target="_blank">irock.com</a>&#39;&gt;&lt;tuple id=&#39;tb1de818c&#39;&gt;&lt;status&gt;&lt;basic&gt;closed&lt;/basic&gt;&lt;/status&gt;&lt;/tuple&gt;&lt;dm:person id=&#39;p43342606&#39;&gt;&lt;/dm:person&gt;&lt;/presence&gt; | | | <br>
| 2915 | <a href="tel:9013349019" target="_blank" value="+19013349019">9013349019</a> | <a href="http://irock.com/" target="_blank">irock.com</a> | presence | a.1308527728.29012.38.7 | 1308538476 | 1308534876 | &lt;?xml version=&#39;1.0&#39; encoding=&#39;UTF-8&#39;?&gt;&lt;presence xmlns=&#39;urn:ietf:params:xml:ns:pidf&#39; xmlns:dm=&#39;urn:ietf:params:xml:ns:pidf:data-model&#39; xmlns:rpid=&#39;urn:ietf:params:xml:ns:pidf:rpid&#39; xmlns:c=&#39;urn:ietf:params:xml:ns:pidf:cipid&#39; xmlns:lt=&#39;urn:ietf:params:xml:ns:location-type&#39; xmlns:caps=&#39;urn:ietf:params:xml:ns:pidf:caps&#39; entity=&#39;sip:<a href="tel:9013349019" target="_blank" value="+19013349019">9013349019</a>@<a href="http://irock.com/" target="_blank">irock.com</a>&#39;&gt;&lt;tuple id=&#39;t5762491b&#39;&gt;&lt;status&gt;&lt;basic&gt;open&lt;/basic&gt;&lt;/status&gt;&lt;/tuple&gt;&lt;dm:person id=&#39;pb4ae929f&#39;&gt;&lt;dm:note&gt;Available&lt;/dm:note&gt;&lt;/dm:person&gt;&lt;/presence&gt; | | | <br>
| 2917 | <a href="tel:9013349018" target="_blank" value="+19013349018">9013349018</a> | <a href="http://irock.com/" target="_blank">irock.com</a> | presence | a.1308527728.29013.33.2 | 1308538770 | 1308535170 | &lt;?xml version=&#39;1.0&#39; encoding=&#39;UTF-8&#39;?&gt;&lt;presence xmlns=&#39;urn:ietf:params:xml:ns:pidf&#39; xmlns:dm=&#39;urn:ietf:params:xml:ns:pidf:data-model&#39; xmlns:rpid=&#39;urn:ietf:params:xml:ns:pidf:rpid&#39; xmlns:c=&#39;urn:ietf:params:xml:ns:pidf:cipid&#39; xmlns:lt=&#39;urn:ietf:params:xml:ns:location-type&#39; xmlns:caps=&#39;urn:ietf:params:xml:ns:pidf:caps&#39; entity=&#39;sip:<a href="tel:9013349018" target="_blank" value="+19013349018">9013349018</a>@<a href="http://irock.com/" target="_blank">irock.com</a>&#39;&gt;&lt;tuple id=&#39;t4246cfbe&#39;&gt;&lt;status&gt;&lt;basic&gt;closed&lt;/basic&gt;&lt;/status&gt;&lt;/tuple&gt;&lt;dm:person id=&#39;p49e1604e&#39;&gt;&lt;/dm:person&gt;&lt;/presence&gt; | | | <br>
| 2918 | <a href="tel:9013349018" target="_blank" value="+19013349018">9013349018</a> | <a href="http://irock.com/" target="_blank">irock.com</a> | presence | a.1308527728.29012.42.1 | 1308538823 | 1308535223 | &lt;?xml version=&#39;1.0&#39; encoding=&#39;UTF-8&#39;?&gt;&lt;presence xmlns=&#39;urn:ietf:params:xml:ns:pidf&#39; xmlns:dm=&#39;urn:ietf:params:xml:ns:pidf:data-model&#39; xmlns:rpid=&#39;urn:ietf:params:xml:ns:pidf:rpid&#39; xmlns:c=&#39;urn:ietf:params:xml:ns:pidf:cipid&#39; xmlns:lt=&#39;urn:ietf:params:xml:ns:location-type&#39; xmlns:caps=&#39;urn:ietf:params:xml:ns:pidf:caps&#39; entity=&#39;sip:<a href="tel:9013349018" target="_blank" value="+19013349018">9013349018</a>@<a href="http://irock.com/" target="_blank">irock.com</a>&#39;&gt;&lt;tuple id=&#39;td9cbb9c2&#39;&gt;&lt;status&gt;&lt;basic&gt;open&lt;/basic&gt;&lt;/status&gt;&lt;/tuple&gt;&lt;dm:person id=&#39;p0f48c387&#39;&gt;&lt;dm:note&gt;Available&lt;/dm:note&gt;&lt;/dm:person&gt;&lt;/presence&gt; | | | <br>
+------+------------+-----------+----------+--------------------------+------------+---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+--------+ <br>
<br><br>If I delete all the Presentity records in the presentity table that have the &lt;basic&gt;closed&lt;/basic&gt; in them then Presence status updates start working like they should. Then when the Bria client is shut down it updates the record in Presentity with &lt;basic&gt;closed&lt;/basic&gt;. <br>
<br>Where is the issue? What do I need to fix or is this a Counterpath Bria issue???<br></div></div>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br><br></blockquote></div><br><br>_______________________________________________<br>
Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>--<br>*--*--*--*--*--*<br>Duane<br>*--*--*--*--*--*<br>--<br>