Created by: DAVID CHUMBLEY on 05-12-2008 02:37:07 PM I have 5 wav files that need to play randomly to callers in queue. I'm trying to determine what the easiest way to accomplish this within my CVP app. In IPIVR, there was a Random Prompt generator. With CVP I think I need to build a java class that will randomly determine the order of the wave files to play. Is that correct? I'm looking for ideas on the best way to accomplish this. Thanks
Subject: Re: Selecting a random wav file to play in CVP app Replied by: Janine Graves on 05-12-2008 02:53:36 PM When calls are in a queue, it's usually ICM that instructs the voice gateway which audio to play (using the Play Media microapp ). You don't usually send calls into the CVP Studio app to just hear an audio when calls are in queue. So I'd say that you should find a way to do this within the ICM script.
If you did decide to send them into CVP Studio app for this, then yes, you'd have to write some Java code to do the random number generation and then use the result to select an audio file.
Subject: Re: Selecting a random wav file to play in CVP app Replied by: GEOFFREY THOMPSON on 05-12-2008 08:51:57 PM Janine is correct. I do this a lot with microapps, but have not found a way to start with a random selection. This is fairly straightforward.
I have 8 "marketing messages" that I play in sequence with a special type of play media microapp, interspersed with an "all agents are busy" play media microapp of the normal form.
You just set up a counter, convert it to text, append it to a string like "qmessage_" and append ".wav".
Now set a peripheral variable (say PV8) to this "qmessage_1.wav" and use the special Play Media microapp with the name "PM,-8" which you can look up in the Guide: it gets the name of the wave file from peripheral variable 8.
This is a pretty handy microapp form - you can think of other uses.
Now you just need a loop, a check on whether you've hit the max, and a reset. This can all be done with ICM "sets" and "ifs" though it is a little tricky and I bet you don't get it right first try. if you do, I owe you a sixpack. ;-)
If you can figure out how to make ICM generate a random integer between 1 and 8, I'm all ears.
Hello Friends, So, I am trying to use soapclient with PHP to query the status of a phone. I am aware that risport70 can do that, however, it does go pull all the records every time I query. Also, I am not seeing a method like <DeviceName...
Hello, I trying to get an application to update one script parameter of another application on the same UCCX.But modifing that one parameter puts all other parameters of that script back to their default value.So I've got a Boolean set to "true"...
Hey Guys, I am looking to build a macro that would send an xConfiguration network Network  IPStack: Dual command at 00:01 on weekdays, our DX80 keeps switching to IPv4 as we are using IPv4 in our CUCM any ideas?My script below:const xapi = re...
I've created an eventchannel and XSP server responds with a channelId. But when I try to send a heartheartbeat I get a 404 Not Found in return. I've tried testing different users, testing with admin user (unauthorized), changing ChannelSetId an...
Hello,Does anyone have an idea if there is a way to use 2 Jabber sdk sessions at the same time on the same workstation. My usecase: we develop a Chrome softphone based on jabber sdk on many specific Web applications, with the Web communicator installed on...