Installing Asterisk18

Anyone know of any guides I can follow to install Asterisks 18? I’m completely new and apologize if this topic has already been brought up.

Followed by the resulting contents of /etc/asterisk.

For a dated overview: and for a slightly less dated one, the current issue of the book.

For the full current details: and particularly Asterisk 18 Documentation - Asterisk Documentation

Thank you so much! Currently working but I’ll have a look at this as soon as I get home. I have been trying to follow the documentation online (Checking Asterisk Requirements - Asterisk Documentation) but there was just to many broken links and since I’m new to asterisk got kind of lost.

I’m reading through the github docs but still kinda lost on how to start. I just downloaded ubuntu and I’m not sure what to do after that to download the file into my computer

Please give more detail so we know exactly what you are asking about:

  1. Please provide a link to the github docs you are reading and following

  2. What do you mean by you “just downloaded Ubuntu”? Do you mean that you
    have just installed Ubuntu Linux onto a machine, and you are now wondering how
    to install Asterisk on it? Do you perhaps mean that you have downloaded an
    Ubuntu Asterisk DEB and are not sure how to install it into Ubuntu?

Please explain exactly what you just downloaded.

  1. You’re puzzled about how to download into your computer the file you just
    dowloaded. Please tell us:

a) exactly what did you just download

b) what sort of computer are you trying to install it onto - what operating
system and version is it running?

In summary, please give us enough information so that we could do what you
have just done, and we know where you are now stuck and trying to make further


Sorry about the confusion. I was able to download Ubuntu using virtual box. I also was able to download Asterisk 18 with all the other libraries needed. Just wondering, do I need Libri and Dahdi? Thanks for responding and also giving me a better idea of how to ask questions.

What is the current dahdi library that I need to install?
svn co

I’m getting an error when I try to install make libpri.
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-zero-length-bounds -Wno-stringop-overflow -fPIC -O2 -MD -MT pridump.o -MF .pridump.o.d -MP -c -o pridump.o pridump.c
pridump.c:45:10: fatal error: dahdi/user.h: No such file or directory
45 | #include <dahdi/user.h>
| ^~~~~~~~~~~~~~
compilation terminated.
Anyone know how to fix it?

I was reading online and I read that I needed to install Dahdi first. While I was trying to install dahdi bash was giving me a warning about not having gcc-12. Could anyone expound on what is gcc-12 and why I need it?

Do I even need libpri and dahdi? I was able to download the libraries but haven issues with the command and the sudo make install. I’m trying to follow the directions in this website. How to Install It

I’m getting this when i run “make” in my dahdi directory

I just ended up configuring asterisk without dahdi and libpri

Is there a good reason why you are compiling Asterisk from source under Ubuntu
instead of simply installing the packaged version?

I have nothing against people compiling from source when it becomes necessary
(and keeping up with the latest version can be a reason, for example, although
Asterisk 18 is far from the latest version), but I do wonder why someone
seemingly new to Asterisk starts out in this way.


I am following the guide that the first person responded too. I haven’t been able to find much online in regards to good documentation so I just followed that.

Can you tell me more about this packaged version?

The packaged version is maintained by your OS distributors, not by the Asterisk project.

Packages are basically the point of using a Linux distribution such as Ubuntu,
Red Hat, Debian, Centos (and so on for several hundred variations), where
someone has taken the trouble to compile the software for you, and provide it
in such a way that it simply fits itself into your machine neatly and

Upgrades are also made “pretty trivial”.

The alternatives are things like Linux From Scratch, or Gentoo (although there
are plenty of other ways of building a Linux system from source code if you
have the time and inclination). I do not recommend these for a Linux

If the concept of a packaged Linux distribution is still strange to you, try
Linux distribution - Wikipedia for example.


@egatica51 : you can try this short guide :

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.