Skip to content

Instantly share code, notes, and snippets.

@mheadd
Created March 16, 2011 17:04
Show Gist options
  • Select an option

  • Save mheadd/872844 to your computer and use it in GitHub Desktop.

Select an option

Save mheadd/872844 to your computer and use it in GitHub Desktop.
A Tropo scripting app for recording a conference call.
// Start recording the conference call.
startCallRecording('http://url-for-your-server/record.php', { format: 'audio/mp3' });
// Welcome the caller to the conference.
say('Welcome to the conferene line. Press the star key to exit.');
// Start the conference.
conference('1234567', {
terminator : "*",
mute : false,
playTones : true
});
// Play a message when the caller leaves the conference.
say('Goodbye, thanks for joining our conference.');
// Stop call recording.
stopCallRecording();
<?php
// Audio files saved to a parallel directory called 'recordings'
$target_path = 'recordings/' . $_FILES['filename']['name'];
move_uploaded_file($_FILES['filename']['tmp_name'], $target_path);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment