02-13-2013 09:09 AM - edited 03-14-2019 11:15 AM
I have been tasked with adding to an existing script, the ability to turn on/off, 1 of 9 prerecorded prompts. When one is turned on, they want it played while the users are in a queue, awaiting an agent. The customer does not have a local SQL server, so I believe that I will need to store the variable for the "turned on" prompt in an XML document on the UCCX local repository. Any assistance would be greatly appreciated.
02-13-2013 09:14 AM
Hi
Someone asked this yesterday - you can do this without using any XML.
https://supportforums.cisco.com/thread/2198168
Aaron
02-13-2013 09:33 AM
That was me, but with further talks with the customer,they now also wants that prompt to be played when a user is in any one of several queues. Wouldn't I need a variable stored that I could reference with an IF tree within those queues, so that I could determine which prompt, if any, were turned on, and then play it for them, or am I over complicating this?
02-13-2013 09:57 AM
Hi
It depends - if all the queues need the thing on or off globally, then it's no different. All your scripts would reference the same prompt ID that the 'selector' script uploads.
If you want it seperate for each one, then yes, you could use XML. Alternately you could have the 'selector' script upload the prompt to each location individually.
Aaron
02-13-2013 10:01 AM
Hey back. No, just the same prompt. So one other question (and I really do apprectiate your support on this)........if I am referencing the emergancy.wav prompt within a CSQ you mentioned in the other thread, but I have cleared that variable so that no emergency related messages are loaded, will that cause the script to hang up, or will it quickly skip over that reference and just normally go to the next step in the CSQ?
02-13-2013 10:17 AM
There is one other requirment by the customer that may not allow me to use your earlier recommended method. When their admins dial in, mgmt wants the admins to be made aware that a emergency prompt is currently active. to accomplish that, I believe I will need to have some variable value set that I can reference to direct the script to a menu that will assit them with turning off the message. If so, then I suspect that I may need to revisit the need for utilizing an XML document on the repository to store that variable. Please correct me if I am wrong.
02-13-2013 10:40 AM
Hi
Well - yes, in that case you cuold either use XML, or just give the option to play the current prompt to the admin (then play out the current prompt as referenced in the normal script).
There are lots of examples of XML use knocking around on the forums if you want to go down that route.
Aaron
02-13-2013 10:46 AM
Based on customer requirements to have a separate Prompt that tells the admins that an emergency prompt is currently turned on, I believe I am going to need to explore the XML route. I have been poking around the forums looking for examples, but due to my VERY limited work with that part of scripting, have not found anything with enough information to get me jump started. Do you happen to have anything on hand that could get me started?
02-13-2013 10:56 AM
One other question, based on what i am seeing, a CUCM username/password/pin auth, and UCCX admin rights is required for the user to have the ability to write to the XML file, is that correct?
12-06-2013 06:42 AM
Did anyone come up with a script to make this work? Is there anyway to use the script application ID as a place holder to change state individual script prompts? That would be great.
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