Invoke Web services from UCCX 8.5

Answered Question
Aug 2nd, 2013
User Badges:

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

Correct Answer by Jonathan Schulenberg about 4 years 1 week ago

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.8 (4 ratings)
Loading.
Correct Answer
Jonathan Schulenberg Mon, 08/05/2013 - 06:19
User Badges:
  • Super Bronze, 10000 points or more
  • Cisco Designated VIP,

    2017 IP Telephony

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.

Anthony Holloway Mon, 08/05/2013 - 07:30
User Badges:
  • Purple, 4500 points or more

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.

Actions

This Discussion