Hello,
On 6/11/11 6:54 AM, IƱaki Baz Castillo wrote:
2011/6/10 Daniel-Constantin Mierlamiconda@gmail.com:
have you spotted in SIP/SIMPLE specs what has to be sent when the presentity is offline? My quick google was not that succesful. Maybe Inaki has the specs more fresh indexed in memory and can help.
If the user has not published a "offline" presentity, then the server must not generate one. Sending an empty NOTIFY is the correct behaviour, which means "unknown state" (most of the subscribers should interpret it as "offline").
What is the purpose of publishing a presentity with "offline" status? Well, as most of the SIMPLE presence stuff, it's just a way to make things hyper-complex.
There is however an exception: RFC 4827. The client goes on holidays for long time and decides to upload,, via *XCAP* a *permanent* (non expirable as a PUBLISH publication) pidf document in which it set the info it desires (maybe a status "offline" with a message "I'm on holiday until June 20").
right, it was the rfc i wanted to search for -- this features in kamailio presence implementation, can be controlled via module parameter pidf_manipulation , see: http://kamailio.org/docs/modules/stable/modules_k/presence_xml.html#id294072...
Cheers, Daniel