Created
March 16, 2011 17:04
-
-
Save mheadd/872844 to your computer and use it in GitHub Desktop.
A Tropo scripting app for recording a conference call.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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