Angelo’s blog

A systems administrator’s diary
  • rss
  • Home
  • About me
  • Computers
  • Bibliography
  • Guides
    • IPSec VPN using FreeBSD
    • Setting up OpenVPN using radius on FreeBSD
    • Protect OWA using a reverse proxy
    • Monitoring a Windows machine with extended counters
  • Résumé

Asterisk and 2 ISDN cards

January 19, 2007 | 12:24 pm

rommelhokI’ve been working on a project for quite some time now, and I’ve been making quite some progress.

My goal is to create a box that I can hook up between our existing (and expensive) Panasonic PBX and the PSTN, leveraging the benefits of VoIP and the flexibility of Asterisk, while preserving our investment and ease of use of the Panasonic PBX and phones.

Every now and then when I had some spare time, I worked on getting Asterisk to work with 2 ISDN cards, and I finally got it working. I was using a simple HFC-S card and a Dynalink IS64PH card, but I had some problems getting them to work in FreeBSD. I don’t think it’s a FreeBSD problem, just my lack of understanding of all these complicated ISDN thingies, and the lack of newbie-documentation wasn’t helping. 

So I installed Debian, since there’s a bit more documentation, and multiple frameworks (don’t know if that’s a good thing or a bad thing though). I first had to figure out the difference between isdn4linux, hisax, chan_isdn, and mISDN, and how they work together. Eventually, I got everything working, but the machine was bloated with different types of ISDN frameworks and software, different version of custom kernels, and too much unused crap. One card worked in hisax, one in mISDN, etc.

The next day, I bought 2 similar Sitecom DC-105 adapters for EUR 25 each. They use the HFC-S chipset as well, and they should work out of the box with mISDN. And besides that, if I want to replicate my configuration, I can just buy some more of these same cards, and use my existing config.

I installed the two new cards, slapped a clean install of Debian testing on the machine, recompiled the kernel, and installed mISDN and Asterisk 1.4, all in an hour or so (I had quite some practise the day before). Actually, it’s quite easy once you understand how mISDN works and how it cooperates with Asterisk.

I set one card to use TE mode, connecting to the public telephone network, and one cart in NT mode, connected with a cross cable to a NT1, and an ISDN phone connected to the NT1. Changing modes is done by just changing a simple value in the mISDN config file. Asterisk picks this up, and you can configure the ports quite easily in misdn.conf.

Now the hardware and the channels are all configured, I can start testing and developing the dial plan, the heart of Asterisk. I’ve allready got IAX softphones connected, some MP3 files for music on hold, now it’s playtime!

Comments
No Comments »
Categories
Linux/Unix
Comments rss Comments rss
Trackback Trackback

Pages

  • Guides
    • IPSec VPN using FreeBSD
    • Monitoring a Windows machine with extended counters
    • Protect OWA using a reverse proxy
    • Setting up OpenVPN using radius on FreeBSD

Categories

  • Games
  • Hardware
  • Linux/Unix
  • Mac
  • Microsoft
  • Misc
  • Security/privacy
  • Virtualization

Archives

  • February 2010
  • March 2009
  • November 2008
  • June 2008
  • February 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • May 2007
  • March 2007
  • February 2007
  • January 2007
  • December 2006
  • October 2006

Friends' sites

  • ErwinK’s site
  • Jef’s site
  • Judith’s site

Work

  • NetMatch
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox