Graves On SOHO Technology

End User Perspective On Home Office Technology
  • rss
  • Home
  • About
    • Contact
    • Advertisers
    • Disclosure
  • Guides & How-To’s
  • Product Reviews
  • Best of…
  • Raves
  • Works In Progress
  • My Personal Blog

How To: Building an Embedded Asterisk PBX

mjgraves | January 11, 2008

This article was originally published at www.smallnetbuilder.com.

Michael Graves
January 13, 2006

The Asterisk open source Voice over IP (VoIP) PBX is usually set up on a standalone PC. But Michael Graves shows how the combination of a special Asterisk distribution and a single board computer can provide a compact, quiet and low-power alternative.

Introduction

Astlinux is a bundled distribution of the Asterisk open source iPBX private branch exchange (PBX) software and a Linux operating system. Originally developed by Mark Spencer at Digium, Asterisk is the leading open source software in the telephony/VoIP space. Asterisk excels at combining traditional TDM telephony capability – provided through hardware from Digium and others – with VOIPservices. These include call routing, media gateway, media server and SIP signaling capabilities.

soekris astlinus beauty shot 440r2 How To: Building an Embedded Asterisk PBX

The Asterisk user community has been growing tremendously over the past two years, especially since the v1.0 release in the fall of 2004. With that growth has come the development of new distributions that bundle suites of software tools, to ease the setup and administration of a new Asterisk system. Asterisk@Home and Xorcom Rapid are both fine examples of this sort of activity.

Astlinux was developed by Kristian Kielhofner, and intended to go in a fundamentally different direction. Astlinux provides an Asterisk installation on a Linux distribution that has been built from scratch and optimized for small format hardware platforms – it takes what is essentially an embedded systems approach to Linux and Asterisk. In this article, I’ll show you how to build an VoIP PBX using Astlinux and a Soekris Net4801 single board computer (SBC).

Astlinux

Working largely on his own, Kristian has gone to great lengths to get the combination of the OS and Asterisk down to a mere 26 MB boot image. This opens up many possibilities in the design of the hardware, such as booting from small compact flash cards or USB memory keys. While keeping the size of the system to a minimum, Astlinux includes the following features:

  • Linux kernel 2.6.11.7
  • dnsmasq
  • Watchdog (busybox)
  • ssmtp
  • cron (busybox)
  • bash
  • busybox (and everything with it…)
  • TFTP server
  • vsftpd server
  • mini_httpd (with SSL)
  • PHP in CGI mode (patched for above)
  • OpenSSH
  • OpenSSL
  • NTP (ntpdate, ntpq, ntpd)
  • syslog (busybox with remote log support)
  • vi (from busybox)
  • tc (kernel traffic shaping)
  • iptables
  • phpconfig-like Asterisk GUI
  • Asterisk
  • AstShape, a QoS/traffic shaping script
  • rsync
  • nfs-utils (kernel modules and userspace tools for NFS support)
  • Sangoma WanPIPE driver use with Sangoma T-1 hardware
  • Zaptel drivers for Digium TDM hardware
  • working ztdummy (zaptel timing source without zaptel hardware)
  • libpri
  • Asterisk Manager Proxy

Don’t be too worried if some of these don’t mean anything to you. Astlinux is focused on providing only those things in the OS that are necessary to support the normal operation and administration of Asterisk. For example, email support is provided so that voicemail messages can be forwarded via email like any normal Asterisk installation. The inclusion of ztdummy allows for both MeetMe conferencing and music-on-hold, without requiring a Digium card for a hardware timebase reference. While the list of required supporting services may appear long, the idea is very simple – create a very small Linux and Asterisk installation that supports common telephony hardware, and once configured, behaves like an appliance.

Share this:

Pages: 1 2 3 4 5 6

Categories
Asterisk, Embedded Systems, VoIP
Tags
Asterisk, embedded, QoS, router, Soekris, VoIP
Comments rss
Comments rss
Trackback
Trackback

« Successful VOIP Over DSL, Part 4: Traffic Shaping When The Lights Go Down »

  • Pingback: Windows Update Alternative » How To: Building an Embedded Asterisk PBX

  • Pingback: What Interests You? « Clearing My Head

  • Pingback: Jessie

  • http://www.trickylinux.com Steven Russo

    Hey awesome blog! Know anyone who would be interested in part time admin’ing a Linux box? Hit me up!

  • Dmitriy

    It’s very interesting for me, do you have any practical use for your home Asterisk server? Why you aren’t using any hosted PBX?

    • mjgraves

      Oh, yes. Between our home lines and my home office needs we put the little Asterisk system to good use. However, this article was originally written in late 2005. Since then I have migrated to using a hosted IP-PBX for most things. I still have a small Asterisk system on-hand as a testbed.

      It may come more into service if ever I complete my home automation project. I’d like to be able to remotely turn things off/on/open/close by way of DTMF as well as other methods, like the LCDs on my Polycom phones.

  • http://services.jupitersupport.com/pc-tune-up-service.html PC Tune Up Service

    Great. Really its very interesting.

  • Zippys123

    Hi after days of searching web i found your site really helpful i am from India can you suggest any low cost IVRS solution for our small business i find digium analog cards very expensive is there anyway for analog card IVRS solution please give me a solution

