Category Archive: Asterisk

Mar 21

Asterisk 13: C*NET IAX Connection (ckts.info)

All of the instructions you see online are for much older versions of Asterisk. It makes sense, as a phone system is always highly customized and can get very complicated, very quick. It’s hard to upgrade an in-place system to a newer version, especially in Asterisk’s case where the newer stuff broke a lot of …

Continue reading »

Feb 22

Asterisk 13/DAHDI: Setting up an FXO Channel

With DAHDI, this turns out not to be so bad. Once you add the physical hardware, There is just a few DAHDI related commands to run, and a small section of extensions.conf to change. Note: Throughout I use the parameter -vvvvv to indicate as much as verboseness as possible. I use all 5 v’s from …

Continue reading »

Jan 31

Ubuntu 14.04+ and Asterisk 13: Rotating Logs

After a while, Asterisk can spit out a lot of logging, which eventually will take up a large amount of room. Thankfully Ubuntu already has a program installed by default to help get a handle on logs called “logrotate.” This makes it really simple to add more logs to be rotated. Simply create the file …

Continue reading »

Jan 19

Ubuntu 14.04/Asterisk 13: CDR Reporting to MySQL

On Linux, I am familiar with MySQL, and for me it’s the easiest to get going. Asterisk used to include support for MySQL directly (and the config is still there, but not compiled into Asterisk by default anymore), but has since moved to a ODBC structure which offloads the database handling, making it database server …

Continue reading »

Jan 12

Ubuntu 14.04+/Asterisk 13: Securing Asterisk

A default Asterisk install works, but is pretty insecure, leaving it up to the administrator to decided how to secure it that works for them. Below are some suggestions (and things I have done) to secure Asterisk. Fail2Ban: This is a pretty simple implementation, and can be done quickly. I have already setup an email …

Continue reading »

Jan 11

Asterisk 13: Set Up Local SIP Channels

First, we will create the user/phone account in sip.conf:

This creates a SIP phone called “phone1”, with the username “phone1”, using the password “password1111”. This also links it to the from-internal context in extensions.conf where I have the rest of my extensions. If you want it to go to a different part of the …

Continue reading »

Jan 11

Ubuntu 14.04+ and Asterisk 13: Setting Up DAHDI

If you have added new hardware to your Asterisk box like FXO/FXS cards, there are a few configuration steps. Note: If you didn’t compile Asterisk with DAHDI, you will need to do those first. SeeĀ Ubuntu 14.04 Server: Install Asterisk 13 (opens in new tab/window) for Installing Asterisk, and just do the steps for compiling DAHDI …

Continue reading »

Jan 11

Ubuntu 14.04+ Server: Install Asterisk 13

These instructions are a modification of my earlier FreePBX instructions. I ended up not liking FreePBX installed mostly because it makes Asterisk configuration non-standard, and for module compatibility, makes it produce a lot of errors. These errors could be ignored, but my OCD won’t let me personally ignore them. The huge advantage to FreePBX however …

Continue reading »

Jan 10

FreePBX/Asterisk DAHDI_ATTACH_ECHOCAN failed on channel 1

Currently, on a new install of the latest FreePBX, the DAHDI module has some problems with echo cancellation on FXO/FXS cards. This will cause the module to not load correctly. This may be fixed in the future. DAHDi seems to want to use oslec echo cancellor by default, however it’s not a module that’s …

Continue reading »