


 



<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://docwiki.cisco.com/w/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://docwiki.cisco.com/w/index.php?title=Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_Assigning_a_Schedule_to_a_Call_Handler&amp;feed=atom&amp;action=history</id>
		<title>Cisco Unity Connection Provisioning Interface (CUPI) API -- Assigning a Schedule to a Call Handler - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://docwiki.cisco.com/w/index.php?title=Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_Assigning_a_Schedule_to_a_Call_Handler&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_Assigning_a_Schedule_to_a_Call_Handler&amp;action=history"/>
		<updated>2013-06-19T10:35:49Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://docwiki.cisco.com/w/index.php?title=Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_Assigning_a_Schedule_to_a_Call_Handler&amp;diff=44834&amp;oldid=prev</id>
		<title>Anilve at 09:10, 28 February 2012</title>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_Assigning_a_Schedule_to_a_Call_Handler&amp;diff=44834&amp;oldid=prev"/>
				<updated>2012-02-28T09:10:00Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 09:10, 28 February 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Creating a Schedule ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Creating a Schedule ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Schedules are relatively complicated objects in Cisco Unity Connection. They are comprised of 4 different types of objects, and the top level object is called a ScheduleSet.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Schedules are relatively complicated objects in Cisco Unity Connection. They are comprised of 4 different types of objects, and the top level object is called a ScheduleSet. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;For a more detailed explanation of how the schedules work in Unity Connection, check [[Cisco Unity Connection Provisioning Interface (CUPI) API -- Schedules |Schedules Overview]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;When a schedule has been created, the administrator will need the ScheduleSet's ObjectId in order to associate it with a call handler.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;When a schedule has been created, the administrator will need the ScheduleSet's ObjectId in order to associate it with a call handler.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Anilve</name></author>	</entry>

	<entry>
		<id>http://docwiki.cisco.com/w/index.php?title=Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_Assigning_a_Schedule_to_a_Call_Handler&amp;diff=36325&amp;oldid=prev</id>
		<title>Gscorbin: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_Assigning_a_Schedule_to_a_Call_Handler&amp;diff=36325&amp;oldid=prev"/>
				<updated>2010-12-14T00:05:07Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 00:05, 14 December 2010&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Gscorbin</name></author>	</entry>

	<entry>
		<id>http://docwiki.cisco.com/w/index.php?title=Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_Assigning_a_Schedule_to_a_Call_Handler&amp;diff=36324&amp;oldid=prev</id>
		<title>Juliew at 22:39, 13 December 2010</title>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_Assigning_a_Schedule_to_a_Call_Handler&amp;diff=36324&amp;oldid=prev"/>
				<updated>2010-12-13T22:39:32Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Links to Other API pages:''' [[Cisco_Unity_Connection_APIs]]&lt;br /&gt;
{| align=&amp;quot;right&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|'''CUPI Guide Contents'''&lt;br /&gt;
|-&lt;br /&gt;
|[[Cisco Unity Connection Provisioning Interface (CUPI) API|API Overview ]]&amp;lt;br&amp;gt;[[Cisco Unity Connection Provisioning Interface (CUPI) API -- Index of All CUPI Documentation|Index of All CUPI Documentation]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
In order to assign a schedule to a call handler, such as the Opening Greeting Call Handler, an administrator should first create a ScheduleSet and its supporting objects, and then change the Call Handler to point to that new ScheduleSet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creating a Schedule ==&lt;br /&gt;
&lt;br /&gt;
Schedules are relatively complicated objects in Cisco Unity Connection. They are comprised of 4 different types of objects, and the top level object is called a ScheduleSet.&lt;br /&gt;
&lt;br /&gt;
When a schedule has been created, the administrator will need the ScheduleSet's ObjectId in order to associate it with a call handler.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Associating a ScheduleSet with a Call Handler ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Retrieving the List of Call Handlers ===&lt;br /&gt;
&lt;br /&gt;
In order to retrieve the list of call handlers, an administrator makes a GET request to the call handler resource:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GET /vmrest/handlers/callhandlers&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return a list of all call handlers on the system. A portion of that list is shown here:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
200&lt;br /&gt;
OK&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;Callhandlers total=&amp;quot;5&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;Callhandler&amp;gt;&lt;br /&gt;
    &amp;lt;URI&amp;gt;/vmrest/handlers/callhandlers/03991ce8-0eaa-40cc-86a9-c0c88d9066ad&amp;lt;/URI&amp;gt;&lt;br /&gt;
    &amp;lt;CreationTime&amp;gt;2010-05-25T18:38:51Z&amp;lt;/CreationTime&amp;gt;&lt;br /&gt;
    &amp;lt;Language&amp;gt;1033&amp;lt;/Language&amp;gt;&lt;br /&gt;
    &amp;lt;Undeletable&amp;gt;true&amp;lt;/Undeletable&amp;gt;&lt;br /&gt;
    &amp;lt;VoiceName&amp;gt;0164efab-5c35-42bd-8284-018746edc64b.wav&amp;lt;/VoiceName&amp;gt;&lt;br /&gt;
    &amp;lt;VoiceFileURI&amp;gt;/vmrest/voicefiles/0164efab-5c35-42bd-8284-018746edc64b.wav&amp;lt;/VoiceFileURI&amp;gt;&lt;br /&gt;
    &amp;lt;LocationObjectId&amp;gt;6919b242-ed60-4f3a-95fa-40967171485e&amp;lt;/LocationObjectId&amp;gt;&lt;br /&gt;
    &amp;lt;LocationURI&amp;gt;/vmrest/locations/connectionlocations/6919b242-ed60-4f3a-95fa-40967171485e&amp;lt;/LocationURI&amp;gt;&lt;br /&gt;
    &amp;lt;EditMsg&amp;gt;true&amp;lt;/EditMsg&amp;gt;&lt;br /&gt;
    &amp;lt;IsPrimary&amp;gt;false&amp;lt;/IsPrimary&amp;gt;&lt;br /&gt;
    &amp;lt;OneKeyDelay&amp;gt;1500&amp;lt;/OneKeyDelay&amp;gt;&lt;br /&gt;
    &amp;lt;ScheduleSetObjectId&amp;gt;a7e21c61-296d-46f1-9860-50966bbfbb8e&amp;lt;/ScheduleSetObjectId&amp;gt;&lt;br /&gt;
    &amp;lt;ScheduleSetURI&amp;gt;/vmrest/schedulesets/a7e21c61-296d-46f1-9860-50966bbfbb8e&amp;lt;/ScheduleSetURI&amp;gt;&lt;br /&gt;
    &amp;lt;SendUrgentMsg&amp;gt;0&amp;lt;/SendUrgentMsg&amp;gt;&lt;br /&gt;
    &amp;lt;MaxMsgLen&amp;gt;300&amp;lt;/MaxMsgLen&amp;gt;&lt;br /&gt;
    &amp;lt;IsTemplate&amp;gt;false&amp;lt;/IsTemplate&amp;gt;&lt;br /&gt;
    &amp;lt;ObjectId&amp;gt;03991ce8-0eaa-40cc-86a9-c0c88d9066ad&amp;lt;/ObjectId&amp;gt;&lt;br /&gt;
    &amp;lt;RecipientDistributionListObjectId&amp;gt;7082dace-606c-4f2c-8af1-764d149e4500&amp;lt;/RecipientDistributionListObjectId&amp;gt;&lt;br /&gt;
    &amp;lt;RecipientDistributionListURI&amp;gt;/vmrest/distributionlists/7082dace-606c-4f2c-8af1-764d149e4500&amp;lt;/RecipientDistributionListURI&amp;gt;&lt;br /&gt;
    &amp;lt;DisplayName&amp;gt;Opening Greeting&amp;lt;/DisplayName&amp;gt;&lt;br /&gt;
    &amp;lt;AfterMessageAction&amp;gt;2&amp;lt;/AfterMessageAction&amp;gt;&lt;br /&gt;
    &amp;lt;AfterMessageTargetConversation&amp;gt;PHGreeting&amp;lt;/AfterMessageTargetConversation&amp;gt;&lt;br /&gt;
    &amp;lt;AfterMessageTargetHandlerObjectId&amp;gt;3910fd6b-8d56-4b83-89a6-d5c825d69916&amp;lt;/AfterMessageTargetHandlerObjectId&amp;gt;&lt;br /&gt;
    &amp;lt;TimeZone&amp;gt;4&amp;lt;/TimeZone&amp;gt;&lt;br /&gt;
    &amp;lt;UseDefaultLanguage&amp;gt;true&amp;lt;/UseDefaultLanguage&amp;gt;&lt;br /&gt;
    &amp;lt;UseDefaultTimeZone&amp;gt;true&amp;lt;/UseDefaultTimeZone&amp;gt;&lt;br /&gt;
    &amp;lt;MediaSwitchObjectId&amp;gt;2d4be643-a206-4705-92a9-261d191f2df4&amp;lt;/MediaSwitchObjectId&amp;gt;&lt;br /&gt;
    &amp;lt;PhoneSystemURI&amp;gt;/vmrest/phonesystems/2d4be643-a206-4705-92a9-261d191f2df4&amp;lt;/PhoneSystemURI&amp;gt;&lt;br /&gt;
    &amp;lt;UseCallLanguage&amp;gt;true&amp;lt;/UseCallLanguage&amp;gt;&lt;br /&gt;
    &amp;lt;SendSecureMsg&amp;gt;false&amp;lt;/SendSecureMsg&amp;gt;&lt;br /&gt;
    &amp;lt;EnablePrependDigits&amp;gt;false&amp;lt;/EnablePrependDigits&amp;gt;&lt;br /&gt;
    &amp;lt;DispatchDelivery&amp;gt;false&amp;lt;/DispatchDelivery&amp;gt;&lt;br /&gt;
    &amp;lt;CallSearchSpaceObjectId&amp;gt;44228e57-f458-4d56-809a-8d33fbdecb56&amp;lt;/CallSearchSpaceObjectId&amp;gt;&lt;br /&gt;
    &amp;lt;CallSearchSpaceURI&amp;gt;/vmrest/searchspaces/44228e57-f458-4d56-809a-8d33fbdecb56&amp;lt;/CallSearchSpaceURI&amp;gt;&lt;br /&gt;
    &amp;lt;InheritSearchSpaceFromCall&amp;gt;true&amp;lt;/InheritSearchSpaceFromCall&amp;gt;&lt;br /&gt;
    &amp;lt;PartitionObjectId&amp;gt;5d61a103-87a8-41c6-ba0b-90e1c72eda7c&amp;lt;/PartitionObjectId&amp;gt;&lt;br /&gt;
    &amp;lt;PartitionURI&amp;gt;/vmrest/partitions/5d61a103-87a8-41c6-ba0b-90e1c72eda7c&amp;lt;/PartitionURI&amp;gt;&lt;br /&gt;
    &amp;lt;GreetingsURI&amp;gt;/vmrest/handlers/callhandlers/03991ce8-0eaa-40cc-86a9-c0c88d9066ad/greetings&amp;lt;/GreetingsURI&amp;gt;&lt;br /&gt;
    &amp;lt;TransferOptionsURI&amp;gt;/vmrest/handlers/callhandlers/03991ce8-0eaa-40cc-86a9-c0c88d9066ad/transferoptions&amp;lt;/TransferOptionsURI&amp;gt;&lt;br /&gt;
    &amp;lt;MenuEntriesURI&amp;gt;/vmrest/handlers/callhandlers/03991ce8-0eaa-40cc-86a9-c0c88d9066ad/menuentries&amp;lt;/MenuEntriesURI&amp;gt;&lt;br /&gt;
  &amp;lt;/Callhandler&amp;gt;&lt;br /&gt;
  &amp;lt;Callhandler&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
  &amp;lt;/Callhandler&amp;gt;&lt;br /&gt;
  ...&lt;br /&gt;
&amp;lt;/Callhandlers&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Selecting the Call Handler ===&lt;br /&gt;
&lt;br /&gt;
From the list of call handlers obtained by doing the previous step, the administrator should choose one, usually based on DisplayName. In program code, this can be done by loading the returned XML document into an XML parser, and then finding the node with the requested DisplayName.&lt;br /&gt;
&lt;br /&gt;
In this example, let's choose the Opening Greeting Call Handler, meaning the call handler with the DisplayName &amp;quot;Opening Greeting.&amp;quot; The URI field tells the administrator which URI to use in order to retrieve, modify, or delete the call handler. In this example, the URI is /vmrest/handlers/callhandlers/03991ce8-0eaa-40cc-86a9-c0c88d9066ad.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Modifying the Call Handler ===&lt;br /&gt;
&lt;br /&gt;
In order the change the schedule associated with a call handler, the administrator makes a PUT to the call handler resource, requesting a modification to the ScheduleSetObjectId field. Let's say that 9dd6c1d5-249e-4715-8953-396ce2f26314 is the ObjectId for the ScheduleSet that the administrator created earlier.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PUT /vmrest/handlers/callhandlers/03991ce8-0eaa-40cc-86a9-c0c88d9066ad&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Callhandler&amp;gt;&lt;br /&gt;
  &amp;lt;ScheduleSetObjectId&amp;gt;9dd6c1d5-249e-4715-8953-396ce2f26314&amp;lt;/ScheduleSetObjectId&amp;gt;&lt;br /&gt;
&amp;lt;/Callhandler&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
At this point, the call handler will now be active during the time periods described by the ScheduleSet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Finding Which Schedule Is Assigned to a Call Handler ===&lt;br /&gt;
&lt;br /&gt;
In order to find out which schedule is currently assigned to a call handler, an administrator makes a GET request to the call handler resource, as described earlier. After selecting a call handler from the list, the ScheduleSetURI field provides a link to the ScheduleSet that is associated with the call handler. The administrator can then make a GET request to that URI to retrieve the ScheduleSet:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GET /vmrest/schedulesets/9dd6c1d5-249e-4715-8953-396ce2f26314&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That will return the ScheduleSet. From that ScheduleSet object, the administrator can retrieve the ScheduleSetMembers, Schedules, and ScheduleDetails that comprise the entire Schedule.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Cisco Unity Connection Provisioning Interface (CUPI) API]]&lt;/div&gt;</summary>
		<author><name>Juliew</name></author>	</entry>

	</feed>