tdm400p

Hi

i have: debian4, asterisk, freepbx, tdm400p with 2 fxo modules (red ones) all pretty ftraight forward.
everything is up runnign except the tdm400pc card. both led on the backs are lighted up, drivers are loaded etc.
my prob is:
what do i need to do to:
a)#############################################################
/etc/zaptel:

Autogenerated by /usr/sbin/genzaptelconf – do not hand edit

Zaptel Configuration File

This file is parsed by the Zaptel Configurator, ztcfg

It must be in the module loading order

Span 1: WCTDM/0 “Wildcard TDM400P REV I Board 1”

channel 1, WCTDM, no module.

channel 2, WCTDM, no module.

fxsks=3
fxsks=4

Global data

loadzone = us
defaultzone = us
b)#############################################################
/etc/zaptel-channels.conf
; Autogenerated by /usr/sbin/genzaptelconf – do not hand edit
; Zaptel Channels Configurations (zapata.conf)
;
; This is not intended to be a complete zapata.conf. Rather, it is intended
; to be #include-d by /etc/zapata.conf that will include the global settings
;

; Span 1: WCTDM/0 "Wildcard TDM400P REV I Board 1"
signalling=fxs_ks
callerid=asreceived
mailbox=
group=0
context=from-pstn
;;; line="3 WCTDM/0/2 FXSKS"
busydetect=no
channel => 3

signalling=fxs_ks
callerid=asreceived
mailbox=
group=0
context=from-pstn
;;; line="4 WCTDM/0/3 FXSKS"
busydetect=no
channel => 4
c)###########################################################
/etc/zapata.conf
;# Flash Operator Panel will parse this file for zap trunk buttons
;# AMPLABEL will be used for the display labels on the buttons

;# %c Zap Channel number
;# %n Line number
;# %N Line number, but restart counter
;# Example:
;# ;AMPLABEL:Channel %c - Button %n

;# For Zap/* buttons use the following
;# (where x=number of buttons to dislpay)
;# ;AMPWILDCARDLABEL(x):MyLabel

[channels]
language=en

; include zap extensions defined in AMP
#include zapata_additional.conf

; XTDM20B Port #1,2 plugged into PSTN
;AMPLABEL:Channel %c - Button %n
context=from-pstn
signalling=fxs_ks
faxdetect=incoming
usecallerid=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
group=0
channel=3-4
#whereby zapata.conf (the original one is super long and contains all possible settings.
################################################

so, i dont know whet exaclty i need to set it up with an outgoing trunk, every help is really appreciated!!!

thx

Go to FreePBX trunks page and set up Zap trunks 3 and 4. If you have a trunk g0 in there, I would delete it.

Then go to the Zap Channel DID page and set DID’s for both of them. Then go to inbound routes and route the DID’s to where you want them to ring.

That should do it.

To use the Zap Channel DID option John mentions you need to install the module and make one more change…

you need to change the context from from-pstn to from-zaptel for it to work (see the Zap Channel DID’s module page). when you do this ou will need to force a complete reload of asterisk and the zaptel interface but it will then work.