


 



<?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_--_Greetings&amp;feed=atom&amp;action=history</id>
		<title>Cisco Unity Connection Provisioning Interface (CUPI) API -- Greetings - 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_--_Greetings&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_--_Greetings&amp;action=history"/>
		<updated>2013-05-24T16:45:47Z</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_--_Greetings&amp;diff=36329&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_--_Greetings&amp;diff=36329&amp;oldid=prev"/>
				<updated>2010-12-14T00:05:08Z</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_--_Greetings&amp;diff=36328&amp;oldid=prev</id>
		<title>Juliew at 22:41, 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_--_Greetings&amp;diff=36328&amp;oldid=prev"/>
				<updated>2010-12-13T22:41:56Z</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;
__TOC__&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== About Greetings ==&lt;br /&gt;
&lt;br /&gt;
Modifying greetings involves a fairly long hierarchy in the URI, as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/vmrest/handlers/callhandlers/&amp;lt;call handler object id&amp;gt;/greetings/&amp;lt;greeting type&amp;gt;/&lt;br /&gt;
greetingstreamfiles/&amp;lt;language id&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The greeting types are:&lt;br /&gt;
&lt;br /&gt;
*Standard&lt;br /&gt;
*Alternate&lt;br /&gt;
*Busy&lt;br /&gt;
*Closed&lt;br /&gt;
*Holiday&lt;br /&gt;
*Error&lt;br /&gt;
*Internal&lt;br /&gt;
&lt;br /&gt;
For Connection versions 7.x and 8.0.x the greetings are accessed by using the greeting stream file URI. Modifying the greeting requires a three step process as detailed below.&lt;br /&gt;
&lt;br /&gt;
For Connection versions 8.5 and later the greeting audio access has been simplified so that it can be modified in a single step. This new URI is a standard sub-resource of the greeting stream file resource URI. The old greeting stream file modification still works in the later versions, but use of the new URI is easier.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Listing and Viewing ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Greeting Audio GET for 8.5 and Later ===&lt;br /&gt;
&lt;br /&gt;
Use the standard greeting audio URI to get the file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GET http://&amp;lt;connection-server&amp;gt;/vmrest/handlers/callhandlers/&amp;lt;call handler object id&amp;gt;/greetings&lt;br /&gt;
/&amp;lt;greeting type&amp;gt;/greetingstreamfiles/&amp;lt;language id&amp;gt;/audio&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The response will return the audio/wav data for the greeting of the specified type and language.&lt;br /&gt;
&lt;br /&gt;
=== Voice Name GET for 7.x and 8.0.x ===&lt;br /&gt;
&lt;br /&gt;
First get the greeting stream file object for the greeting type and language, then use the voice files URI to get the greeting audio contents:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GET http://&amp;lt;connection-server&amp;gt;/vmrest/handlers/callhandlers/&amp;lt;call handler object id&amp;gt;/greetings&lt;br /&gt;
/&amp;lt;greeting type&amp;gt;/greetingstreamfiles/&amp;lt;language id&amp;gt;&lt;br /&gt;
GET http://&amp;lt;connection-server&amp;gt;/vmrest/voicefiles/&amp;lt;stream file&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The response will return the audio/wav data for the greeting.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Setting Greetings ==&lt;br /&gt;
&lt;br /&gt;
=== Setting a Greeting in 8.5 and Later ===&lt;br /&gt;
&lt;br /&gt;
PUT the audio data directly to the standard greeting stream file URI:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PUT http://&amp;lt;connection-server&amp;gt;/vmrest/handlers/callhandlers/&amp;lt;call handler object id&amp;gt;/greetings&lt;br /&gt;
/&amp;lt;greeting type&amp;gt;/greetingstreamfiles/&amp;lt;language id&amp;gt;/audio content is audio/wav data&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The response is a 204 indicating that the content has been accepted and copied into the temporary file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting a Greeting in 7.x and 8.0.x ===&lt;br /&gt;
&lt;br /&gt;
To create a greeting for a resource is a three step process.&lt;br /&gt;
&lt;br /&gt;
Step 1: A place-holder for the WAV file must be created with a POST. This is a temporary file place-holder that can be used for up to 30 minutes. If it is not used within 30 minutes (assigned to a resource), the file is assumed to be abandoned and gets automatically cleaned.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
POST /vmrest/voicefiles&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The response code is 201 and the content is the name of the newly created temporary file.&lt;br /&gt;
&lt;br /&gt;
Step 2: Use the temporary file name to PUT the new audio data. The HTTP content type is &amp;quot;audio/wav&amp;quot; and the payload content is the audio data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PUT /vmrest/voicefiles/&amp;lt;temporary file name&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The response is a 204 indicating that the content has been accepted and copied into the temporary file.&lt;br /&gt;
&lt;br /&gt;
Step 3: Set the greeting stream file of the target resource to the temporary file name.&lt;br /&gt;
&lt;br /&gt;
See the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PUT http://&amp;lt;connection-server&amp;gt;/vmrest/handlers/callhandlers/&amp;lt;call handler object id&amp;gt;/greetings&lt;br /&gt;
/&amp;lt;greeting type&amp;gt;/greetingstreamfiles/&amp;lt;language id&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Only the stream file field needs to be filled out for PUT. All the other greeting stream file fields are derived from the URI:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;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;GreetingStreamFile&amp;gt;&lt;br /&gt;
&amp;lt;StreamFile&amp;gt;temporary file name&amp;lt;/StreamFile&amp;gt;&lt;br /&gt;
&amp;lt;/GreetingStreamFile&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&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>