Upgrade 3CX to v18 and get it hosted free!

Asterisk Linksys NSLU2

Author image

Asterisk on Linksys NSLU2

The Linksys NSLU2 (Network Storage Link for USB 2.0 Disk Drives) is a Network-attached storage (NAS) device that has user-modifable firmware.

As usual there’s more than just one way to play with Linux (and Asterisk) on a slug:

Unslung
Asterisk is available now for Linksys NSLU2 using customized firmware.

OpenSlug
This includes a description of how to get a HFC-S USB ISDN adapter working – how neat!

“Unslung” Installation

This is a step for step guide for enabling Asterisk in your Linksys NSLU2 (“Slug”).
Following the guide will not change the default features of your device, it will just add some nice functionality to it.

Prerequisites

The firmware IS required. You will NOT get the steps below working if you use the stock firmware.
The firmware on your device can be upgraded using the web interface. Please consult your users manual
for details.

Unslung it

Follow the instructions for replacing the ramdisk by a physical filesystem on an external drive. You should not try to install packages with the default ramdisk. If you do not want to install a harddisk drive you can use an USB-stick instead.

Install Asterisk package

/opt/bin/ipkg update < enter >
/opt/bin/ipkg install asterisk < enter >

Now you can put your asterisk configuration files at /opt/etc/asterisk. You can find sample configuration files (which are NOT optimized for embedded devices!!) at /opt/etc/asterisk/sample

Due to the limited resources on embedded devices, it is recommended to reduce the footprint of Asterisk by eliminating unneeded modules, see Asterisk Slimming

Start Asterisk

/opt/sbin/asterisk -cvvv

Provisioning a Cisco 79XX Phone with the NSLU2

Since the NSLU2 can act as a TFTP and HTTP server, it makes a great platform for a small Asterisk system that can also provision IP phones such as the Cisco 79XX series. With such a setup you can have a shared dialing directory, centralised configuration, custom ring-tones, custom screen backgrounds, MWI (message waiting indicators) and many other goodies. You can find additional information about configuring the NSLU2 to provision a Cisco 7940 (similar for all 79XX series) here: http://www.ambor.com/public/home_pabx/home_pabx.html.

In addition, further information about configuring Cisco 79XX phones are located on this site.

Limitations

Currently the codecs g723, iLBC and g729 are not supported (would require floating point processor/emulation or would have to be replaced by an integer implementation of the codec).
The performance is sufficient for home/SOHO use – eg. a few lines using SIP and IAX. The slug’s IXP400 should have enough horse power for a home PBX with up to 4 lines, when less CPU intensive codecs (like GSM and 711u) are used.

See Also:


Go back to Asterisk


Article Reviews

Write a Review

Your email address will not be published. Required fields are marked *

Required Field. Minimum 5 characters.

Required Field. Minimum 5 characters, maximum 50.

Required field.There is an error with this field.

Required Field.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

There are no reviews for this article. Be the first one to write a review.

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.