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

Anca Vamanu anca at opensips.org
Fri Aug 7 15:35:46 CEST 2009


Iñaki Baz Castillo wrote:
> 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).
>
>
>
>
>   
The XCAP pres-rules document interpretation part was not changed and I 
don't think that there are problems in there. Can you send me the pres 
rules document after deleting bob from alice pres rules?




More information about the Devel mailing list