Not trunks shown

I’m using asterisk now 1.5 beta 2
asterisk version 1.4.24
free PBX 2.5.1.2
with 3 tdm400p all FXO modules
my chan_dahdi.conf is:
;# Flash Operator Panel will parse this file for dahdi trunk buttons
;# AMPLABEL will be used for the display labels on the buttons

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

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

[channels]
language=en

; include dahdi extensions defined in FreePBX
#include chan_dahdi_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=yes
echotraining=800
group=0
channel=1-12

my dahdi system.conf looks like this

DAHDI Configuration File

This file is parsed by the DAHDI Configurator, dahdi_cfg

Span Configuration

^^^^^^^^^^^^^^^^^^

First come the span definitions, in the format

span=,,<line build out (LBO)>,,[,yellow]

All T1/E1/BRI spans generate a clock signal on their transmit side. The

parameter determines whether the clock signal from the far

end of the T1/E1/BRI is used as the master source of clock timing. If it is, our

own clock will synchronise to it. T1/E1/BRI connected directly or indirectly to

a PSTN provider (telco) should generally be the first choice to sync to. The

PSTN will never be a slave to you. You must be a slave to it.

Choose 1 to make the equipment at the far end of the E1/T1/BRI link the preferred

source of the master clock. Choose 2 to make it the second choice for the master

clock, if the first choice port fails (the far end dies, a cable breaks, or

whatever). Choose 3 to make a port the third choice, and so on. If you have, say,

2 ports connected to the PSTN, mark those as 1 and 2. The number used for each

port should be different.

If you choose 0, the port will never be used as a source of timing. This is

appropriate when you know the far end should always be a slave to you. If

the port is connected to a channel bank, for example, you should always be

its master. Likewise, BRI TE ports should always be configured as a slave.

Any number of ports can be marked as 0.

Incorrect timing sync may cause clicks/noise in the audio, poor quality or failed

faxes, unreliable modem operation, and is a general all round bad thing.

The line build-out (or LBO) is an integer, from the following table:

0: 0 db (CSU) / 0-133 feet (DSX-1)

1: 133-266 feet (DSX-1)

2: 266-399 feet (DSX-1)

3: 399-533 feet (DSX-1)

4: 533-655 feet (DSX-1)

5: -7.5db (CSU)

6: -15db (CSU)

7: -22.5db (CSU)

If the span is a BRI port the line build-out is not used and should be set

to 0.

framing::

one of ‘d4’ or ‘esf’ for T1 or ‘cas’ or ‘ccs’ for E1. Use ‘ccs’ for BRI.

‘d4’ could be referred to as ‘sf’ or ‘superframe’

coding::

one of ‘ami’ or ‘b8zs’ for T1 or ‘ami’ or ‘hdb3’ for E1. Use ‘ami’ for

BRI.

* For E1 there is the optional keyword ‘crc4’ to enable CRC4 checking.

* If the keyword ‘yellow’ follows, yellow alarm is transmitted when no

channels are open.

#span=1,0,0,esf,b8zs
#span=2,1,0,esf,b8zs
#span=3,0,0,ccs,hdb3,crc4

Dynamic Spans

^^^^^^^^^^^^^

Next come the dynamic span definitions, in the form:

dynamic=,,,

Where is the name of the driver (e.g. eth), is the

driver specific address (like a MAC for eth), is the number

of channels, and is a timing priority, like for a normal span.

use “0” to not use this as a timing source, or prioritize them as

primary, secondard, etc. Note that you MUST have a REAL DAHDI device

if you are not using external timing.

dynamic=eth,eth0/00:02:b3:35:43:9c,24,0

If a non-zero timing value is used, as above, only the last span should

have the non-zero value.

Channel Configuration

^^^^^^^^^^^^^^^^^^^^^

Next come the definitions for using the channels. The format is:

=

Valid devices are:

e&m::

Channel(s) are signalled using E&M signalling (specific

implementation, such as Immediate, Wink, or Feature Group D

are handled by the userspace library).

fxsls::

Channel(s) are signalled using FXS Loopstart protocol.

fxsgs::

Channel(s) are signalled using FXS Groundstart protocol.

fxsks::

Channel(s) are signalled using FXS Koolstart protocol.

fxols::

Channel(s) are signalled using FXO Loopstart protocol.

fxogs::

Channel(s) are signalled using FXO Groundstart protocol.

fxoks::

Channel(s) are signalled using FXO Koolstart protocol.

sf::

Channel(s) are signalled using in-band single freq tone.

Syntax as follows:

channel# => sf:,,,,,

rxfreq is rx tone freq in Hz, rxbw is rx notch (and decode)

bandwith in hz (typically 10.0), rxflag is either ‘normal’ or

‘inverted’, txfreq is tx tone freq in hz, txlevel is tx tone

level in dbm, txflag is either ‘normal’ or ‘inverted’. Set

rxfreq or txfreq to 0.0 if that tone is not desired.

unused::

No signalling is performed, each channel in the list remains idle

clear::

Channel(s) are bundled into a single span. No conversion or

signalling is performed, and raw data is available on the master.

bchan::

