This is TikiWiki 1.9.7 -Sirius- © 2002–2006 by the
Tiki community
Thu 20 of Dec, 2007 [16:11 UTC]
|
In this example we are using 4 FXS interfaces in a single A200d card.
- 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 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
loadzone=us
defaultzone=us
fxols=1-4 For more help with configuring zaptel.
- /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
- /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.
- 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.
[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.
- 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)...
- 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.
Created by: mike
last modification: Wednesday 18 of October, 2006 [18:14:12 UTC] by mike
|
|
[ Execution time: 0.88 secs ] [ Memory usage: Unknown ] [ 25 database queries used ] [ GZIP Disabled ] [ Server load: 4.60 ]