sip_presence_notify
S → C {type:'sip_presence_notify', from:…, basic:…, activity:…, note:…, format:…, subscription_state:…, msg:…}
sip_presence_notify – received SIP presence information.
arguments:
- from - SIP address of client with changed presence status
- basic - client online status:
- "open" - client is online
- "closed" - client is offline
- format - message format:
- "application/pidf+xml": SIP presence information
- "application/watcherinfo+xml": presence subscribers list
- other formats may also occur
- msg - SIP presence message as it was received from server
optional arguments:
- activity - activity description according to RFC4480 section 3.2
- note - free text description
- subscription_state - subscription state, eg "active;expires=296" (seconds)
subscribers list
If you have requested sip_presence_subscribe with your own SIP address as "to" you will receive a sip_presence_notify with format:'application/watcherinfo+xml' there msg contains a raw list of SIP clients subscribing to your presence status.