HTTP post in Call Contact script
UCCX 7.01
CUCM 7.12a
I am trying to develop a script where a user calls into our phone system. The caller will enter information to make a payment. The script will then do an http post command to an external server to post the payment. The external web server will respond with an XML response.
I have used create URL document to create the http post document with all the parameters. However, I don't know how to make the actual http request. I have tried to use http forward and send http response steps, but the caller is a call contact rather than http contact.
Is there a way I can make an http request from a IVR script where the contact is a caller?
Thanks,
Mike
- Forums Topic:

HTTP post in Call Contact
i get session mgmt, but i was more or less asking how to get those specific stats (data for the specific call, not aggregate reporting data like expected wait and total calls, etc). the reports script object do not really cover things like talk time, wait time, etc, and doing calculations on the call start time would be a bit dicey, at best.
HTTP post in Call Contact
seems a little overcomplicated, but that could work too. does anyone know how to get stats via the script that'd ultimately be recorded in the CDR reports, like wait time, abandon time, talk time, CSQ, agent, etc?
HTTP post in Call Contact
Just put that stats into a variable and pull it in using sessions. If you don't know how to use session management you will have a tough time writing advanced scripts.
HTTP post in Call Contact
the step editor reference says that the send http response part is what's actually triggering the http request by consuming the result of it. hopefully it's as easy as creating a new doc variable, and using that variable in the create url document step and the send http response step. i can't imagine that they'd only let this work with http scripts vs. phone scripts.
HTTP post in Call Contact
pass the variable data using sessions to another http triggered script and post the data?
HTTP post in Call Contact
Try creating another contact variable to do the HTTP post. If not you'd prob have to write a custom applet.
HTTP post in Call Contact
Did you end up getting this working?
I'm looking to do the same thing, sort of. We are looking to use the Create New Document mechanism to do an HTTP POST to a CRM system handler that'd write that call data to a database. Were you able to get this to work? I think you are required to specific a "doc" to write the response data back to, which I'm hoping will automagically make this work. The editor documentation doesn't mention what the timeout setting is measured in, but I'm presuming it's milliseconds, with 0 being no timeout (I hope).
I'll post a reply if we get it to work.