TE110P on FreeBSD-6.3-PRERELEASE

Hello,

I installed Asterisk-1.4.11 from ports with Zaptel-1.4.6 on FreeBSD-6.3-PRERELEASE.

#uname -a
FreeBSD voip.boldsoft.mn 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #0: Thu Dec 6 12:18:12 ULAT 2007 root@voip.boldsoft.mn:/usr/obj/usr/src/sys/PBX i386

Interrupt information for TDM400 and TE110p cards

voip# dmesg |grep irq
ioapic0 <Version 2.0> irqs 0-23 on motherboard
agp0: <Intel 82865G (865G GMCH) SVGA controller> port 0xefa8-0xefaf mem 0xf0000000-0xf7ffffff,0xfeb80000-0xfebfffff irq 16 at device 2.0 on pci0
fxp0: <Intel 82801BA (D865) Pro/100 VE Ethernet> port 0xdb40-0xdb7f mem 0xfeaff000-0xfeafffff irq 20 at device 8.0 on pci1
atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf mem 0xfeb7fc00-0xfeb7ffff irq 18 at device 31.1 on pci0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: irq 1 on atkbdc0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio1: configured irq 3 not in bitmap of probed irqs 0
wcfxs0: port 0xdd00-0xddff mem 0xfeafd000-0xfeafdfff irq 22 at device 1.0 on pci1
wcfxs1: <Wildcard TDM400P REV E/F> port 0xde00-0xdeff mem 0xfeafe000-0xfeafefff irq 17 at device 2.0 on pci1
wcte11xp0: <Digium Wildcard TE110P T1/E1 Board> port 0xdc00-0xdcff mem 0xfeafc000-0xfeafcfff irq 21 at device 0.0 on pci1

voip# vmstat -i
interrupt total rate
irq1: atkbd0 3012 1
irq14: ata0 2470 1
irq15: ata1 48 0
irq17: wcfxs1 2102652 994
irq20: fxp0 6007 2
irq22: wcfxs0 2108258 997
cpu0: timer 4225318 1998
Total 8447765 3996

My zaptel.conf

Span 1: WCT1/0 “Digium Wildcard TE110P T1/E1 Card 0”

span=1,1,0,ccs,hdb3,crc4

termtype: te

bchan=1-15,17-31
dchan=16

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

fxsks=32
fxsks=33
fxsks=34
fxsks=35

Span 3: WCTDM/1 “Wildcard TDM400P REV E/F Board 2”

fxoks=36
fxoks=37
fxoks=38
fxoks=39

Global data

loadzone = fr
defaultzone = fr

ztcfg -vvvv

voip# ztcfg -vvvv
Keyword: [span], Value: [1,1,0,ccs,hdb3,crc4]
Keyword: [bchan], Value: [1-15,17-31]
Keyword: [dchan], Value: [16]
Keyword: [fxsks], Value: [32]
Keyword: [fxsks], Value: [33]
Keyword: [fxsks], Value: [34]
Keyword: [fxsks], Value: [35]
Keyword: [fxoks], Value: [36]
Keyword: [fxoks], Value: [37]
Keyword: [fxoks], Value: [38]
Keyword: [fxoks], Value: [39]
Keyword: [loadzone], Value: [fr]
Keyword: [defaultzone], Value: [fr]

Zaptel Version: 1.4.0-BSD
Echo Canceller: MG2
Configuration

SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: Clear channel (Default) (Slaves: 03)
Channel 04: Clear channel (Default) (Slaves: 04)
Channel 05: Clear channel (Default) (Slaves: 05)
Channel 06: Clear channel (Default) (Slaves: 06)
Channel 07: Clear channel (Default) (Slaves: 07)
Channel 08: Clear channel (Default) (Slaves: 08)
Channel 09: Clear channel (Default) (Slaves: 09)
Channel 10: Clear channel (Default) (Slaves: 10)
Channel 11: Clear channel (Default) (Slaves: 11)
Channel 12: Clear channel (Default) (Slaves: 12)
Channel 13: Clear channel (Default) (Slaves: 13)
Channel 14: Clear channel (Default) (Slaves: 14)
Channel 15: Clear channel (Default) (Slaves: 15)
Channel 16: D-channel (Default) (Slaves: 16)
Channel 17: Clear channel (Default) (Slaves: 17)
Channel 18: Clear channel (Default) (Slaves: 18)
Channel 19: Clear channel (Default) (Slaves: 19)
Channel 20: Clear channel (Default) (Slaves: 20)
Channel 21: Clear channel (Default) (Slaves: 21)
Channel 22: Clear channel (Default) (Slaves: 22)
Channel 23: Clear channel (Default) (Slaves: 23)
Channel 24: Clear channel (Default) (Slaves: 24)
Channel 25: Clear channel (Default) (Slaves: 25)
Channel 26: Clear channel (Default) (Slaves: 26)
Channel 27: Clear channel (Default) (Slaves: 27)
Channel 28: Clear channel (Default) (Slaves: 28)
Channel 29: Clear channel (Default) (Slaves: 29)
Channel 30: Clear channel (Default) (Slaves: 30)
Channel 31: Clear channel (Default) (Slaves: 31)
Channel 32: FXS Kewlstart (Default) (Slaves: 32)
Channel 33: FXS Kewlstart (Default) (Slaves: 33)
Channel 34: FXS Kewlstart (Default) (Slaves: 34)
Channel 35: FXS Kewlstart (Default) (Slaves: 35)
Channel 36: FXO Kewlstart (Default) (Slaves: 36)
Channel 37: FXO Kewlstart (Default) (Slaves: 37)
Channel 38: FXO Kewlstart (Default) (Slaves: 38)
Channel 39: FXO Kewlstart (Default) (Slaves: 39)

