4.3.3 Creation of workingHours Category
In this example, calendarData category instances are published into containers 1, 100, 200, 300, 400 and 32000.
-
SERVICE sip:bob@contoso.com SIP/2.0 Via: SIP/2.0/TLS 172.24.32.214:52681 Max-Forwards: 70 From: <sip:bob@contoso.com>;tag=9e49e11dfc;epid=3b09add8bc To: <sip:bob@contoso.com> Call-ID: 0f34c7038250411e98faf053a039b89b CSeq: 1 SERVICE Contact: <sip:bob@contoso.com;opaque=user:epid:Q_zZt9cZEVOeAMbFsdgb-wAA;gruu> User-Agent: UCCAPI/4.0.7254.0 OC/4.0.7254.0 (Microsoft Communicator 2010 (Beta)) Proxy-Authorization: TLS-DSK qop="auth", realm="SIP Communications Service", opaque="6B4B0A23", targetname="TK5UCDFPL01F02.exchange.corp.microsoft.com", crand="7ecb3404", cnum="10", response="397f685dd70c1b412a8045ef29d3e82c255182c7" Content-Type: application/msrtc-category-publish+xml Content-Length: ... <publish xmlns="http://schemas.microsoft.com/2006/09/sip/rich-presence"> <publications uri="sip:bob@contoso.com"> <publication categoryName="calendarData" instance="1982801780" container="200" version="0" expireType="endpoint"> <calendarData mailboxID="bob@contoso.com" xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData"> <freeBusy startTime="2010-02-14T08:00:00Z" granularity="PT15M" encodingVersion="1"> </freeBusy> </calendarData> </publication> <publication categoryName="calendarData" instance="1982801780" container="1" version="0" expireType="endpoint"> <calendarData mailboxID="bob@contoso.com" xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData"> </calendarData> </publication> <publication categoryName="calendarData" instance="0" container="400" version="1" expireType="static"> <calendarData xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData" mailboxID="bob@contoso.com"> <WorkingHours xmlns="http://schemas.microsoft.com/exchange/services/2006/types"> <TimeZone> <Bias>480</Bias> <StandardTime> <Bias>0</Bias> <Time>02:00:00</Time> <DayOrder>1</DayOrder> <Month>11</Month> <DayOfWeek>Sunday</DayOfWeek> </StandardTime> <DaylightTime> <Bias>-60</Bias> <Time>02:00:00</Time> <DayOrder>2</DayOrder> <Month>3</Month> <DayOfWeek>Sunday</DayOfWeek> </DaylightTime> </TimeZone> <WorkingPeriodArray> <WorkingPeriod> <DayOfWeek>Monday Tuesday Wednesday Thursday Friday</DayOfWeek> <StartTimeInMinutes>540</StartTimeInMinutes> <EndTimeInMinutes>1020</EndTimeInMinutes> </WorkingPeriod> </WorkingPeriodArray> </WorkingHours> </calendarData> </publication> <publication categoryName="calendarData" instance="1982801780" container="300" version="0" expireType="endpoint"> <calendarData mailboxID="bob@contoso.com" xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData"> <freeBusy startTime="2010-02-14T08:00:00Z" granularity="PT15M" encodingVersion="1"> </freeBusy> </calendarData> </publication> <publication categoryName="calendarData" instance="0" container="300" version="1" expireType="static"> <calendarData mailboxID="bob@contoso.com" xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData"> <WorkingHours xmlns:auto-ns1="http://schemas.microsoft.com/2006/09/sip/calendarData" xmlns="http://schemas.microsoft.com/exchange/services/2006/types"> <TimeZone> <Bias>480</Bias> <StandardTime> <Bias>0</Bias> <Time>02:00:00</Time> <DayOrder>1</DayOrder> <Month>11</Month> <DayOfWeek>Sunday</DayOfWeek> </StandardTime> <DaylightTime> <Bias>-60</Bias> <Time>02:00:00</Time> <DayOrder>2</DayOrder> <Month>3</Month> <DayOfWeek>Sunday</DayOfWeek> </DaylightTime> </TimeZone> <WorkingPeriodArray> <WorkingPeriod> <DayOfWeek>Monday Tuesday Wednesday Thursday Friday</DayOfWeek> <StartTimeInMinutes>540</StartTimeInMinutes> <EndTimeInMinutes>1020</EndTimeInMinutes> </WorkingPeriod> </WorkingPeriodArray> </WorkingHours> </calendarData> </publication> <publication categoryName="calendarData" instance="1982801780" container="400" version="0" expireType="endpoint"> <calendarData xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData" mailboxID="bob@contoso.com"> <freeBusy startTime="2010-02-14T08:00:00Z" granularity="PT15M" encodingVersion="1"> </freeBusy> </calendarData> </publication> <publication categoryName="calendarData" instance="1982801780" container="100" version="0" expireType="endpoint"> <calendarData xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData" /> </publication> <publication categoryName="calendarData" instance="0" container="32000" version="1" expireType="static"> <calendarData xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData" /> </publication> <publication categoryName="calendarData" instance="0" container="100" version="1" expireType="static"> <calendarData xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData" /> </publication> <publication categoryName="calendarData" instance="1982801780" container="32000" version="0" expireType="endpoint"> <calendarData xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData" /> </publication> <publication categoryName="calendarData" instance="0" container="200" version="1" expireType="static"> <calendarData mailboxID="bob@contoso.com" xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData"> <WorkingHours xmlns:auto-ns1="http://schemas.microsoft.com/2006/09/sip/calendarData" xmlns="http://schemas.microsoft.com/exchange/services/2006/types"> <TimeZone> <Bias>480</Bias> <StandardTime> <Bias>0</Bias> <Time>02:00:00</Time> <DayOrder>1</DayOrder> <Month>11</Month> <DayOfWeek>Sunday</DayOfWeek> </StandardTime> <DaylightTime> <Bias>-60</Bias> <Time>02:00:00</Time> <DayOrder>2</DayOrder> <Month>3</Month> <DayOfWeek>Sunday</DayOfWeek> </DaylightTime> </TimeZone> <WorkingPeriodArray> <WorkingPeriod> <DayOfWeek>Monday Tuesday Wednesday Thursday Friday</DayOfWeek> <StartTimeInMinutes>540</StartTimeInMinutes> <EndTimeInMinutes>1020</EndTimeInMinutes> </WorkingPeriod> </WorkingPeriodArray> </WorkingHours> </calendarData> </publication> <publication categoryName="calendarData" instance="0" container="1" version="1" expireType="static"> <calendarData mailboxID="bob@contoso.com" xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData"> <WorkingHours xmlns:auto-ns1="http://schemas.microsoft.com/2006/09/sip/calendarData" xmlns="http://schemas.microsoft.com/exchange/services/2006/types"> <TimeZone> <Bias>480</Bias> <StandardTime> <Bias>0</Bias> <Time>02:00:00</Time> <DayOrder>1</DayOrder> <Month>11</Month> <DayOfWeek>Sunday</DayOfWeek> </StandardTime> <DaylightTime> <Bias>-60</Bias> <Time>02:00:00</Time> <DayOrder>2</DayOrder> <Month>3</Month> <DayOfWeek>Sunday</DayOfWeek> </DaylightTime> </TimeZone> <WorkingPeriodArray> <WorkingPeriod> <DayOfWeek>Monday Tuesday Wednesday Thursday Friday</DayOfWeek> <StartTimeInMinutes>540</StartTimeInMinutes> <EndTimeInMinutes>1020</EndTimeInMinutes> </WorkingPeriod> </WorkingPeriodArray> </WorkingHours> </calendarData> </publication> </publications> </publish>
In the next example, the server sends a 200 OK response that contains workingHours and calendarData category instances. The computing function in the server creates a workingHours category instance from the calendarData category (instance zero) in container 1.
-
SIP/2.0 200 OK Authentication-Info: TLS-DSK qop="auth", opaque="6B4B0A23", srand="5A631FE0", snum="10", rspauth="00090be99d78b9ec33004adce8e6e8d96d22ff07", targetname="TK5UCDFPL01F02.exchange.corp.microsoft.com", realm="SIP Communications Service", version=4 Content-Length: 22814 From: "Bob"<sip:bob@contoso.com>;tag=9e49e11dfc;epid=3b09add8bc To: <sip:bob@contoso.com>;tag=97C972C4F65C13BB1CEE363598650D9A Call-ID: 0f34c7038250411e98faf053a039b89b CSeq: 1 SERVICE Via: SIP/2.0/TLS 172.24.32.214:52681;received=157.54.78.92;ms-received-port=52681;ms-received-cid=140E5C00 Content-Type: application/vnd-microsoft-roaming-self+xml <roamingData xmlns="http://schemas.microsoft.com/2006/09/sip/roaming-self" xmlns:cat="http://schemas.microsoft.com/2006/09/sip/categories" xmlns:con="http://schemas.microsoft.com/2006/09/sip/containers" xmlns:sub="http://schemas.microsoft.com/2006/09/sip/presence-subscribers" xmlns:del="http://schemas.microsoft.com/2007/09/sip/delegates"> <categories xmlns="http://schemas.microsoft.com/2006/09/sip/categories" uri="sip:bob@contoso.com"> <category name="calendarData" instance="1982801780" publishTime="2010-02-15T12:31:02.813" container="1" version="1" expireType="endpoint" endpointId="B7D9FC43-19D7-5311-9E00-C6C5B1D81BFB"> <calendarData xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData" mailboxID="bob@contoso.com"> </calendarData> </category> <category name="calendarData" instance="0" publishTime="2010-02-15T12:31:02.813" container="1" version="2" expireType="static"> <calendarData xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData" mailboxID="bob@contoso.com"> <WorkingHours xmlns:auto-ns1="http://schemas.microsoft.com/2006/09/sip/calendarData" xmlns="http://schemas.microsoft.com/exchange/services/2006/types"> <TimeZone> <Bias>480</Bias> <StandardTime> <Bias>0</Bias> <Time>02:00:00</Time> <DayOrder>1</DayOrder> <Month>11</Month> <DayOfWeek>Sunday</DayOfWeek> </StandardTime> <DaylightTime> <Bias>-60</Bias> <Time>02:00:00</Time> <DayOrder>2</DayOrder> <Month>3</Month> <DayOfWeek>Sunday</DayOfWeek> </DaylightTime> </TimeZone> <WorkingPeriodArray> <WorkingPeriod> <DayOfWeek>Monday Tuesday Wednesday Thursday Friday</DayOfWeek> <StartTimeInMinutes>540</StartTimeInMinutes> <EndTimeInMinutes>1020</EndTimeInMinutes> </WorkingPeriod> </WorkingPeriodArray> </WorkingHours> </calendarData> </category> <category name="workingHours" instance="0" publishTime="2010-02-15T12:31:02.813" container="1" version="2" expireType="static"> <calendarData mailboxID="bob@contoso.com" xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData"> <WorkingHours xmlns:auto-ns1="http://schemas.microsoft.com/2006/09/sip/calendarData" xmlns="http://schemas.microsoft.com/exchange/services/2006/types"> <TimeZone> <Bias>480</Bias> <StandardTime> <Bias>0</Bias> <Time>02:00:00</Time> <DayOrder>1</DayOrder> <Month>11</Month> <DayOfWeek>Sunday</DayOfWeek> </StandardTime> <DaylightTime> <Bias>-60</Bias> <Time>02:00:00</Time> <DayOrder>2</DayOrder> <Month>3</Month> <DayOfWeek>Sunday</DayOfWeek> </DaylightTime> </TimeZone> <WorkingPeriodArray> <WorkingPeriod> <DayOfWeek>Monday Tuesday Wednesday Thursday Friday</DayOfWeek> <StartTimeInMinutes>540</StartTimeInMinutes> <EndTimeInMinutes>1020</EndTimeInMinutes> </WorkingPeriod> </WorkingPeriodArray> </WorkingHours> </calendarData> </category> <category name="calendarData" instance="1982801780" publishTime="2010-02-15T12:31:02.813" container="100" version="1" expireType="endpoint" endpointId="B7D9FC43-19D7-5311-9E00-C6C5B1D81BFB"> <calendarData xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData"> </calendarData> </category> <category name="calendarData" instance="0" publishTime="2010-02-15T12:31:02.813" container="100" version="2" expireType="static"> <calendarData xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData"> </calendarData> </category> <category name="calendarData" instance="1982801780" publishTime="2010-02-15T12:31:02.813" container="200" version="1" expireType="endpoint" endpointId="B7D9FC43-19D7-5311-9E00-C6C5B1D81BFB"> <calendarData xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData" mailboxID="bob@contoso.com"> <freeBusy startTime="2010-02-14T08:00:00Z" granularity="PT15M" encodingVersion="1"> </freeBusy> </calendarData> </category> <category name="calendarData" instance="0" publishTime="2010-02-15T12:31:02.813" container="200" version="2" expireType="static"> <calendarData xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData" mailboxID="bob@contoso.com"> <WorkingHours xmlns:auto-ns1="http://schemas.microsoft.com/2006/09/sip/calendarData" xmlns="http://schemas.microsoft.com/exchange/services/2006/types"> <TimeZone> <Bias>480</Bias> <StandardTime> <Bias>0</Bias> <Time>02:00:00</Time> <DayOrder>1</DayOrder> <Month>11</Month> <DayOfWeek>Sunday</DayOfWeek> </StandardTime> <DaylightTime> <Bias>-60</Bias> <Time>02:00:00</Time> <DayOrder>2</DayOrder> <Month>3</Month> <DayOfWeek>Sunday</DayOfWeek> </DaylightTime> </TimeZone> <WorkingPeriodArray> <WorkingPeriod> <DayOfWeek>Monday Tuesday Wednesday Thursday Friday</DayOfWeek> <StartTimeInMinutes>540</StartTimeInMinutes> <EndTimeInMinutes>1020</EndTimeInMinutes> </WorkingPeriod> </WorkingPeriodArray> </WorkingHours> </calendarData> </category> <category name="calendarData" instance="1982801780" publishTime="2010-02-15T12:31:02.813" container="300" version="1" expireType="endpoint" endpointId="B7D9FC43-19D7-5311-9E00-C6C5B1D81BFB"> <calendarData xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData" mailboxID="bob@contoso.com"> <freeBusy startTime="2010-02-14T08:00:00Z" granularity="PT15M" encodingVersion="1"> </freeBusy> </calendarData> </category> <category name="calendarData" instance="0" publishTime="2010-02-15T12:31:02.813" container="300" version="2" expireType="static"> <calendarData xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData" mailboxID="bob@contoso.com"> <WorkingHours xmlns:auto-ns1="http://schemas.microsoft.com/2006/09/sip/calendarData" xmlns="http://schemas.microsoft.com/exchange/services/2006/types"> <TimeZone> <Bias>480</Bias> <StandardTime> <Bias>0</Bias> <Time>02:00:00</Time> <DayOrder>1</DayOrder> <Month>11</Month> <DayOfWeek>Sunday</DayOfWeek> </StandardTime> <DaylightTime> <Bias>-60</Bias> <Time>02:00:00</Time> <DayOrder>2</DayOrder> <Month>3</Month> <DayOfWeek>Sunday</DayOfWeek> </DaylightTime> </TimeZone> <WorkingPeriodArray> <WorkingPeriod> <DayOfWeek>Monday Tuesday Wednesday Thursday Friday</DayOfWeek> <StartTimeInMinutes>540</StartTimeInMinutes> <EndTimeInMinutes>1020</EndTimeInMinutes> </WorkingPeriod> </WorkingPeriodArray> </WorkingHours> </calendarData> </category> <category name="calendarData" instance="1982801780" publishTime="2010-02-15T12:31:02.813" container="400" version="1" expireType="endpoint" endpointId="B7D9FC43-19D7-5311-9E00-C6C5B1D81BFB"> <calendarData xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData" mailboxID="bob@contoso.com"> <freeBusy startTime="2010-02-14T08:00:00Z" granularity="PT15M" encodingVersion="1"> </freeBusy> </calendarData> </category> <category name="calendarData" instance="0" publishTime="2010-02-15T12:31:02.813" container="400" version="2" expireType="static"> <calendarData xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData" mailboxID="bob@contoso.com"> <WorkingHours xmlns="http://schemas.microsoft.com/exchange/services/2006/types"> <TimeZone> <Bias>480</Bias> <StandardTime> <Bias>0</Bias> <Time>02:00:00</Time> <DayOrder>1</DayOrder> <Month>11</Month> <DayOfWeek>Sunday</DayOfWeek> </StandardTime> <DaylightTime> <Bias>-60</Bias> <Time>02:00:00</Time> <DayOrder>2</DayOrder> <Month>3</Month> <DayOfWeek>Sunday</DayOfWeek> </DaylightTime> </TimeZone> <WorkingPeriodArray> <WorkingPeriod> <DayOfWeek>Monday Tuesday Wednesday Thursday Friday</DayOfWeek> <StartTimeInMinutes>540</StartTimeInMinutes> <EndTimeInMinutes>1020</EndTimeInMinutes> </WorkingPeriod> </WorkingPeriodArray> </WorkingHours> </calendarData> </category> <category name="calendarData" instance="1982801780" publishTime="2010-02-15T12:31:02.813" container="32000" version="1" expireType="endpoint" endpointId="B7D9FC43-19D7-5311-9E00-C6C5B1D81BFB"> <calendarData xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData"> </calendarData> </category> <category name="calendarData" instance="0" publishTime="2010-02-15T12:31:02.813" container="32000" version="2" expireType="static"> <calendarData xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData"> </calendarData> </category> </categories> </roamingData>