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.
- The inbound play WAV example
- The inbound record play example
- The inbound with TTS example
- The inbound with speech example
- The PIN input example
- The voicemail 1 example
- The voicemail 2 example
- The voicemail 3 example
- The voicemail 4 example
- The outbound reminder example
- The outbound connect example
- The quickstart application
- The UAS connection test
- The Speech Recognition API
- The transfer to conference example
- The transfer menu example
- The connect to conference example
- The high level API example
- The fax sender example
- The fax receiver example