Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I use retreive a file to play using varibles

Status
Not open for further replies.

Ac1dBurn

Technical User
Aug 10, 2006
4
ZA
I am trying to create a flow that will do the following. Play a greeting message. Ask for a 4 digit code. Play the appropriate voice file. If the file does not exist then it should prompt you to enter a valid code.
The voice files are all in a folder called topics. The folder then contains sub folders TOP1001, TOP1002, ect. In these folders are the actual files ex: “1001.wav”. I want to type in 1001 on my touchtone keypad, capture that by a user variable $key and play c:\progra~1\avaya\voicem~1\wavs\Topics\top$\$.wav.
Can anyone help me please!!
 
One way to do it is with VBA code, but it requires a VM Pro VBScript license. VM Pro is not designed to be an IVR so the options are very limited.
 
How many 4 digit codes are you looking to use? If it isn't too many you can just have a menu option set up going to a generic action that plays the wav file associated with the code. You can just browse to find the path for the wav file in the Generic action.
 
Unfortunately there is 300+. I have opted for the menu myself , but it would not make sense.
 
I have tried using the VBA code. Where I get stuck is by playing the actual file. I do not know how to specify a file path with changing varibles
 
Try using a menu to capture the 4 keys presses then set an entry prompt in the next action to
c:\progra~1\avaya\voicem~1\wavs\Topics\top$KEY\$KEY.wav.

It usually works for me... (I usually use this kind of thing in a call flow to record prompts)

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top