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

Iñaki Baz Castillo ibc at aliax.net
Fri Aug 7 15:29:08 CEST 2009


2009/8/7 Anca Vamanu <anca at opensips.org>:
>> 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.

After bob dissapears in alice's pres-rules, the entry in
active_watchers is removed, but a new one is created for the new
subscription coming from bob (after receiving the NOTIFY
terminated;reason=deactivated).

The problem is that the new entry in active_watcher has status 1 while
it should be 3 (pending).




-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the Devel mailing list