[OpenSIPS-Devel] SF.net SVN: opensips:[5942] trunk/modules/presence_xml/xcap_auth.c

Anca Vamanu anca at opensips.org
Fri Aug 7 15:23:38 CEST 2009


Iñaki Baz Castillo wrote:
> 2009/8/7 Anca Vamanu <anca at opensips.org>:
>   
>> Revision: 5942
>>          http://opensips.svn.sourceforge.net/opensips/?rev=5942&view=rev
>> Author:   anca_vamanu
>> Date:     2009-08-07 11:55:06 +0000 (Fri, 07 Aug 2009)
>>
>> Log Message:
>> -----------
>> - changed status to terminated, reason "deactivated" if previous status was active and no rules were found for the watcher
>>
>> Modified Paths:
>> --------------
>>    trunk/modules/presence_xml/xcap_auth.c
>>     
>
>
> Something is wrong:
>
> - bob is not allowed by alice so receives "pending" (OK).
>
> - alice allows bob via XCAP pres-rules so bob receives a NOTIFY "active" (OK).
>
> - alice deletes bob from the pres-rules and OpenSIPS sends a NOTIFY to
> bob with "terminated;reason=deactivated".
>
> - Immediately bob sends a new initial SUBSCRIBE.
>
> - OpenSIPS replies a NOTIFY "active" containing the presentity body.
> This is, bob is allowed to see the status of alice.
>
>
> Tested and re-tested.
>
>   
Can you please check one extra things for me?
After alice deletes bob from pres-rules, can you do a select * from 
watchers where  presentity_uri="sip:alice at domain.com" and 
watcher_username="bob". There should be no entry there.




More information about the Devel mailing list