Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
$recorded = false;
function callConnected($event) {
global $recorded;
$recorded = true;
_log("************** starting the recording");
startCallRecording("ftp://username:password@ftp.tropo.com/recordings/connectedRecording.mp3");
}
transfer("+14071234321", array(
"playvalue" => "http://www.phono.com/audio/holdmusic.mp3",
"terminator" => "#",
"timeout" => 40.0,
"onConnect" => "callConnected"
));
if($recorded){
_log("************** killing the recording");
stopCallRecording();
say("ftp://username:password@ftp.tropo.com/recordings/connectedRecording.mp3");
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.