Do you have some aplication examples?
Posted: Fri Sep 29, 2006 6:20 pm
Hi, Could you tell me if there are some link to download some complete examples for outbound calls?
Thanks.
Omar.
Thanks.
Omar.
Welcome to the PlumVoice IVR Support Forum
https://support.plumvoice.com/
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>