state/availability element

Applies to: Lync 2013 | Lync Server 2013

Specifies an availability number to indicate the presentity’s availability status.

<st:availability xmlns:st="http://schemas.microsoft.com/2006/09/sip/state">xs:unsignedInt</st:availability>

xs:unsignedInt

Attributes and elements

The following sections describe attributes, child elements, and parent elements.

Attributes

None

Child elements

None

Parent elements

Element

Description

state category instance value elements

A presence state category instance value.

Text value

An unsigned integer.

Remarks

Microsoft Lync 2013 uses the following availability ranges:

Availability Number Ranges

Stabdard Availability Status

0-4499

Available

4500-5999

Available-Idle

6000-7499

Busy

7500-8999

Busy-Idle

9000-11999

Do Not Disturb

12000-14999

Be Right Back

15000-17999

Away

18000 and higher

Offline

Example

The following XML example shows a userState category instance value containing an availability number of 15500 to indicate the Out of Office status and a custom activity string of "Out of office until next week".

<state xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
       xsi:type="userState"
        xmlns="http://schemas.microsoft.com/2006/09/sip/state">
   <availability>15500</availability>
   <activity>
      <custom LCID="1033">Out of office until next week</custom>
   </activity>
</state>

Element information

Namespace

http://schemas.microsoft.com/2006/09/sip/state

Schema Name

state

Validation File

state.xsd, statetypes.xsd

Can be Empty

True

See also

Reference

Category instance elements for presence

state category instance value elements

Other resources

Presence State and state Category Instance