header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
curl_setopt($ch, CURLOPT_URL, 'https://hosting.plumvoice.com/ws/transcription/transcribe.json');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
'audio' => new CURLFILE($_FILES['callrecording']['tmp_name'])
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Basic '.base64_encode('username:password')));
$result = curl_exec($ch);
echo 'Error:' . curl_error($ch);
$data = json_decode($result);
$message = $data->result->message;
<var name="message" expr="'<?php echo("$message")?>'"/>
<return namelist="message"/>