<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13.63636302947998px">After delete the entry </span><span style="font-family:arial,sans-serif;font-size:13.63636302947998px">by the time </span><span style="font-family:arial,sans-serif;font-size:13.63636302947998px;color:rgb(0,0,255)">17:14:42  </span><span style="font-family:arial,sans-serif;font-size:13.63636302947998px">manually from the sql database</span>,I can operate the presence status correctly again.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/31 hong sun <span dir="ltr">&lt;<a href="mailto:sunhongskyworth@gmail.com" target="_blank">sunhongskyworth@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><div dir="ltr"><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">hong sun</b> <span dir="ltr">&lt;<a href="mailto:sunhongskyworth@gmail.com" target="_blank">sunhongskyworth@gmail.com</a>&gt;</span><br>

Date: 2013/5/29<br>Subject: self-presence was incorrect when application exited abnormally<br>To: <a href="mailto:devel@lists.opensips.org" target="_blank">devel@lists.opensips.org</a><br><br><br><div dir="ltr"><div>Hi list,</div>
<div><br>
</div><div>When the sip user agent corrupt or exit abnomally.</div><div>After register again, the presence see by buddy is not correct,it will show as the previous state permanently,and the state can not modify anymore by himself.</div>


<div>Observe the state within presentity table:</div><div>I found the previous state still in the table,Is this correct?</div><div> </div><div><div>&lt;presence xmlns=&quot;urn:ietf:params:xml:ns:pidf&quot; xmlns:dm=&quot;urn:ietf:params:xml:ns:pidf:data-model&quot; xmlns:rpid=&quot;urn:ietf:params:xml:ns:pidf:rpid&quot; entity=&quot;<a href="mailto:sip%3A155@172.22.198.172" target="_blank">sip:155@172.22.198.172</a>&quot;&gt;</div>


<div> &lt;tuple id=&quot;pjVwalYvPLAv4DbMOIY9FY-Q8xpvSyfrik&quot;&gt;</div><div>  &lt;status&gt;</div><div>   &lt;basic&gt;open&lt;/basic&gt;</div><div>  &lt;/status&gt;</div><div>  &lt;timestamp&gt;2013-05-29T<font color="#0000ff">17:15:51</font>.751Z&lt;/timestamp&gt;</div>


<div> &lt;/tuple&gt;</div><div> &lt;dm:person id=&quot;pjmGu9nSuinwsmH7O1KhTOi.p.pDKqWLem&quot;&gt;</div><div>  &lt;rpid:activities&gt;</div><div>   &lt;rpid:busy/&gt;</div><div>  &lt;/rpid:activities&gt;</div><div> &lt;/dm:person&gt;</div>


<div>&lt;/presence&gt;</div><div> |            |        |</div><div>| 7683 | 155      | 172.22.198.172 | presence | a.1369700773.2319.357.5 | 1369822476 |    1369818876 | &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</div>


<div>&lt;presence xmlns=&quot;urn:ietf:params:xml:ns:pidf&quot; xmlns:dm=&quot;urn:ietf:params:xml:ns:pidf:data-model&quot; xmlns:rpid=&quot;urn:ietf:params:xml:ns:pidf:rpid&quot; entity=&quot;<a href="mailto:sip%3A155@172.22.198.172" target="_blank">sip:155@172.22.198.172</a>&quot;&gt;</div>


<div> &lt;tuple id=&quot;pjdLoDiY9ArvSs3JLEm8rLtjSSqZ.yHvGe&quot;&gt;</div><div>  &lt;status&gt;</div><div>   &lt;basic&gt;open&lt;/basic&gt;</div><div>  &lt;/status&gt;</div><div>  &lt;timestamp&gt;2013-05-29T<font color="#0000ff">17:14:42</font>.305Z&lt;/timestamp&gt;</div>


<div> &lt;/tuple&gt;</div><div> &lt;dm:person id=&quot;pjCZk6TrQ40yRipOpuVLpN434K9vRnSiFn&quot;&gt;</div><div>  &lt;rpid:activities&gt;</div><div>   &lt;rpid:busy/&gt;</div><div>  &lt;/rpid:activities&gt;</div><div> &lt;/dm:person&gt;</div>


<div>&lt;/presence&gt;</div></div><div><br></div><div><br></div><div>Best Regards,</div><div><br></div></div>
</div><br></div>
</div></div></blockquote></div><br></div>