Created by: Gregory Burton on 31-10-2008 06:38:29 PM What is the best/quickest method of issuing an external http trigger (such as http://192.168.1.1/trigger.htm ?dn=1234) from a CVP script.
I need to issue an http request to another web server (with basica arguments) to trigger another telephony application on that server. This request is not expecting any http response. What element(s) would I use and how would I set that up.
Thanks.
Using CVP 7.0(1)
Subject: Re: How to set up and send a basic HTTP request from CVP VXML Replied by: GEOFFREY THOMPSON on 04-11-2008 01:06:01 PM I wrote a custom Java element to send an HTTP request. The reason I wrote this was I wanted a "poor man's" CSS to deal with WAV files on the two media stores. I placed a test.html file in the root of the web servers and at the start of the application I would call this custom element to fetch the file from the first HTTP server. If that worked, I set a session variable that described the "default audio path". If it failed, I set the session variable to the other HTTP server.
If you have Java skills it's not that hard to write such a custom element. I used the Apache HTTP Client JAR to provide the high-level functions rather than working with the lowest level of HTTP.
If you don't have the ability to build a custom action element you may be able to work with the Web Services element - I have no experience with that one.
You may also be able to use an action element that is configured as a URI. That sends a GET that is structured in a certain way, as documented. If you control the web server you can work with the information that's sent - if you don't, then this option won't work.
I recommend the custom action element - it gives you total control without extra baggage.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: