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.
Thanks in Advance,
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
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,
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.