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
System API to retrieve call data
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
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
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 Support
http://www.plumvoice.com
http://www.plumvoice.com
-
- Posts: 23
- Joined: Mon Jun 28, 2010 1:24 pm
Re: System API to retrieve call data
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
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
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 Support
http://www.plumvoice.com
http://www.plumvoice.com
-
- Posts: 23
- Joined: Mon Jun 28, 2010 1:24 pm
Re: System API to retrieve call data
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?
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
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
subdialog.php
If you have any more questions, please do not hesitate to ask!
Regards,
Plum Support
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>
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>
Regards,
Plum Support
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com