Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

CCX 8 Script Repository?

I need to find some examples for recording and uploading system message recordings for the new CCX8 platform (especially with regard to where exactly new recordinfs are stored in which directories, how to refer to those directory paths in the variables, etc.)  The most current script repository only has examples for CCX7 (Windows).

9 ACCEPTED SOLUTIONS

Accepted Solutions
Bronze

Re: CCX 8 Script Repository?

The process remains the same:

1. Use the Recording step to record your message.

2. Use the "Get User" and "Authenticate User" step to authenticate yourself to the server.

3. Use the "Upload Prompt" to upload your recordings

When uploading the prompts, provide a relative path name instead of absolute path. the file will be uploaded to Documents/Users/language folder. you can reference the uploaded file with just P[filename_here]

Bronze

Re: CCX 8 Script Repository?

You can use a password or use a PIN. a PIN maybe a bit secure since its usage as compared to password is limited.

Bronze

Re: CCX 8 Script Repository?

If you intend to upload a prompt, then you need to authenticate before you could do so.  To authenticate, you need a user object to authenticate with. so yes, you need a get user object.  it's very simple to use depending on your security requirements.

the simplest method is:

1. create a variable and assign your userid to it.

2. Create another variable of type "User"

3. Drop a "Get User" object to your script. Right click and choose properties. Set the UserID to the variable you created in step 1. Select the user object you created in step 2 to the "Output User" field. you're done.

To authenticate, drop the "Authenticate User step, and choose properties. for the "User" field, select the variable you created in step 2 above. You have an option to provide a PIN or password. choose one and provide the corresponding value.

Bronze

Re: CCX 8 Script Repository?

Here's a sample script that shows how this might work.

Bronze

Re: CCX 8 Script Repository?

here's an updated script which includes the recordings and upload

Bronze

Re: CCX 8 Script Repository?

I have added the Upload Document step to the previous sample script, which demonstrate how the Upload Document should work.

Bronze

Re: CCX 8 Script Repository?

The script steps should be exactly the same as what you had in the version 7 script so copy from there. the only thing different is instead of a Write Document step, you'll replace that with Upload Document.

Bronze

Re: CCX 8 Script Repository?

I have added a step at the bottom to ask for the telephone number, generate an xml string, then upload the xml data to the server.

Bronze

Re: CCX 8 Script Repository?

In the Upload Prompt step, there's a field to specify the language. enter L[en_US] to upload to the en_US subfolder.

21 REPLIES
Bronze

Re: CCX 8 Script Repository?

The process remains the same:

1. Use the Recording step to record your message.

2. Use the "Get User" and "Authenticate User" step to authenticate yourself to the server.

3. Use the "Upload Prompt" to upload your recordings

When uploading the prompts, provide a relative path name instead of absolute path. the file will be uploaded to Documents/Users/language folder. you can reference the uploaded file with just P[filename_here]

New Member

Re: CCX 8 Script Repository?

Chris,

I've not used the Authenticate User step before.  Does this mean that I need to enter my password at some point?

Bronze

Re: CCX 8 Script Repository?

You can use a password or use a PIN. a PIN maybe a bit secure since its usage as compared to password is limited.

New Member

Re: CCX 8 Script Repository?

How is Get User used?  Do I create a corresponding prompt that goes, "Please enter user extension then password?"  Can you give an example?

New Member

Re: CCX 8 Script Repository?

Also, do I necessarily need the Get User step?

Bronze

Re: CCX 8 Script Repository?

If you intend to upload a prompt, then you need to authenticate before you could do so.  To authenticate, you need a user object to authenticate with. so yes, you need a get user object.  it's very simple to use depending on your security requirements.

the simplest method is:

1. create a variable and assign your userid to it.

2. Create another variable of type "User"

3. Drop a "Get User" object to your script. Right click and choose properties. Set the UserID to the variable you created in step 1. Select the user object you created in step 2 to the "Output User" field. you're done.

