Asterisk A200 Analog POTS Configuration

In this example we are using 4 FXS interfaces in a single A200d card.

  1. Create a /etc/wanpipe/wanpipeX.conf file for each A200 and A200d in your box. A sample wanpipeX.conf for A200d shows the output of the wancfg program. When configuring Asterisk spans, the zaptel interfaces must be assigned to a contiguous block of TDMV_SPAN numbers in the range 1..n. The interfaces for TDMV_SPAN 1..n must be brought up in the order of their assigned TDMV_SPAN number. The TDMV_SPAN number is also the zaptel span number.
  2. Start the A200 wanpipes now to ensure the configuration so far is correct. Take a look at an example of the /var/log/messages output during the start of an A200d so you'll know what to expect.
  3. Stop the A200 wanpipes.
  4. Configure Asterisk to use the A200 interfaces. Note that FXS ports are configured to expect and respond to the FXO signaling protocol.
    1. If you have a set of template configuration files for Asterisk, they should be placed in /etc/asterisk now.
    2. /etc/zaptel.conf
      loadzone=us
      defaultzone=us
      fxols=1-4
      For more help with configuring zaptel.
    3. /etc/asterisk/zapata.conf
      [channels]
      
      echocancel=yes
      echocancelwhenbridged=yes
      
      context=fxs-ports
      signalling=fxo_ls
      
      callerid=>2121113331
      channel=>1
      callerid=>2121113332
      channel=>2
      callerid=>2121113333
      channel=>3
      callerid=>2121113334
      channel=>4
    4. /etc/asterisk/extensions.conf
      [analog-lines]
      exten => 1113331,1,Dial(Zap/1)
      exten => 1113332,1,Dial(Zap/2)
      exten => 1113333,1,Dial(Zap/3)
      exten => 1113334,1,Dial(Zap/4)
      
      [fxs-ports]
      include => analog-lines
      For more information on Asterisk dialplan setup.
  5. tail -f /var/log/messages&
  6. Start the A200(d) wanpipe being configured: wanrouter start wanpipe1
  7. Run ztcfg to read the zaptel.conf file and make the channels available to Asterisk.
    [root@b3 etc]# ztcfg -vvv
    
    Zaptel Configuration
    ======================
    
    
    Channel map:
    
    Channel 01: FXO Loopstart (Default) (Slaves: 01)
    Channel 02: FXO Loopstart (Default) (Slaves: 02)
    Channel 03: FXO Loopstart (Default) (Slaves: 03)
    Channel 04: FXO Loopstart (Default) (Slaves: 04)
    
    4 channels configured.
  8. Start Asterisk interactively or in background. You will observe the following messages in /var/log/messages:
    Oct  3 15:25:14 b3 kernel: wanpipe1: Open (usecount=1, channo=1, chanpos=1)...
    Oct  3 15:25:14 b3 kernel: wanpipe1: Open (usecount=2, channo=2, chanpos=2)...
    Oct  3 15:25:14 b3 kernel: wanpipe1: Open (usecount=3, channo=3, chanpos=3)...
    Oct  3 15:25:14 b3 kernel: wanpipe1: Open (usecount=4, channo=4, chanpos=4)...
    
  9. Make calls between the ports using the associated numbers shown above in extensions.conf to verify successful completion of this configuration.
  10. Repeat for all other A200(d) in the system making changes to parameters as required.

Created by: mike last modification: Wednesday 18 of October, 2006 [18:14:12 UTC] by mike

The original document is available at http://www.ss7box.com/tiki-index.php?page=Asterisk%20A200%20Analog%20POTS%20Configuration