Install asterisk-mysql by entering the following commands in the terminal:
sudo apt update sudo apt install asterisk-mysql
MySQL database protocol support for the Asterisk PBX
Asterisk is an Open Source PBX and telephony toolkit. . This package provides support for using a MySQL database to store configuration, call detail records, and also provides generic access to it from the dialplan. . For more information about the Asterisk PBX, have a look at the Asterisk package.