"Smooth Operator" – Creating a Playful Telephony Network with Asterisk – Part 3

May 11, 2021 Off By admin



This is the 3rd video in a series explaining how to use Asterisk PBX software to create a standalone internal telephone system using a Raspberry Pi, and to create playful interactions that might be suitable for an escape room.

Part One:
Part Two:
Part Three:

In this part, I’ll show you how to add custom extensions to the dialling plan and to use features such as text-to-speech to speak dynamic messages or to playback pre-recorded audio files, record what the user says or the keys they touch, and to add variables and logic to create conditional code based on the time or the number of calls that have been made to an extension number.

Timings:
00:00-01:20 Introduction
01:21-06:43 Creating your first custom dialplan extension: playing a built-in soundfile with PLAYBACK
06:44-08:24 Copying the custom dialplan to the Raspberry Pi using WinSCP
08:25-09:20 Reloading the dialplan via PuTTY
09:21-10:36 Testing the new extension
10:37-18:31 Adding a new rule to play a custom soundfile saved from Audacity with PLAYBACK
18:32-19:55 Custom dialplan: here’s one I made earlier…
19:56-20:44 Read a (hard-coded)number using SAYDIGITS
20:45-22:18 Read a (variable) number using SET
22:19-23:40 Read a number saved in a file using FILE
23:41-28:30 Read out any text using PICOTTS text-to-speech engine
28:31-29:22 Create speaking clock using EPOCH, STRFTIME, and PICOTTS
29:23-31:04 Speak out the contents of a file using FILE and PICOTTS
31:05-35:14 Count the number of times an extension is called using a GLOBAL variable
35:15-36:03 Resetting a GLOBAL variable
36:04-37:28 Requiring user to enter a password with AUTHENTICATE
37:29-39:16 Recording what the user says using RECORD
39:17-42:54 Testing user input and switching contexts
42:55-44:00 Wrap-up

source