Hi,


    we have changed the event presence.winfo to presence.
    but now in this case we received Notify without body.

please tell me where i m wrong????

Thanks & Regards,
Amit Vijayvargiya


On Mon, 2008-05-12 at 16:10 +0300, Anca Vamanu wrote:
Hi Amit!


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

The Notify that you must look should have Event: presence.
Please make sure to set the force_active parameter in your configuration 
file to 1.

regards,
Anca Vamanu



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