System API to retrieve call data

Questions and answers about the Plum Voice IVR Platform software

Moderators: support, admin

System API to retrieve call data

Postby gforce » Tue Oct 06, 2009 5:36 pm

Is there a web service (or something similar) that will enable an external application to retrieve call data? (calls completed, call duration, etc)
gforce
 
Posts: 2
Joined: Tue Oct 06, 2009 5:15 pm

IVR system does not have external app to retrieve call data

Postby support » Wed Oct 07, 2009 10:10 am

Hi,

Sorry, but we do not offer this implementation to enable an external IVR application to retrieve IVR call data.

However, there are parameters that you can pass to your result_url (such as "result" to see if a call has "completed" or "failed" or "duration", which gives you the duration of the IVR outbound session in seconds).

Regards,
Plum Support
Plum Voice IVR Solutions
IVR Hosting, Systems and Professional Services
Visit: http://www.plumvoice.com
support
 
Posts: 2184
Joined: Mon Jun 02, 2003 4:47 pm
Location: Boston, MA

Re: System API to retrieve call data

Postby neilstebbing » Mon Jun 28, 2010 7:41 pm

What about if i want to call a webservice to return some text which get's translated by the plum ivr xml. I guess we are trying to sync up our public website responses with our ivr responses, so the responses are the same but voice over the ivr and text on our website?
neilstebbing
 
Posts: 5
Joined: Mon Jun 28, 2010 2:24 pm

Re: System API to retrieve call data

Postby support » Tue Jun 29, 2010 5:19 pm

Hi Neil,

Could you please further clarify what you're trying to do with your application?

This would give us a better idea of how to respond to your question.

Regards,
Plum Support
Plum Voice IVR Solutions
IVR Hosting, Systems and Professional Services
Visit: http://www.plumvoice.com
support
 
Posts: 2184
Joined: Mon Jun 02, 2003 4:47 pm
Location: Boston, MA

Re: System API to retrieve call data

Postby neilstebbing » Mon Aug 09, 2010 4:45 pm

1) I wanted to make some respones to come from webservice
2) Do you have examples of the vxml http get so i can look at the syntax
3) Does the webservice return text or a xml document?
neilstebbing
 
Posts: 5
Joined: Mon Jun 28, 2010 2:24 pm

Re: System API to retrieve call data

Postby support » Tue Aug 10, 2010 1:20 pm

Hi,

If you are using a SOAP webservice, it will return XML, but if you are looking to simply do some data exchange between your VoiceXML and your backend, you would want to use either the <submit>, <subdialog>, or <data> tag. Each of those tags will default to using the HTTP GET method. Here is an example of how you would use the <subdialog> tag to get some text from your backend, then read that text using VoiceXML:

voice.vxml
Code: Select all
<?xml version="1.0"?>
<vxml version="2.1">
  <form>
    <subdialog name="sub" src="subdialog.php"/>
    <block>
      <value expr="sub.text"/>.
    </block>
  </form>
</vxml>


subdialog.php
Code: Select all
<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");

$my_prompt = "This is some text that you can read over the phone";
?>

<vxml version="2.0">
<form>
<block>
<var name="text" expr="'<?php echo($my_prompt)?>'"/>
<return namelist="text"/>
</block>
</form>
</vxml>


If you have any more questions, please do not hesitate to ask!

Regards,
Plum Support
Plum Voice IVR Solutions
IVR Hosting, Systems and Professional Services
Visit: http://www.plumvoice.com
support
 
Posts: 2184
Joined: Mon Jun 02, 2003 4:47 pm
Location: Boston, MA


Return to IVR Platform Administrator Q&A

Who is online

Users browsing this forum: No registered users and 1 guest