"Smooth Operator" - Creating a Playful Telephony Network with Asterisk Pt.3 (Patreon)
Content
In this video, the third part in the series, we start to get into some really juicy, playful functionality, which I hope you can see demonstrate the power and flexibility of using Asterisk. Yes, it is a bit tricky to first get set-up compared to just wiring a phone to an Arduino, but once it's running you can do some super-cool stuff!
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.
Next time, I'll be showing you how to place *incoming* calls - making the phone on any extension ring based on a triggered event, and requiring the user to answer the call.
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