Share via


activity

Describes an activity associated with the accompanying availability mode.

<st:activity xmlns:st="https://schemas.microsoft.com/2006/09/sip/state" 
       toekn="st:activityTokenEnumEx"
       maxAvailability="st:unsignedInt" 
       minAvailability="st:unsignedInt" 
       [anyAttri]="anyAttribute">
   <ct:delimiter xmlns:ct="https://schemas.microsoft.com/2006/09/sip/commontypes" />
   <[any]>any element</[any]>
   <ct:end xmlns:ct="https://schemas.microsoft.com/2006/09/sip/commontypes" />
   <ct:extension xmlns:ct="https://schemas.microsoft.com/2006/09/sip/commontypes" >...<ct:extension>
</st:state>

activityType

Attributes and Elements

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

Attributes

Attribute

Description

token

Optional attribute to specify an activity token of the activityTokenEnumEx type as a supplemental description of the given availability mode.Microsoft Lync 2010 recognizes the following tokens:

on-the-phone

The presentity is on the phone. When no valid custom activity string is supplied, Lync 2010 displays the standard activity string of "On the phone".

in-a-conference

The presentity is in a conference. When no valid custom activity string is supplied, Lync 2010 displays the standard activity string of "In a conference".

in-a-meeting

The presentity is in a meeting. When no valid custom activity string is supplied, Lync 2010 displays the standard activity string of "In a meeting".

out-of-office

The presentity is out of office. When no valid custom activity string is supplied, Lync 2010 displays the standard activity string of "Out of office".

urgent-interruptions-only

The presentity wishes not to be disturbed except for urgent interruptions. When no valid custom activity string is supplied, Lync 2010 displays the standard activity string of "Urgent interruptions only.

maxAvailability

Optional attribute to specify the maximal availability mode associated with this activity description. The default value is unbounded.

minAvailability

Optional attribute to specify the minimal availability mode associated with this activity description. The default value is 0.

[anyAttr]

Optional custom attribute of any name and namespace.

Child Elements

Element

Occurrence

Description

custom

0 or more

Specifies application-provided locale-specific activity string. This element is of the LCIDType defined in the same namespace.

delimiter

0 or more

A beginning marker of a schema extension to this element.

[any]

0 or more

Schema extension

end

0 or 1

The ending marker of all the schema extensions to this element.

extension

0 or 1

Application-specific custom extension.

Parent Elements

Element

Description

state

A presence state category instance value.

Text Value

None

Remarks

Multiple occurrences of the custom element can be specified to support multiple locale-specific versions of the same custom activity string.

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 "Away at an off-site".

<state xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
       xmlns:xsd="http://www.w3.org/2001/XMLSchema"
       xsi:type="userState" 
       xmlns="https://schemas.microsoft.com/2006/09/sip/state">
   <availability>15500</availability>
   <activity>
      <custom LCID="1033">Away at an off-site</custom>
   </activity>
</state>

This user state category instance shows that the user’s presence status is available (3500).

Element Information

Namespace

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

Schema Name

state

Validation File

state.xsd, statetypes.xsd

Can be Empty

True

See Also

Other Resources

Presence State and state Category Instances