Upgrade 3CX to v18 and get it hosted free!

Asterisk Linux Slackware

Author image

Image

Why Slackware?
Slackware inherits the qualities of the Linux kernel, GNU utilities and all the products of the open source community, qualities shared by all Linux distributions, but it is found to be more stable, solid, simple and sensible than any of the other distributions. This is what we call “the 4S rule”, which explains why Slackware is an operating system of choice for a broad range of applications.

Asterisk on Slackware

Simply put, it runs great; Pretty much every feature will work right out of the box. And what doesn’t, well this page will provide tips on how to fix the problems.

Installation Guides

Here are 2 great guides to get you on your way with Asterisk.

Solutions

Start-up
There is now a startup script located in the contrib/init.d folder.
{CODE()}

  1. cp /usr/src/asterisk/contrib/init.d/rc.slackware.asterisk /etc/rc.d/rc.asterisk
  2. chmod 755 /etc/rc.d/rc.asterisk

{/CODE}
Music on Hold (mpg123 support missing)
Problem solved! I found that Asterisk is calling mpg123 to playback mp3’s which isn’t installed on Slackware 9.1 by default. Downloaded mpg123 source from http://www.mpg123.de/ and compiled with make linux; make install and now working.

(Better Solution): mpg321, designed as a drop-in replacement for mpg123, is the default application installed in Slackware. When MOH calls mpg123, which is actually a symlink in the default Slackware installation, mpg321 is called.

mpg321 doesn’t work with the MOH features, so the “Correct” way to get music on hold (MOH) to work is to:

1.) d/l and install the mpg123 package by browsing for it
a.) you can do a “wget ftp://ftp.cerias.purdue.edu/pub/os/slackware/slackware-current/extra/mpg123-0.59r/mpg123-0.59r-i386-1.tgz”, for example,
if Purdue University is a good choice for you (depending upon your location 😉 ).
b.) as root, and from the directory which you d/l’d the mpg123 package into, perform the following:
i.) type “pkgtool” on the command line ==>choose “remove” packages ==> scroll to locate, and select mpg321 and remove it.
ii.) now choose “current” from the list and you will see the mpg123-0.59r-i386-1.tgz package ==> install it.
2.) mpg123 is now installed correctly, and your MOH will now work 🙂

3.) This is a much cleaner, and also the preferred methodology for installing mpg123 on Slackware to get the MOH to work. Compiling and installing by hand is not recommended, unless you want both mpg123 and mpg321 installed on your system – if this is the case (WHY?), then simply remove the symlink for mpg123 which points to the mpg321 executable, and compile/install mpg123 from source.
(/Better Solution)


Asterisk | Asterisk OS Platforms

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.