I have UCCX 8.5.1 installated on UCS, and configured. Just wondering if anyone knows how to use UCCX script to record prompt and save it to default language location please?
We do have UCCX script which can do it in UCCX 7.5 (Windows based), now we need to know how can we do it with UCCX 8.5 (Linux based).
HTTP Error 500 means server error, there must be something really nasty happening behind the scenes.
Did you try to call the URL from a browser? Does it return anything?
This is how I do it:
At IVR 1, I have a prompt management script. The relevant part:
So the usual stuff, I record the prompt and upload it to the local repository of IVR 1.
Next, I trigger a script on IVR 2, actually telling it to download the prompt from IVR1.
The detail of the Create URL Document step above:
So I am actually sending two parameters, "calling" (with the value of "broaaf") and "ivrDirName" with the value of the variable ivrDirName, set earlier.
The URL is pointing to an application at IVR 2, trigger ahpsync12 (similarly, on IVR A, I have a trigger called ahpsync12).
First, it accepts the contact, then harvests the values of the parameters. Next, there is a security check (sort of) comparing the value of the value of HTTP variable "calling" (assigned to local variable woIsItCalling, and if it is "brooaf" then the script continues: creates an URL Document, with an URL of IVR 1, with the directory and file name. The Cache Document step downloads it, and then finally, it is uploaded to the local repository.
In the above example, the file name is static "adhoc.wav", only the directory name changes, but with a little effort this can be changed, too, to have dynamic filenames.
as long as the srcipt runs, the prompt is in the memory, so you don't have to save it as a file.
... welcome to the beautiful world of UCCX scripting. Hope you already found the three scripting guides ;-)
First, you need at least one variable, of type Document.
Use the Recording step - its result would be the variable created above.
You can decide where to save your new document, containing your recording.
1. UCCX Prompt repository: easiest, but you need a user who has the rights to upload the document to the repository;
2. database - requires some Java programming,
3. Windows share - requires some Java programming.
For 1: create another variable, type User. With the help of Get User, Authenticate and Upload Prompt steps you can upload the recording to the repository. Like this:
(Yes, I know it's not considered safe to have passwords in scripts.)
As for 2 and 3, I committed two documents some while ago, you can get inspiration from them.