<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.10.0">
</HEAD>
<BODY>
<BR>
Hi,<BR>
<BR>
<BR>
&nbsp;&nbsp;&nbsp; we have changed the event <FONT COLOR="#000000">presence.winfo</FONT> to <FONT COLOR="#000000">presence</FONT>.<BR>
&nbsp;&nbsp;&nbsp; but now in this case we received Notify without body.<BR>
<BR>
please tell me where i m wrong????<BR>
<BR>
Thanks &amp; Regards,<BR>
Amit Vijayvargiya<BR>
<BR>
<BR>
On Mon, 2008-05-12 at 16:10 +0300, Anca Vamanu wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hi Amit!</FONT>


<FONT COLOR="#000000">It is about totally different things there.</FONT>
<FONT COLOR="#000000">The Notify that you observe and think is not correct is for event : </FONT>
<FONT COLOR="#000000">presence.winfo, you will find it in the Event header  of the message. </FONT>
<FONT COLOR="#000000">This corresponds to a Subscribe for presence.winfo that the x-lite </FONT>
<FONT COLOR="#000000">client also.  This event is described here </FONT>
<FONT COLOR="#000000"><A HREF="http://www.ietf.org/rfc/rfc3857.txt">http://www.ietf.org/rfc/rfc3857.txt</A> ; in short it is about seeing who is </FONT>
<FONT COLOR="#000000">watching you presence.</FONT>

<FONT COLOR="#000000">The Notify that you must look should have Event: presence.</FONT>
<FONT COLOR="#000000">Please make sure to set the force_active parameter in your configuration </FONT>
<FONT COLOR="#000000">file to 1.</FONT>

<FONT COLOR="#000000">regards,</FONT>
<FONT COLOR="#000000">Anca Vamanu</FONT>



<FONT COLOR="#000000">Amit Vijayvargiya wrote:</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; Hi,</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; thanks for reply my mail.....</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; body i found in presentity table -----&gt;</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; *&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;*</FONT>
<FONT COLOR="#000000">&gt; *&lt;presence xmlns=&quot;urn:ietf:params:xml:ns:pidf&quot; entity=&quot;<A HREF="mailto:user@domain.com">user@domain.com</A> </FONT>
<FONT COLOR="#000000">&gt; &lt;mailto:<A HREF="mailto:2000@sip.pyrogroup.com">2000@sip.pyrogroup.com</A>&gt;&quot;&gt;*</FONT>
<FONT COLOR="#000000">&gt; * &lt;tuple id=&quot;null&quot;&gt;*</FONT>
<FONT COLOR="#000000">&gt; *  &lt;status&gt;*</FONT>
<FONT COLOR="#000000">&gt; *   &lt;basic&gt;open&lt;/basic&gt;*</FONT>
<FONT COLOR="#000000">&gt; *  &lt;/status&gt;*</FONT>
<FONT COLOR="#000000">&gt; *  &lt;note&gt;online&lt;/note&gt;*</FONT>
<FONT COLOR="#000000">&gt; * &lt;/tuple&gt;*</FONT>
<FONT COLOR="#000000">&gt; *&lt;/presence&gt;*</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; body i receive in Notify   ---&gt; i receive same body even user is </FONT>
<FONT COLOR="#000000">&gt; offline or online or ideal..............</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; *&lt;?xml version=&quot;1.0&quot;&gt;\n*</FONT>
<FONT COLOR="#000000">&gt; *&lt;watcherinfo xmlns=&quot;urn:ietf:params:xml:ns:watcherinfo&quot; version=&quot;0&quot; </FONT>
<FONT COLOR="#000000">&gt; state=&quot;full&quot;&gt;\n*</FONT>
<FONT COLOR="#000000">&gt; *    &lt;watcher-list resource=&quot;sip:<A HREF="mailto:user@domain.com">user@domain.com</A> </FONT>
<FONT COLOR="#000000">&gt; &lt;mailto:<A HREF="mailto:2000@domain.com">2000@domain.com</A>&gt;&quot; package=&quot;presence&quot;/&gt;\n*</FONT>
<FONT COLOR="#000000">&gt; *&lt;/watcherinfo&gt;\n*</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; there is any problem????</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; Thanks &amp; Regards,</FONT>
<FONT COLOR="#000000">&gt; Amit Vijayvargiya</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; On Mon, 2008-05-12 at 13:43 +0300, Anca Vamanu wrote:</FONT>
<FONT COLOR="#000000">&gt;&gt; Hi Amit,</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; What do you mean by a wrong body?</FONT>
<FONT COLOR="#000000">&gt;&gt; Could you print the body you find in your db table and the one you see </FONT>
<FONT COLOR="#000000">&gt;&gt; in the Notify?</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; Regards,</FONT>
<FONT COLOR="#000000">&gt;&gt; Anca Vamanu</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; Amit Vijayvargiya wrote:</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; hi,</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; i m add *presence* module in openser 1.3.</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;          but it not working properly.</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;          when x-lite send a subscribe to client-B, it receive notify </FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; but with different body.</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;          i see in the table *presentity *it shows right body.</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; where is the problem?????</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; my configuration like this for subscribe and publish......</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; route[2]</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; {</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;          sl_send_reply(&quot;100&quot;,&quot;trying&quot;);</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;         append_to_reply(&quot;Contact: &lt;sip:sip.pyrogroup.com:5060&gt;\r\n&quot;);</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;         if (!t_newtran())</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;         {</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;                 sl_reply_error();</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;                 exit;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;         };</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;         if(is_method(&quot;PUBLISH&quot;))</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;         {</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;                 if($hdr(Sender)!= NULL)</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;                        handle_publish(&quot;$hdr(Sender)&quot;);</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;                 else</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;                         handle_publish();</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;                 t_release();</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;         }</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;         else</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;         if( is_method(&quot;SUBSCRIBE&quot;))</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;         {</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;                 handle_subscribe();</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;                 t_release();</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;         }</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;         exit;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; }</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; Thanks &amp; Regards,</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; Amit</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; ------------------------------------------------------------------------</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; _______________________________________________</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; Users mailing list</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; <A HREF="mailto:Users@lists.openser.org">Users@lists.openser.org</A> &lt;mailto:<A HREF="mailto:Users@lists.openser.org">Users@lists.openser.org</A>&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; &gt; <A HREF="http://lists.openser.org/cgi-bin/mailman/listinfo/users">http://lists.openser.org/cgi-bin/mailman/listinfo/users</A></FONT>
<FONT COLOR="#000000">&gt;&gt; &gt;   </FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt;     </FONT>


</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>