Prompt uploading to script repository on the Fly/Real time

Unanswered Question
Nov 5th, 2008


My customer wants to upload the prompts real time himself and wants the script to upload it directly to the promt repository after that, instead of using the pre-recording prompts.

Is this possible?How?

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Jonathan Schulenberg Wed, 11/05/2008 - 04:57

You can write a separate script, application and trigger that allows the customer to call in, authenticate, make a selection to identify the desired prompt, and then record that prompt. The would save the recording to the script repository for them.

The key step to this is to user the User steps to authenticate the caller as a valid user. Saving prompt recordings into the prompt repository will fail if authentication has not succeeded.

mikram Wed, 11/05/2008 - 06:03


I saw script from Cisco repository how to upload prompt on the fly. Please check on forum.



ra_jeshkalra_2 Wed, 11/05/2008 - 06:29

Do you mean it is the one of the default scripts on the CRS server.

Can you please give the name of the script.


ra_jeshkalra_2 Wed, 11/05/2008 - 06:09

Hi Schulenberg,

Just saw an e.g. in the CRS5.0 scripting guide for this.

1)Is it a must that I use the "name to user" function to accept user id?

2)and then accept PIN using get digit.

Because this means the user must be created in the Global directory in CCM, with user id and PIN.

Is above the general procedure of achieveing uploading prompts.


I am getting a strange error: at the document upload script.

"some thing like "the document lenght created is less, the minimum lenght expected is 1".

Any idea what is the issue.

I ran the script in debug mode and the authentications seems to have happened successfully.


Jonathan Schulenberg Wed, 11/05/2008 - 19:33

1) Yes, the user must exist in UCM.

2) Check to ensure that you have the variable containing the recording set as a Document type. If it is, that sounds like it sees a null value in the variable. Also, providing the exact verbiage may help.

You could turn on debug tracing for the CRS Editor and review the log files to get a more exact answer.

ra_jeshkalra_2 Tue, 11/11/2008 - 00:36

Hi Schulenberg,

The error I get is - Exception:

"result of invalid length; expecting minimum length of: 1"

(see attached screenshot)

and this error comes exactly at the upload prompt step.

From the CRS logs I can't locate the error.Pertaining to this error message what is the text I should be searching in the logs.

Any idea, what is the issue.


ra_jeshkalra_2 Fri, 11/21/2008 - 14:13


I got this script working.Just wanted to check apart from saving the prompt to the directory, is it possile to parallely save it to the SQL database.If yes, how?


Jonathan Schulenberg Sun, 11/23/2008 - 07:35

You should not save scripts/prompts/documents directly to the disk. These folders are automatically populated for the CRS engine to execute from. If you put something there manually (instead of loading through the appadmin interface into the appropriate repository), it may be deleted or overwritten. Additionally, when UCCX transitions to Linux in version 8 (due out 2009-2010), you will have little or no access to the file system.

I am not aware of any supported method to load prompts, scripts, or documents into the repositories other than through the appadmin browser interface.


This Discussion