To authenticate, drop the "Authenticate User step, and choose properties. for the "User" field, select the variable you created in step 2 above. You have an option to provide a PIN or password. choose one and provide the corresponding value.

New Member

Re: CCX 8 Script Repository?

Hey Chris,

     I followed the steps you outlined and have a couple of questions.  I kind of expected the steps to prompt me to enter a pin for authentication, but when I run a reactive debug, it looks like it gets my userID from my phone (user extension).  It populates the User variable with what it finds.  Is this how it's supposed to work?  Also, anyway, it seems to not be authenticating properly.

Bronze

Re: CCX 8 Script Repository?

Here's a sample script that shows how this might work.

New Member

Re: CCX 8 Script Repository?

I can't thank you enough, Chris.  This sample script is a huge help and it appears that I am authenticating properly now.  I'm still having problems uploading the prompt, however.  I am making it the the Recording and Upload Prompt steps, and the script shows that the file is being created (the output is FILE[/opt/cisco/uccx/temp/1286555593909@fe3a51.wav]), but I don't see it anywhere in the prompt directories.  Any ideas?

Bronze

Re: CCX 8 Script Repository?

here's an updated script which includes the recordings and upload

New Member

Re: CCX 8 Script Repository?

Chris, thank you so much, this is exactly the example I needed to get this going.  Was able to upload a prompt and playback with no problems.  I can't thank you enough.

New Member

Re: CCX 8 Script Repository?

Hi Chris,

     Quick question along the same lines - another part of my script requires changing an oncall pager number.  In the past, I've used a Write Document step to write an .xml file with the new number, which is in turn referenced by another script that uses it to make after hours routing decisions.  It sounds like Upload Document should be used instead (especially in this instand of HA, no?)  I'm, again, not able to write the document to the server, do you have an example that I can refer to?

Bronze

Re: CCX 8 Script Repository?

I have added the Upload Document step to the previous sample script, which demonstrate how the Upload Document should work.

New Member

Re: CCX 8 Script Repository?

Thanks, Chris.  I worked the Upload Document problem since the last post.  The last part I'm working on is generating an XML document based on the digits input so that this document can be referenced by the call center script to reroute calls to a cell phone during off-hours.  I'm having difficulty adapting how it used to be done with how it should be done.   I need to work out how to create an XML document containing the digit string that can be subsequently uploaded (as you mentioned) to CCX so that it can be referenced.  Is there a good sample script showing how it might be done?

Bronze

Re: CCX 8 Script Repository?

The script steps should be exactly the same as what you had in the version 7 script so copy from there. the only thing different is instead of a Write Document step, you'll replace that with Upload Document.

Bronze

Re: CCX 8 Script Repository?

I have added a step at the bottom to ask for the telephone number, generate an xml string, then upload the xml data to the server.

New Member

Re: CCX 8 Script Repository?

Chris,

     Thank you so much, this script does exactly what I needed it to do.  I can't thank you enough for your help.

New Member

Re: CCX 8 Script Repository?

Yeah, that's been my approach except that something seems to have changed.  For Document variables in my current script, the value has been set to "null", but in all references and examples that I've seen, this has not been the case.  Because I'm going from CCX 5 Enhanced to CCX 8 Premium HA, like you mentioned, so methods aren't supported (hence the need for a Document Upload step instead of the Document Write step.  So, figuring out these differences with no baseline frame of reference is difficult.

I wish Cisco put out a CCX Scripting Cookbook, it'd go a long way for its customers.

New Member

Re: CCX 8 Script Repository?

Hey Chris,

Quick question - I've always been used to using the default directory for storing scripts and prompts.  If I wanted to create a Prompt variable refering to a wav file in the L[en_US] directory, how would that path be formatted?

Bronze

Re: CCX 8 Script Repository?

In the Upload Prompt step, there's a field to specify the language. enter L[en_US] to upload to the en_US subfolder.

New Member

Re: CCX 8 Script Repository?

How about for prompts that I create and upload manually?

3094
Views
5
Helpful
21
Replies
CreatePlease to create content