System API to retrieve call data

Questions and answers about Plum iOn systems

Moderators: admin, support

  • Author
  • Message
Offline

gforce

  • Posts: 2
  • Joined: Tue Oct 06, 2009 4:15 pm

System API to retrieve call data

PostTue Oct 06, 2009 4: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)
Offline

support

  • Posts: 3544
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

IVR system does not have external app to retrieve call data

PostWed Oct 07, 2009 9: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
Offline

neilstebbing

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

Re: System API to retrieve call data

PostMon Jun 28, 2010 6: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?
Offline

support

  • Posts: 3544
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: System API to retrieve call data

PostTue Jun 29, 2010 4: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
Offline

neilstebbing

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

Re: System API to retrieve call data

PostMon Aug 09, 2010 3: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?
Offline

support

  • Posts: 3544
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: System API to retrieve call data

PostTue Aug 10, 2010 12: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

Return to Plum iOn Q&A

Who is online

Users browsing this forum: No registered users and 1 guest

cron