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