Install asterisk-dev by entering the following commands in the terminal:
sudo apt update sudo apt install asterisk-dev
Development files for Asterisk
Asterisk is an Open Source PBX and telephony toolkit. . This package contains the include files used if you wish to compile a package which requires Asterisk's source file headers.