We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

System API to retrieve call data

Questions and answers about Plum iOn systems

Moderators: admin, support

Post Reply
gforce
Posts: 2
Joined: Tue Oct 06, 2009 4:15 pm

System API to retrieve call data

Post 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)

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

IVR system does not have external app to retrieve call data

Post 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

neilstebbing
Posts: 23
Joined: Mon Jun 28, 2010 1:24 pm

Re: System API to retrieve call data

Post 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?

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: System API to retrieve call data

Post 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

neilstebbing
Posts: 23
Joined: Mon Jun 28, 2010 1:24 pm

Re: System API to retrieve call data

Post 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?

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: System API to retrieve call data

Post 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

Post Reply