Like ‘clear’ except all channels are treated individually and

are not bundled. ‘inclear’ is an alias for this.

rawhdlc::

The DAHDI driver performs HDLC encoding and decoding on the

bundle, and the resulting data is communicated via the master

device.

dchan::

The DAHDI driver performs HDLC encoding and decoding on the

bundle and also performs incoming and outgoing FCS insertion

and verification. ‘fcshdlc’ is an alias for this.

hardhdlc::

The hardware driver performs HDLC encoding and decoding on the

bundle and also performs incoming and outgoing FCS insertion

and verification. Is subject to limitations and support of underlying

hardware. BRI spans serviced by the wcb4xxp driver must use hardhdlc

channels for the signalling channels.

nethdlc::

The DAHDI driver bundles the channels together into an

hdlc network device, which in turn can be configured with

sethdlc (available separately). In 2.6.x kernels you can also optionally

pass the name for the network interface after the channel list.

Syntax:

nethdlc=[:interface name]

Use original names, don’t use the names which have been already registered

in system e.g eth.

dacs::

The DAHDI driver cross connects the channels starting at

the channel number listed at the end, after a colon

dacsrbs::

The DAHDI driver cross connects the channels starting at

the channel number listed at the end, after a colon and

also performs the DACSing of RBS bits

The channel list is a comma-separated list of channels or ranges, for

example:

1,3,5 (channels one, three, and five)

16-23, 29 (channels 16 through 23, as well as channel 29)

So, some complete examples are:

e&m=1-12

nethdlc=13-24

fxsls=25,26,27,28

fxols=29-32

An example of BRI port:

span=1,1,0,ccs,ami

bchan=1,2

hardhdlc=3

NOTE: When using BRI channels in asterisk, use the bri_cpe, bri_net, or

bri_cpe_ptmp (for point to multipoint mode). libpri does not currently

support point to multipoint when in NT mode. Otherwise, the bearer channel

are configured identically to other DAHDI channels.

fxsks=1-12
#bchan=25-47
#dchan=48
#fxols=1-12
#fxols=13-24
#e&m=25-29
#nethdlc=30-33
#clear=44
#clear=45
#clear=46
#clear=47
#fcshdlc=48
#dacs=1-24:48
#dacsrbs=1-24:48

Tone Zone Data

^^^^^^^^^^^^^^

Finally, you can preload some tone zones, to prevent them from getting

overwritten by other users (if you allow non-root users to open /dev/dahdi/*

interfaces anyway. Also this means they won’t have to be loaded at runtime.

The format is “loadzone=” where the zone is a two letter country code.

You may also specify a default zone with “defaultzone=” where zone

is a two letter country code.

An up-to-date list of the zones can be found in the file zonedata.c

loadzone = us
#loadzone = us-old
#loadzone=gr
#loadzone=it
#loadzone=fr
#loadzone=de
#loadzone=uk
#loadzone=fi
#loadzone=jp
#loadzone=sp
#loadzone=no
#loadzone=hu
#loadzone=lt
#loadzone=pl
defaultzone=us

and when I go to my frepbx panel no trunk shows what am I doing wrong?
Then I go to asterisk cli>show channels
Asterisk 1.4.24, Copyright © 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer [email protected]
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.

Connected to Asterisk 1.4.24 currently running on h-67-102-234-61 (pid = 3423)
Verbosity is at least 3
h-67-102-234-61CLI> show channels
Channel Location State Application(Data)
0 active channelsLI>
0 active calls1
CLI>

that is what it shows

[xxxxxxxxxxx ~]# service dahdi start
Loading DAHDI hardware modules:
wct4xxp: [ OK ]
wcte12xp: [ OK ]
wct1xxp: [ OK ]
wcte11xp: [ OK ]
wctdm24xxp: [ OK ]
wcfxo: [ OK ]
wctdm: [ OK ]
wcb4xxp: [ OK ]
wctc4xxp: [ OK ]
xpp_usb: [ OK ]

Running dahdi_cfg:

now It shows after rebooting 2 times but I cant make any calls the the dahdi_cfg -vv
shows:
Channel map:

Channel 01: FXS Kewlstart (Default) (Slaves: 01)
Channel 02: FXS Kewlstart (Default) (Slaves: 02)
Channel 03: FXS Kewlstart (Default) (Slaves: 03)
Channel 04: FXS Kewlstart (Default) (Slaves: 04)
Channel 05: FXS Kewlstart (Default) (Slaves: 05)
Channel 06: FXS Kewlstart (Default) (Slaves: 06)
Channel 07: FXS Kewlstart (Default) (Slaves: 07)
Channel 08: FXS Kewlstart (Default) (Slaves: 08)
Channel 09: FXS Kewlstart (Default) (Slaves: 09)
Channel 10: FXS Kewlstart (Default) (Slaves: 10)
Channel 11: FXS Kewlstart (Default) (Slaves: 11)
Channel 12: FXS Kewlstart (Default) (Slaves: 12)

12 channels to configure.

Please help

also on my reports doesn’t show anything and I made some incoming SIp calls

as soon as I deleted my zap/extension the 12 trunks came back to my panel display but still I can’t dial out