My Tweets

  • I'm hearing Alice Cooper. "The @Twelephone is ringing, you got me on the run...." 9 hours ago
  • I'm listening to Wind Him Up by Saga on Pandora bit.ly/WnvTTQ #pandora 10 hours ago
  • One nice feature of the home office; the ability to turn the music up LOUD when required. #fb 10 hours ago
  • New Blog Post: Live From Las Vegas! We’re Now Hosted At Lightning Base In Las Vegas!: This is the fourth install... bit.ly/SHr8TY 1 day ago
  • Anyone want to try a @voxeet test call in a short while? 1 day ago

Recent Comments

  • mjgraves on Live From Las Vegas! We’re Now Hosted At Lightning Base In Las Vegas!
  • Sean on Live From Las Vegas! We’re Now Hosted At Lightning Base In Las Vegas!
  • mjgraves on Live From Las Vegas! We’re Now Hosted At Lightning Base In Las Vegas!
  • Greg on Live From Las Vegas! We’re Now Hosted At Lightning Base In Las Vegas!
  • William on Aastra 6730i: The Most Affordable HDVoice Capable Desk Phone?

Making A Difference


Change a life.

Ideas worth sharing, expressed hereabouts.


Radio For Peace in Houston.

Popular Posts

  • Review: The Gigaset A580IP SIP/DECT Cordless Phone System
  • Updated Home-Office Network Diagram
  • How To: DIY Music Server Using FreeNAS, SlimNAS and an H-P T5700
  • Magic Jack Hacked For Use As An Asterisk Trunk
  • D.I.Y. Asterisk Appliances: A Question Of Scale
  • Review: The Polycom SoundStation IP5000 Conference Phone
  • Gigaset Firmware Update Released
  • Review: Polycom SoundPoint IP335 Entry Level HDVoice IP Phone
  • How To: Building an Embedded Asterisk PBX
  • Polycom SoundPoint IP 550 / IP 650 Reviewed

Tags

3G Android apple Asterisk Astlinux Audio blog bluetooth Broadband CATiq cellular codec conference cordless DECT DSL G.722 gateway Gigaset gsm HD hdvoice headset hp M3 music onsip phone plantronics polycom QoS siemens sip skype SNOM soft phone speakerphone t-mobile technology USB Video VoIP VUC wideband wifi

Colophon

This site is hosted by Lightning Base
using the magic of open source software and 100% recycled electrons.

Archives

  • ▼2012 (69)
    • ►December (4)
    • ►November (9)
    • ►October (1)
    • ►September (3)
    • ►August (6)
    • ►July (5)
    • ►June (10)
    • ►May (9)
    • ►April (1)
    • ►March (5)
    • ►February (8)
    • ►January (8)
  • ►2011 (117)
    • ►December (5)
    • ►November (8)
    • ►October (9)
    • ►September (9)
    • ►August (11)
    • ►July (8)
    • ►June (11)
    • ►May (13)
    • ►April (8)
    • ►March (13)
    • ►February (10)
    • ►January (12)
  • ►2010 (160)
    • ►December (12)
    • ►November (7)
    • ►October (14)
    • ►September (10)
    • ►August (15)
    • ►July (16)
    • ►June (17)
    • ►May (15)
    • ►April (17)
    • ►March (16)
    • ►February (8)
    • ►January (13)
  • ►2009 (229)
    • ►December (16)
    • ►November (15)
    • ►October (13)
    • ►September (24)
    • ►August (23)
    • ►July (18)
    • ►June (16)
    • ►May (17)
    • ►April (22)
    • ►March (18)
    • ►February (21)
    • ►January (26)
  • ►2008 (296)
    • ►December (26)
    • ►November (23)
    • ►October (24)
    • ►September (26)
    • ►August (21)
    • ►July (32)
    • ►June (24)
    • ►May (16)
    • ►April (14)
    • ►March (29)
    • ►February (22)
    • ►January (39)
  • ►2007 (14)
    • ►December (8)
    • ►November (5)
    • ►October (1)

Meta

  • Register
  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.