Monthly Archive: January 2015

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 12

Ubuntu 14.04+: Set up Postfix to Send to Local Network Relay

I have an internal SMTP mail relay set up on one server, and I have other servers send emails to that relay. I have a pretty simple setup as there is no security to send emails to the relay from inside. This makes the setup on other servers easier (although it’s not as good as …

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 »

Jan 09

Raspbian: VIM Syntax Highlighting

I always install VIM, it’s easier to use than VI, however for some reason in Raspbian, syntax highlighting is not enabled by default. It’s such a useful feature I don’t know who wouldn’t want it on. Anyway, to enable it:

Remove the quotes from the line: “syntax on Write and Quit, done!

Jan 03

Raspbian: Going on a Diet (Remove X11)

I recently set up a pi to act as a dedicated headless server with a default install of Raspbian (from NOOBS). It is solely to serve information and a couple services. In that case, there are a lot of things that aren’t needed for a headless server. One of those things (and the biggest) is …

Continue reading »

Older posts «