Cisco Unity Connection Provisioning Interface (CUPI) API -- Wave Formats
From DocWiki
(Difference between revisions)
m (1 revision) |
Latest revision as of 00:05, 14 December 2010
Links to Other API pages: Cisco_Unity_Connection_APIs
| CUPI Guide Contents |
| API Overview Index of All CUPI Documentation |
Contents |
About Wave Formats
This page contains information on how to use the API to list wave formats. Cisco Unity Connection supports several different wave formats that recorded messages can be stored in. This URI is accessible to both users and administrators.
Listing and Viewing
The following is an example of a GET that lists all wave formats:
GET http://<connection-server>/vmrest/waveformats
To retrieve a specific wave format by its object ID:
GET http://<connection-server>/vmrest/waveformats/<objectid>
The following is an example response from the above GET request:
200 OK <?xml version="1.0" encoding="UTF-8"?> <WaveFormat> <URI>/vmrest/waveformats/cb85b520-e2de-4878-96e2-3331607f4671</URI> <ObjectId>cb85b520-e2de-4878-96e2-3331607f4671</ObjectId> <AvgBytesPerSec>1000</AvgBytesPerSec> <BitsPerSample>0</BitsPerSample> <BlockAlign>10</BlockAlign> <Channels>1</Channels> <FormatName>G.729a</FormatName> <FormatTag>307</FormatTag> <SamplesPerSec>8000</SamplesPerSec> <JavaEncoding>G.729a</JavaEncoding> <CodecId>3</CodecId> </WaveFormat>