cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1429
Views
6
Helpful
3
Replies

Playing Voice Mail in the Client Browser

annamalaia
Level 1
Level 1

Hi,

I have derived the Voice mail messages from CUMI server, using my server application (jsp). The derived voice mail is iterated in XML and assigned to a HTML5 audio player in the Client page. The voice mail message URL is assigned as Source to the audio player. Now, when I

tries to play the Voice mail, it  asks, for the CISCO VTG Realm authentication to play the Voice mail. After proceeding, the voice mail is able to play. Shall anybody, help me here to resolve this issue, and play Voicemail messages from Client Side browser itself.

Cisco VTG Realm.jpg

Thanks in Advance,

Annamalai

1 Accepted Solution

Accepted Solutions

The VMREST API should be all you need - use it to retrieve the storage URL for the VM audio, then just access the URL with your app and the HTTP response should contain the audio file via MIME.

View solution in original post

3 Replies 3

dstaudt
Cisco Employee
Cisco Employee

Accessing VMREST to retrieve the audio file will be access controlled.  You would not want these messages to be played without credential check

Three main possibilities I can think of:

- The VMREST API is designed/intended for use on the client-side/in-the-browser.  If you move the VMREST interaction to the client, (note the client would need to provide their credentials at some point) then you might avoid a double-login situation

- VMREST supports SSO and token authentication - if your server side application is logging in via the user's credentials, it may be able to use SSO, return the SSO token to the client, and then have the client use the SSO token to access the message URL

- Download the voice message file temporarily to your server, and host the playback URL from there

Hi dstaudt,

       Thanks for the quick response and suggestion. Rather than, the first 2 possibilities, i would like to go for the third one, downloading voice messages to my own application server and playing it from there. Shall you help me here to download the Voice mail messages from CUMI server? Is only Rest API is enough or i have to look around some other option on the Server side?

Thanks in Advance,

Annamalai.

The VMREST API should be all you need - use it to retrieve the storage URL for the VM audio, then just access the URL with your app and the HTTP response should contain the audio file via MIME.