Hi, Could you tell me if there are some link to download some complete examples for outbound calls?
Thanks.
Omar.
We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics
Do you have some aplication examples?
Once calls connect, IVR system will POST to your start_url
Hello,
Plum does not provide IVR examples for this since it is entirely dependant on the server side scripting language you are using. You should be POSTing several values to the outbound.plumgroup.com server. This will generate the IVR calls requested. Once the IVR calls are connected the IVR system will then POST to your start_url. You should then be looking at the POST variables sent to your script and based on those variables generating a VoiceXML script. At this point a VoiceXML session is started equivalent to an IVR inbound call.
Regards,
Plum Support
Plum does not provide IVR examples for this since it is entirely dependant on the server side scripting language you are using. You should be POSTing several values to the outbound.plumgroup.com server. This will generate the IVR calls requested. Once the IVR calls are connected the IVR system will then POST to your start_url. You should then be looking at the POST variables sent to your script and based on those variables generating a VoiceXML script. At this point a VoiceXML session is started equivalent to an IVR inbound call.
Regards,
Plum Support
Last edited by support on Sat Feb 20, 2010 4:34 pm, edited 2 times in total.
-
- Posts: 34
- Joined: Tue Aug 08, 2006 10:00 am
Yes, I undestand you, but we have a small problem, when we do the post of all values to the server, it backs a xml whith the callID in the plum system or the error. This xml shows in the browser, and I want not that, I want to work with the xml and only show a smal message in the browser. Could you tell me about I could do this in PHP, I know, this is a php question, but may be you know the answer. We work with some integration like that, but in the GET method, so we have use the function fopen for getting the result of the page, but with the POST method we could not find to much information.
If you can do a small example, for us would be great.
Thanks and sorry for this out topic question.
Omar.
If you can do a small example, for us would be great.
Thanks and sorry for this out topic question.
Omar.
IVR example that reads back info
Hello,
Here is a PHP example that reads back the information that was provided when the IVR call was created.
Note the php code references within the <prompt> block. Hope this IVR code example helps.
Regards,
Plum Support
Here is a PHP example that reads back the information that was provided when the IVR call was created.
Code: Select all
<?php
// Reference application starting URL for outbound voiceXML.
// This script should accept these parameters as POST method variables:
// phone_number
// callee_type
// call_id
// message_reference
// campaign_parameters
// call_parameters
//
// and should return valid VoiceXML 2.0.
//
// This script is invoked only after a successul call connection
// is established and callee type detection is completed.
//
// echo these as strings to avoid problems with php parsing the xml declaration
header("Content-type: text/xml");
echo "<?xml version=\"1.0\"?>\n";
echo "<vxml version=\"2.0\">\n";
// Call parameters from outboundlib
$phone = $_POST['phone_number'];
$calleeType = $_POST['callee_type'];
$callID = $_POST['call_id'];
$msgReference = $_POST['message_reference'] != '' ? $_POST['message_reference'] : 'not set';
$campaignParameters = $_POST['campaign_parameters'] != '' ? $_POST['campaign_parameters'] : 'not set';
$callParameters = $_POST['call_parameters'] != '' ? $_POST['call_parameters'] : 'not set';
?>
<form>
<?php if (strcmp($calleeType, "answeringmachine") == 0) { ?>
<record name="silenceeater" beep="false" maxtime="60s" finalsilence="2s"/>
<?php } ?>
<block>
<prompt bargein="false">
The callee type detected is <?=$calleeType?>.
The call ID for this call is <say-as type="acronym"> <?=$callID?></say-as>.
The message reference is <?=$msgReference?>.
The campaign parameters are: <?=$campaignParameters?>.
The call parameters are: <?=$callParameters?>.
Goodbye.
</prompt>
</block>
</form>
</vxml>
Regards,
Plum Support