Home Creators Posts Import Register Favorites Logout

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

Files

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

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. 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

Comments

Vagos Barlas

Hi i have issues installing the Picotts lib on my Raspberry Pi 4B....It goes: root@raspbx:~# sudo apt-get install libttspico0 Reading package lists... Done Building dependency tree Reading state information... Done Package libttspico0 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'libttspico0' has no installation candidate

Vagos Barlas

Does this mean that is no longer availiable...how can i work around that?

Vagos Barlas

Yes ...i confirm that with the above fix PICO is working ok!