Page 1 of 1

System API to retrieve call data

Posted: Tue Oct 06, 2009 4:36 pm
by gforce
Is there a web service (or something similar) that will enable an external application to retrieve call data? (calls completed, call duration, etc)

IVR system does not have external app to retrieve call data

Posted: Wed Oct 07, 2009 9:10 am
by support
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

Re: System API to retrieve call data

Posted: Mon Jun 28, 2010 6:41 pm
by neilstebbing
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?

Re: System API to retrieve call data

Posted: Tue Jun 29, 2010 4:19 pm
by support
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

Re: System API to retrieve call data

Posted: Mon Aug 09, 2010 3:45 pm
by neilstebbing
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?

Re: System API to retrieve call data

Posted: Tue Aug 10, 2010 12:20 pm
by support
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