08-02-2013 12:32 AM - edited 03-14-2019 12:10 PM
Hi,
I want to invoke Restful Webservice from my script, also i want to play the output of that webservice to customer as prompt, can any body send me a sample scipt or guide me here about the process. Thanks
Solved! Go to Solution.
08-05-2013 06:19 AM
Unless I'm missing something, HTTP REST would be a simple HTTP POST/GET operation. The CCX sample script repository shows examples of the HTTP-related steps. If you're looking for SOAP, here are a few examples:
https://supportforums.cisco.com/docs/DOC-26957
https://supportforums.cisco.com/docs/DOC-23899
Please remember to rate helpful responses and identify helpful or correct answers.
08-05-2013 06:19 AM
Unless I'm missing something, HTTP REST would be a simple HTTP POST/GET operation. The CCX sample script repository shows examples of the HTTP-related steps. If you're looking for SOAP, here are a few examples:
https://supportforums.cisco.com/docs/DOC-26957
https://supportforums.cisco.com/docs/DOC-23899
Please remember to rate helpful responses and identify helpful or correct answers.
08-05-2013 07:30 AM
To add to what Jon said, and the links he has provided, if what you want to play is text, then you'll need UCCX Premium with the optional Nuance TTS server. However, if what you want to play is audio, then you'll just need to make sure it's in the proper codec/format for what your UCCX is configured for: either G711 or G279.
Play Text To Speech Example (assume that your HTTP response has been parsed via XML steps, and your text is in a String variable):
Play Prompt (--Triggering Contact--, TTS[http_response_text])
Play Remote HTTP Audio Example:
Play Prompt (--Triggering Contact--, URL[http://myserver.local/uccx/prompt1.wav])
Anthony Holloway
Please use the star ratings to help drive great content to the top of searches.
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