Applications sample code

Introduction

These samples cover the following API functionality:

  • Outbound calls

  • Inbound calls

  • DTMF playing

  • DTMF detection

  • DTMF barge-in

  • File playing

  • File recording

  • TTS playing

  • Speech detection

  • Connecting calls

  • Conferencing

  • Fax sending

  • Fax Receiving

  • The high level API

These samples are all written using the standard call channel API. A high level API which simplifies writing some of the applications shown here is also provided, along with the source code.

Some of these samples will place an outbound call. For important information on placing outbound PSTN calls, please see the documentation for outbound calls.

Several of these samples will play a file. The file must reside on cloud.aculab.com and can be manually uploaded (or downloaded) via the file management page of cloud.aculab.com - while logged in to cloud.aculab.com, click Manage then Media Files. The same applies to files that are to be faxed.

Please also have a look at the Web Services API for instructions and samples on automatically uploading files to cloud.aculab.com.

Please note, before working with media files it is important that you read the section about media files which describes some of the effects of Eventual Consistency.

The samples

View the sample source code here.