39 channels configured.

voip#

My zapata.conf

[trunkgroups]
;trunkgroup => 1,16
;spanmap => 1,1,1

[channels]
language=en
context=default
switchtype=euroisdn
;pridialplan=national
;prilocaldialplan=national
signalling=pri_cpe
rxwink=300 ; Atlas seems to use long (250ms) winks
usecallerid=yes
callerid=asreceived
cidsignalling=dtmf
cidstart=ring
hidecallerid=yes
callwaiting=yes
restrictcid=yes
usecallingpres=no
sendcalleridafter=1
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
echotraining=yes
echotraining=800
rxgain=20.0
txgain=5.0
group=0
callgroup=1
pickupgroup=1
immediate=no
;transfertobusy=no
;busydetect=yes
;busycount=4
;busypattern=500,500
;answeronpolarityswitch=yes
;hanguponpolarityswitch=yes
;callprogress=yes
;progzone=us
; Span 1: WCT1/0 “Digium Wildcard TE110P T1/E1 Card 0”
;switchtype=euroisdn
;signalling=pri_cpe
group=0
dchan=16
channel=>1-15,17-31

context=outgoing
; Span 2: WCTDM/0 “Wildcard TDM400P REV I Board 1”
;;; line="32 WCTDM/0/0"
signalling=fxs_ks
callerid=asreceived
group=0
channel => 32

;;; line="33 WCTDM/0/1"
signalling=fxs_ks
callerid=asreceived
group=0
channel => 33

;;; line="34 WCTDM/0/2"
signalling=fxs_ks
callerid=asreceived
group=0
channel => 34

;;; line="35 WCTDM/0/3"
signalling=fxs_ks
callerid=asreceived
group=0
channel => 35

context=incoming
; Span 3: WCTDM/1 “Wildcard TDM400P REV E/F Board 2”
;;; line="36 WCTDM/1/0"
signalling=fxo_ks
callerid=“Channel 36” <6036>
mailbox=6036
group=1
channel => 36
callerid=
mailbox=

;;; line="37 WCTDM/1/1"
signalling=fxo_ks
callerid=“Channel 37” <6037>
mailbox=6037
group=1
channel => 37
callerid=
mailbox=

;;; line="38 WCTDM/1/2"
signalling=fxo_ks
callerid=“Channel 38” <6038>
mailbox=6038
group=1
channel => 38
callerid=
mailbox=

;;; line="39 WCTDM/1/3"
signalling=fxo_ks
callerid=“Channel 39” <6039>
mailbox=6039
group=1
channel => 39
callerid=
mailbox=
voip#

Problem is when I start asterisk -vvvvvvc then get following error:

== Parsing ‘/usr/local/etc/asterisk/zapata.conf’: Found
– Registered channel 1, PRI Signalling signalling
– Registered channel 2, PRI Signalling signalling
– Registered channel 3, PRI Signalling signalling
– Registered channel 4, PRI Signalling signalling
– Registered channel 5, PRI Signalling signalling
– Registered channel 6, PRI Signalling signalling
– Registered channel 7, PRI Signalling signalling
– Registered channel 8, PRI Signalling signalling
– Registered channel 9, PRI Signalling signalling
– Registered channel 10, PRI Signalling signalling
– Registered channel 11, PRI Signalling signalling
– Registered channel 12, PRI Signalling signalling
– Registered channel 13, PRI Signalling signalling
– Registered channel 14, PRI Signalling signalling
– Registered channel 15, PRI Signalling signalling
– Registered channel 17, PRI Signalling signalling
– Registered channel 18, PRI Signalling signalling
– Registered channel 19, PRI Signalling signalling
– Registered channel 20, PRI Signalling signalling
– Registered channel 21, PRI Signalling signalling
– Registered channel 22, PRI Signalling signalling
– Registered channel 23, PRI Signalling signalling
[Dec 7 13:46:51] ERROR[730]: chan_zap.c:7342 mkintf: Channel 16 is reserved for D-channel.
[Dec 7 13:46:51] ERROR[730]: chan_zap.c:10513 build_channels: Unable to register channel ‘1-15,17-31’

Also I check jumper settings of TE110P and it is CLOSED position.

I don’t know where is what problem exist. How can I solve it?

Is there anything I did wrong?

Regards,
Balgaa