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

Update AA Script via CUE PI/Rest API

So, I started picking at this yesterday and hope I'm not missing something obvious..

I've been developing a web application for our company, and I'm trying to provide a means of modifying our "on-call" technician for our service calls without having to manually modify scripts on a weekly basis. I'd like to update a phone number within one of the scripts to change who it is directed to on the voice prompts into our phone system via a REST API, however interaction seems to be limited in regards to scripts.

Where I am at now: I can poll the system for a list of scripts, obtain information about a particular script, download a script file to a temp directory, etc. The roadblock is the .aef file is a compiled file (not just plain xml which would have been great), and I don't want to play any guessing games when modifying the file mid-stream before writing it then re-uploading it.

So the question is... is there functionality to modify a script via the REST API directly on the system, or some module I can install on an apache server that will decompile/recompile the file into a valid aef that I can then upload back to the cisco appliance? Or some other option I may not be aware of?

Thanks,

Jason

Everyone's tags (5)
5 REPLIES

Re: Update AA Script via CUE PI/Rest API

I don't have a lot of CUE experience, but could you check if it supports making HTTP GET calls out of a script?

You just need a single variable of type String: http_resp and a single Set step: Set http_resp = URL[http://10.1.2.3/oncall]

If that is possible then you just saved yourself all kinds of time and work.

If its not, well then, I'm sorry.

Happy programming!

Sent from Cisco Technical Support iPhone App

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.
New Member

Update AA Script via CUE PI/Rest API

Thats an interesting suggestion; I don't have much experience in cisco unity scripting, but using the CUCE Editor I cannot create a variable of the String:http_resp using the GUI. (not one of the available options in the dropdown list) .. I even updated to CUCE Editor 8.6.2 in the event it was a versioning issue, but still no options for this.

Re: Update AA Script via CUE PI/Rest API

Sorry for the confusion. String is the data type, and http_resp is the name of the variable. Call it whatever, banana, if you want. Cheers!

Sent from Cisco Technical Support iPhone App

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.
Hall of Fame Super Gold

Re: Update AA Script via CUE PI/Rest API

Doing HTTP I/O, and database access on the CUE scripts requires a so called IVR license.

Update AA Script via CUE PI/Rest API

Paolo Bevilacqua wrote:

Doing HTTP I/O, and database access on the CUE scripts requires IVR licenses.

Ah, I did not know that, but at least it confirms the feature exists.  Thanks for the info.

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.
544
Views
4
Helpful
5
Replies
CreatePlease to create content