This is TikiWiki 1.9.7 -Sirius- © 2002–2006 by the Tiki community Thu 20 of Dec, 2007 [16:12 UTC]

History: Asterisk A200 Analog POTS Configuration

Source of version: 33 (current)

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

#[http://wiki.sangoma.com/wanpipe-asterisk-configure#a200|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.
#Start the A200 wanpipes now to ensure the configuration so far is correct. Take a look at an example of the /var/log/messages ((A200dStartMsgs|output during the start of an A200d)) so you'll know what to expect.
#Stop the A200 wanpipes.
#Configure Asterisk to use the A200 interfaces. Note that FXS ports are configured to expect and respond to the FXO signaling protocol.
##If you have a set of template configuration files for Asterisk, they should be placed in /etc/asterisk now.
##/etc/zaptel.conf~pp~loadzone=us
defaultzone=us
fxols=1-4~/pp~[http://www.voip-info.org/tiki-index.php?page=Asterisk+config+zaptel.conf|For more help with configuring zaptel.]
##/etc/asterisk/zapata.conf~pp~[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~/pp~
##/etc/asterisk/extensions.conf~pp~[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~/pp~[http://www.voip-info.org/wiki-Asterisk+config+extensions.conf|For more information on Asterisk dialplan setup.]
#tail -f /var/log/messages&
#Start the A200(d) wanpipe being configured: wanrouter start wanpipe1
#Run ztcfg to read the zaptel.conf file and make the channels available to Asterisk.~pp~[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.~/pp~
#Start Asterisk interactively or in background. You will observe the following messages in /var/log/messages:~pp~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)...
~/pp~
#Make calls between the ports using the associated numbers shown above in extensions.conf to verify successful completion of this configuration.
#Repeat for all other A200(d) in the system making changes to parameters as required.


Menu [hide]
Toggle  Wiki
Powered by TikiWiki Powered by PHP Powered by Smarty Powered by ADOdb Made with CSS Powered by RDF
RSS Wiki
[ Execution time: 1.05 secs ]   [ Memory usage: Unknown ]   [ 16 database queries used ]   [ GZIP Disabled ]   [ Server load: 6.43 ]