Showing 6 results.
Items per Page 50
of 1

CVP Forum

« Back to CVP - All Versions

Unable to play media file from path in App media library ECC variable

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi all ,
I want to play media file Welcome.wav from a particular folder named test which I have created in the app folder of en-us in my media server .In my ICM routing script i am giving the value of ECC variable user.microapp.app_media_lib = "app/test" and user.microapp.locale = "en-us" and trying to play a media file from the folder test created in app of en-us . But the CVP logs are showing me the error 
Media Fetch Error for URL=http://mediaserver/en-us/app/Welcome.wav .
Why is it not taking the path that I have specified in my app media library variable ? i.e. why it is not considering my test folder in its path ? 

If I play my media file Welcome.wav from outside the test folder i.e from the app folder(http://mediaserver/en-us/app/Welcome.wav) it plays fine . 
Please let me know if I am missing something Or is there some place where default path is defined in IIS so it is always taking that path and not the new path that I am giving in my user.microapp.app_media_lib variable.
Thanks,
Dipika Gupta

Dipika,
Check that the ECC variable length for user.microapp.app_media_lib is long enough to store your folder name "app/test" (i.e. > than a length of 8).
Check that the ECC variable is 100% correct (no typos), e.g. user.microapp.app_media_lib
I assume you are using the play Media Micro App?
PM,-10,A
Where -10 = where you set the name of the audio file in Peripheral Variable 10, and then run the above micro app?
Gerry

Hi Gerard ,
The lenghth is also fine 20 , no typos .
I am directly giving the name of wav file using PM,Welcome.wav
Still not working

Does the gateway have an entry in the IP host table for your keyword “mediaserver”? This must specify the IP address of the Media Store. Once you add the entry, run “ping mediaserver” to check. You can use any keyword you like in ICM – there is nothing special about the word “mediaserver”.

Run debug voice application vxml inout on your gateway to see the errors. Remember, the gateway executes the VXML and “mediaserver” means nothing to it if you don’t have a mapping.

You can call “audio-prompt load http://mediaserver/en-us/app/Welcome.wav” to ensure the mapping and path is correct.

Regards,
Geoff

Hi Geoff,
I did audio-prompt load for the http://mediaserver/en-us/app/Test/abc.wav and works fine in gateway.
The issue is that user.microapp.app_media_lib  is not showing in CVP logs,  so instead of http://mediaserver/en-us/app/Test/abc.wav 
CVP creates a media fetch URL as http://mediaserver/en-us/app/abc.wav and ends up in media fetch error,
Any thoughts why this is happening?
Thanks,
Gopal.

The ECC variable app_media_lib needs to be equal to “app/Test”.

Regards,
Geoff

The ECC variable app_media_lib needs to be equal to “app/Test”.

Regards,
Geoff

Gopal,
Are you using IIS as the media server? Or are you using Apache Tomcat? Do you have more than one media server?
Until you get this working why don't you change the contents of your user.microapp.media_server variable to a hard-coded IP address using a Set Variable node instead of using "mediaserver".
Why don't you try creating a new folder on your media server directly under en-us, name it 'abc' and copy your welcome.wav into the en-us/abc directory.
In the routing script, set the app_media_lib variable to contain "abc"
Then select your RunExtScript node with PM,welcome.wav,A  (remember that if you are using Tomcat or Apache as the media server, then it's case sensitive).
If this doesn't work, then what do you see in the CallServer logs?
 

IF this does work, then you can try moving the "abc' folder under the 'app' folder on the media server and try reassigning the app_media_lib variable to "app/abc" and see if that works.
 

Hi Janine,
The problem is not with mediaserver.  The problem is that user.microapp.app_media_lib parameter is not showing in the CVP Logs. I could see all other microapps variable. except user.microapp.app_media_lib .
I have my script with user.microapp.app_media_lib = "app/test". I have varaible length set to 20. But The variable is not passed to CVP.  so cvp generate the media fetch like this http://172.XX.XX.XXX/en-us/app/welcome.wav
Media fetch error occurs as I don't have the wavefile under app folder.  IF I move the wavefile to app folder , I could hear the wavefile.
 
Thanks,
Gopa.

Yes geoff, I have them set.  I could NOT see this parameter in the CVP logs.  I mean I cannot see user.microapp.app_media_lib = "app/Test"  in the CVP log file.   Thanks, Gopal.

The question is whether your app_media_lib variable is being read, or truncated, or something else. Why not start by creating a new folder directly under en-us, name it 'abc' and copy your welcome.wav into the en-us/abc directory. In the routing script, set the app_media_lib variable to contain "abc" If you still see 'app' in the URL - then you'll know that there's a disconnect between your assigning the app_media_lib and the value being sent to the IVR Service on the call server. Many other people use your method and it works. We can't help you narrow down the problem remotely until you start trying some things.

The way I do it is set app_media_lib to “..” and then assign peripheral variable7 (in my case) to “abc\1.wav”. It will play the wav 1.wav file from
en-us\app\abc. Works 100%
Hemal

From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Wednesday, December 19, 2012 9:55 PM
To: cdicuser@developer.cisco.com
Subject: New Message from Janine Graves in Customer Voice Portal (CVP) - CVP - All Versions: Re: New Message from GOPALASRINIVASAN KUPPUSWAMY in Customer Voice Portal (

Janine Graves has created a new message in the forum "CVP - All Versions": -------------------------------------------------------------- The question is whether your app_media_lib variable is being read, or truncated, or something else. Why not start by creating a new folder directly under en-us, name it 'abc' and copy your welcome.wav into the en-us/abc directory. In the routing script, set the app_media_lib variable to contain "abc" If you still see 'app' in the URL - then you'll know that there's a disconnect between your assigning the app_media_lib and the value being sent to the IVR Service on the call server. Many other people use your method and it works. We can't help you narrow down the problem remotely until you start trying some things.
--
To respond to this post, please click the following link: http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/9596049 or simply reply to this email.

>>>>The way I do it is set app_media_lib to “..” and then assign peripheral variable7 (in my case) to “abc\1.wav”. It will play the wav 1.wav file from en-us\app\abc. Works 100%

That’s certainly not the way it was intended to be used, but of course it works. Far better to set the app_media_lib to “app/abc” (forwarded slashes please in URLs) then assign the PV to the wav file 1.wav and use the microapp PM,-7.

It seems to me that the ECC variable is not being passed to the CVP server. Did the original poster spell it correctly?

user.microapp.app_media_lib

Regards,
Geoff

Hi All,
After restrating the VRU PG. I could see the user.microapp.app_media_lib variable and fetching the wavefile also works.
Thanks,
Gopal.

>>>>After restrating the VRU PG. I could see the user.microapp.app_media_lib variable and fetching the wavefile also works.

Always good to restart things.

I’m glad it’s working because, as things go, this is a trivial part of the configuration – you will have other fish to fry.

Regards,
Geoff