Installing a Digium TE110P card in a Trixbox

The first thing to do is to download the latest, correct driver for the card. The instructions to download and install the driver for the card are found here: http://www.digium.com/en/docs/misc/quick_install_zaptel_asterisk.pdf

To download the latest release from Digium’s FTP server:

 

# cd /usr/src

# wget http://ftp.digium.com/pub/zaptel/\

zaptel-1.2-current.tar.gz

# wget http://ftp.digium.com/pub/libpri/\

libpri-1.2-current.tar.gz

# wget http://ftp.digium.com/pub/asterisk/\

asterisk-1.2-current.tar.gz

# tar zxvf *current.tar.gz ./

 

To check out code from Digum’s SVN servers:

 

# cd /usr/src

# svn co http://svn.digium.com/svn/zaptel/branches/\

1.2 zaptel-1.2

# svn co http://svn.digium.com/svn/libpri/branches/\

1.2 libpri-1.2

# svn co http://svn.digium.com/svn/asterisk/\

branches/1.2 asterisk-1.2

To build and install:

# cd zaptel-1.2

# make install

# cd ../libpri-1.2

# make install

# cd ../asterisk-1.2

# make install

When installing the TE110P card inside an asterisk or Trixbox installation is to check the jumper setting. If you are going to connect the TE110p to a T1 line, then the jumper is correctly set at the default. Otherwise, if you are going to connect it to an E1 line, you need to enable the jumper.

Here is the picture of where you can find the jumper. (source: http://www.digium.com/en/docs/TE110P/te110p_config.php)

Digium TE110P

 

 

 

Then install the card inside the server.

Go out and buy the book “Asterisk for Dummies by Stephen Olejniczak and Brady Kirby ” and follow the instructions there from pages 45 to 54. The book was a great resource for me. However, for a non –unix professional like me, I needed to do extra research to find out the location of certain files, notably, ztcfg, zaptel.conf and Zapata.conf before I could follow them.

In brief, these are the steps:

 

  1. Login to the server, and then su –
  2. Go to the root of the server and issue the command ztcfg –vv
  3. Examine the output:

    [root@asterisk1 /]# ztcfg -vvv

     

    Zaptel Configuration

    ======================

     

     

    Channel map:

     

    Channel 01: FXO unconfigured (or something like this… i wasn’t able to save the screen shot)

    Channel 02: FXO unconfigured

    Channel 03: FXO unconfigured

    Channel 04: FXO unconfigured

    And so on…

 

  1. Modify the file /etc/zaptel.conf

    Cd /etc

    Vi zaptel.conf

     

    Hit i to insert:

     

    Add these lines:

     

    fxoks=1-31

    loadzone=us

    defaultzone=us

     

    then hit the esc, then : then x to save the file

     

    Notes:

    (i have yet to figure out which one is the control port)

    (Ks stands for kewlstart)

    (Fxo means we need to plug in the pstn line)

     

 

  1. Issue “modprobe wcte11xp”
  2. Re-examine ztcfg –vv

    Zaptel Configuration

    ======================

     

     

    Channel map:

     

    Channel 01: FXO Kewlstart (Default) (Slaves: 01)

    Channel 02: FXO Kewlstart (Default) (Slaves: 02)

    Channel 03: FXO Kewlstart (Default) (Slaves: 03)

    Channel 04: FXO Kewlstart (Default) (Slaves: 04)

    Channel 05: FXO Kewlstart (Default) (Slaves: 05)

    Channel 06: FXO Kewlstart (Default) (Slaves: 06)

    Channel 07: FXO Kewlstart (Default) (Slaves: 07)

 

  1. Modify /etc/asterisk/Zapata.conf

    Signalling=fxo_ks

    Channel=>1-31

 

  1. Then in the url (use a browser) go to admin of trixbox, under Asterisk/FreePBX/setup/add trunk
  2. Define trunk for g1 (maximum 30 channels)

Now all we need is to test it out by hooking up an actual e1/r2 line!