03-09-2018 07:43 AM - edited 03-14-2019 06:01 PM
A common requirement in contact centers is to allow a supervisor to manually close the queue. The typical approach I see is to create an XML file that stores the state of the queue. When someone calls the contact center, the script reads the XML file for the state of the queue.
I'm wondering if it's possible to do this without xml files and instead use a REST API. The idea is you have a boolean value in the script called say, state, and make it a parameter. Then use a configuration API to set this value to TRUE or FALSE.
I'm referring to the API here:
https://developer.cisco.com/docs/contact-center-express/#introduction/supported-operations
Has anyone tried this? Any pitfalls to be aware of?
Solved! Go to Solution.
07-24-2018 01:20 PM
02-07-2019 06:42 AM
I know this is a bit of an older thread but I was using it for some good information in accessing information through the API as well as cross referencing it with other information I found on the web and just wanted to include this as a solution for downloading the documents as I found this solution in other threads and wanted to make it available to others searching the web and come across this thread. To access documents on the UCCX server you do not need to use the API which is probably why the download function does not work on documents in the API. You can access documents directly through a standard web call:
http://<UCCX Server>:9080/documents/
Thanks.
02-07-2019 10:03 AM - edited 02-07-2019 10:13 AM
That's pretty handy, thanks for sharing. There are a few hidden URIs on port 9080, and it would be great if Cisco would just document them. E.g., /realtime (https://community.cisco.com/t5/contact-center/agent-stats-for-uccx/td-p/3367492)
EDIT: I just tried the documents one on 11.6(2)ES02 and it doesn't work.
02-07-2019 10:35 AM
I have 11.6(ES01-9) and it works. Here is the format I am using, don't need the language in the call.
02-07-2019 11:06 AM
02-08-2019 05:36 AM
Along these same lines I have been searching for a solution but have not found any examples yet. Does anyone have a good example of python code generating and uploading XML as a document. I have been able to figure out the correct steps using Postman but wanted to see if there was some code that people were using in which they were generating and/or reading an XML file from the server making changes to it and uploading it to the server. I don't have Premium only Enhanced so I am not able to use triggered scripts and so will be using a Python based web page to allow Supervisors to be able to make changes to XML files that are used to control schedules and xml files that are used to schedule one time closures. Thanks.
02-08-2019 11:52 AM
02-08-2019 12:28 PM
You are correct in the fact that I am relatively new to Python on Requests, but have had some experience in them. The problem I am having is getting the request set up correctly to be able to upload a string of xml data and have it placed as a file on the server. Below is what I have come up with, but am getting a malformed request response from the server.
Thanks.
02-08-2019 02:28 PM
After a little more work and effort I figured it out. This uploads it to the temp storage and I can then move it into the real final file. Thanks...
02-08-2019 08:10 PM
02-11-2019 06:08 AM
Anthony, you are correct that I could be just serving it from the server and I had considered that, but I chose to host the files on the UCCX server and modify them on the UCCX server just to take care of redundancy and reliability issues, I did not want to introduce another server that made the availability and functionality of the UCCX server dependent on it.
I work for a medical institution and while we use UCCX for several call center type functions, I am also moving a lot of the clinic IVRs over to it as it allows us the ability to use the programability to create some standards in menu systems and other features including advanced scheduling. One of the features I am looking to give supervisors without giving them UCCX access, is the ability to schedule a closure on a clinic. (Could be weather related, or could be because of a meeting, etc...) As there are no associated queues I wanted to give them the ability to do it through a web interface because the people the schedule these closures are doing it for several clinics and to do it through a phone interface would be time consuming and difficult. So the best way I have found is I have created a scheduling script that I re-use across all of my scripts and one of the things that scheduling script checks for is a forced-closed XML document that gives a start date and time and end date and time. In the script I check if the current date and time is between the begin and end. All of that to say that while it is important that people be able to close the queue when needed I did not want to have a dependency between UCCX and the outside server, such that if the outside server were to stop functioning then the UCCX server could continue on with no impact.
As far as how I moved the file from temp location to permanent location here is the rest of the test script.
02-11-2019 01:11 PM
12-26-2019 11:08 PM
Hi Can any help on me on this, My requirement is like I wnat to upload a recorded .wav file to an external server, so I have created a rest api which will accept mutrpart/form-data and it upload the file to the server and its working fine.
Now from uccx script I want to call that rest api(post) with the recorded .wav file but I'm not sure how to set the body in REST call component. I'm attaching both the snippet of rest call from uccx and the API calling from postman and also the script.Any suggestion is appreciable.
Thanks.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide