5.2. Installing Asterisk on Debian
Problem
You want to run your Asterisk server on Debian. Can you use apt-get? What are the package names?
Solution
Asterisk installs nicely on Debian with apt-get, with one exception: you still need to compile the Zaptel modules manually. And even that is easy, thanks to the module-assistant utility. First, install Asterisk with these commands:
# apt-get install asterisk asterisk-sounds-main asterisk-sounds-extra asterisk-config
asterisk-doc zaptelThen, you will have to compile the Zaptel drivers from sources. The easy way is to use module-assistant. This is a slick little program that pulls in everything you need to compile and build kernel modules. Run these commands to install module-assistant, and then build and install the Zaptel drivers:
# apt-get install module-assistant
# module-assistant prepare
# module-assistant auto-install zaptelThis takes a short time if you already have a build environment on your PC; longer if module-assistant needs to download a lot of packages. When it's finished, run this command:
# update-modulesThe last step is to configure Asterisk to start at boot, with the update-rc.d command:
# update-rc.d asterisk start 40 2 3 4 5 . stop 60 0 1 6 .And that's it. Now you can start learning your way around your Asterisk server.
Discussion
What are these Zaptel thingies for, anyway? Zaptel drivers control the Digium interface cards, so you might think you don't need to bother with the drivers if you're not using Digium hardware. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access