Matthew Crocker
2006-Oct-11 10:25 UTC
[asterisk-users] Problem with ZAPTEL-1.4.0-beta1 and WCT100P card
Hello,
I'm trying to upgrade an Asterisk 1.2 linux box to Asterisk 1.4. I
installed the following
-rw-r--r-- 1 root root 10908541 Sep 21 13:25 asterisk-1.4.0-
beta2.tar.gz
-rw-r--r-- 1 root root 993921 Sep 21 13:25 asterisk-addons-1.4.0-
beta1.tar.gz
-rw-r--r-- 1 root root 80019 Sep 21 13:25 libpri-1.4.0-beta1.tar.gz
-rw-r--r-- 1 root root 1523413 Sep 21 13:25 zaptel-1.4.0-beta1.tar.gz
I get an error when I run ztcfg. (see below). Any ideas? Is the
ztcfg issue with unable to read version info a problem?
[root@asterisk-1 src]# ztcfg -d 99 -v
Line 11: span=1,1,1,esf,b8zs
Line 12: bchan=1-23
Line 13: dchan=24
Line 17: loadzone = us
Line 18: defaultzone = us
<End of File>
Notice: Configuration file is /etc/zaptel.conf
line 18: Unable to read Zaptel version information.
Zaptel Version: m?y
Echo Canceller:
Configuration
=====================
SPAN 1: ESF/B8ZS Build-out: 133-266 feet (DSX-1)
24 channels configured.
ZT_CHANCONFIG failed on channel 1: Inappropriate ioctl for device (25)
[root@asterisk-1 src]# strace ztcfg
execve("/sbin/ztcfg", ["ztcfg"], [/* 25 vars */]) = 0
uname({sys="Linux", node="asterisk-1", ...}) = 0
brk(0) = 0x8437000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=38549, ...}) = 0
old_mmap(NULL, 38549, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf6ff6000
close(3) = 0
open("/lib/tls/libm.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\203
\206"..., 512) = 5
12
fstat64(3, {st_mode=S_IFREG|0755, st_size=214796, ...}) = 0
old_mmap(0x865000, 139424, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x865000
old_mmap(0x886000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x20000
) = 0x886000
close(3) = 0
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300ku
\000"..., 512) = 5
12
fstat64(3, {st_mode=S_IFREG|0755, st_size=1455084, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0
xf6ff5000
old_mmap(0x742000, 1158124, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x742000
old_mmap(0x857000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|
MAP_FIXED, 3, 0x1150
00) = 0x857000
old_mmap(0x85b000, 7148, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMO
US, -1, 0) = 0x85b000
close(3) = 0
mprotect(0x857000, 8192, PROT_READ) = 0
mprotect(0x886000, 4096, PROT_READ) = 0
mprotect(0x73e000, 4096, PROT_READ) = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xf6ff5820, limit:
1048575, seg_
32bit:1, contents:0, read_exec_only:0, limit_in_pages:1,
seg_not_present:0, usea
ble:1}) = 0
munmap(0xf6ff6000, 38549) = 0
open("/dev/zap/ctl", O_RDWR) = 3
brk(0) = 0x8437000
brk(0x8458000) = 0x8458000
brk(0) = 0x8458000
open("/etc/zaptel.conf", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=330, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xf6
fff000
read(4, "# Autogenerated by ./genzaptelco"..., 4096) = 330
read(4, "", 4096) = 0
close(4) = 0
munmap(0xf6fff000, 4096) = 0
ioctl(3, 0x40244a12, 0x8078560) = 0
ioctl(3, 0x80844a05, 0xfeec3140) = -1 EINVAL (Invalid argument)
ioctl(3, 0x404c4a13, 0x80797ac) = -1 ENOTTY (Inappropriate
ioctl for dev
ice)
write(2, "ZT_CHANCONFIG failed on channel "..., 71ZT_CHANCONFIG
failed on channe
l 1: Inappropriate ioctl for device (25)
) = 71
close(3) = 0
exit_group(1) = ?
[root@asterisk-1 src]# cat /etc/zaptel.conf
# Autogenerated by ./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: WCT1/0 "Digium Wildcard T100P T1/PRI Card 0"
span=1,1,1,esf,b8zs
bchan=1-23
dchan=24
# Global data
loadzone = us
defaultzone = us
[root@asterisk-1 src]# cat /etc/asterisk/zapata.conf
switchtype=national
context=default
signalling=pri_net
group=1
channel => 1-23
--
Matthew S. Crocker
Vice President
Crocker Communications, Inc.
Internet Division
PO BOX 710
Greenfield, MA 01302-0710
http://www.crocker.com
Matthew Crocker
2006-Oct-11 16:50 UTC
[asterisk-users] Problem with ZAPTEL-1.4.0-beta1 and WCT100P card
I don't like following up with my own post but I figured out the problem. The server is running FC2, I did a 'yum -y update' and after it was complete I rebuilt zaptel (make clean ; make ; make install) and everything works fine now. Musta been something with the compiler ?? -Matt On Oct 11, 2006, at 1:25 PM, Matthew Crocker wrote:> > Hello, > > I'm trying to upgrade an Asterisk 1.2 linux box to Asterisk 1.4. > I installed the following > > -rw-r--r-- 1 root root 10908541 Sep 21 13:25 asterisk-1.4.0- > beta2.tar.gz > -rw-r--r-- 1 root root 993921 Sep 21 13:25 asterisk-addons-1.4.0- > beta1.tar.gz > -rw-r--r-- 1 root root 80019 Sep 21 13:25 libpri-1.4.0- > beta1.tar.gz > -rw-r--r-- 1 root root 1523413 Sep 21 13:25 zaptel-1.4.0- > beta1.tar.gz > > I get an error when I run ztcfg. (see below). Any ideas? Is the > ztcfg issue with unable to read version info a problem? > > > [root@asterisk-1 src]# ztcfg -d 99 -v > Line 11: span=1,1,1,esf,b8zs > Line 12: bchan=1-23 > Line 13: dchan=24 > Line 17: loadzone = us > Line 18: defaultzone = us > <End of File> > Notice: Configuration file is /etc/zaptel.conf > line 18: Unable to read Zaptel version information. > > Zaptel Version: m?y > Echo Canceller: > Configuration > =====================> > SPAN 1: ESF/B8ZS Build-out: 133-266 feet (DSX-1) > > 24 channels configured. > > ZT_CHANCONFIG failed on channel 1: Inappropriate ioctl for device (25) > > > [root@asterisk-1 src]# strace ztcfg > execve("/sbin/ztcfg", ["ztcfg"], [/* 25 vars */]) = 0 > uname({sys="Linux", node="asterisk-1", ...}) = 0 > brk(0) = 0x8437000 > open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file > or directory) > open("/etc/ld.so.cache", O_RDONLY) = 3 > fstat64(3, {st_mode=S_IFREG|0644, st_size=38549, ...}) = 0 > old_mmap(NULL, 38549, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf6ff6000 > close(3) = 0 > open("/lib/tls/libm.so.6", O_RDONLY) = 3 > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\203 > \206"..., 512) = 5 > 12 > fstat64(3, {st_mode=S_IFREG|0755, st_size=214796, ...}) = 0 > old_mmap(0x865000, 139424, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) > = 0x865000 > old_mmap(0x886000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE| > MAP_FIXED, 3, 0x20000 > ) = 0x886000 > close(3) = 0 > open("/lib/tls/libc.so.6", O_RDONLY) = 3 > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300ku > \000"..., 512) = 5 > 12 > fstat64(3, {st_mode=S_IFREG|0755, st_size=1455084, ...}) = 0 > old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE| > MAP_ANONYMOUS, -1, 0) = 0 > xf6ff5000 > old_mmap(0x742000, 1158124, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) > = 0x742000 > old_mmap(0x857000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE| > MAP_FIXED, 3, 0x1150 > 00) = 0x857000 > old_mmap(0x85b000, 7148, PROT_READ|PROT_WRITE, MAP_PRIVATE| > MAP_FIXED|MAP_ANONYMO > US, -1, 0) = 0x85b000 > close(3) = 0 > mprotect(0x857000, 8192, PROT_READ) = 0 > mprotect(0x886000, 4096, PROT_READ) = 0 > mprotect(0x73e000, 4096, PROT_READ) = 0 > set_thread_area({entry_number:-1 -> 6, base_addr:0xf6ff5820, limit: > 1048575, seg_ > 32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, > seg_not_present:0, usea > ble:1}) = 0 > munmap(0xf6ff6000, 38549) = 0 > open("/dev/zap/ctl", O_RDWR) = 3 > brk(0) = 0x8437000 > brk(0x8458000) = 0x8458000 > brk(0) = 0x8458000 > open("/etc/zaptel.conf", O_RDONLY) = 4 > fstat64(4, {st_mode=S_IFREG|0644, st_size=330, ...}) = 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, > -1, 0) = 0xf6 > fff000 > read(4, "# Autogenerated by ./genzaptelco"..., 4096) = 330 > read(4, "", 4096) = 0 > close(4) = 0 > munmap(0xf6fff000, 4096) = 0 > ioctl(3, 0x40244a12, 0x8078560) = 0 > ioctl(3, 0x80844a05, 0xfeec3140) = -1 EINVAL (Invalid argument) > ioctl(3, 0x404c4a13, 0x80797ac) = -1 ENOTTY (Inappropriate > ioctl for dev > ice) > write(2, "ZT_CHANCONFIG failed on channel "..., 71ZT_CHANCONFIG > failed on channe > l 1: Inappropriate ioctl for device (25) > ) = 71 > close(3) = 0 > exit_group(1) = ? > > [root@asterisk-1 src]# cat /etc/zaptel.conf > # Autogenerated by ./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: WCT1/0 "Digium Wildcard T100P T1/PRI Card 0" > span=1,1,1,esf,b8zs > bchan=1-23 > dchan=24 > > # Global data > > loadzone = us > defaultzone = us > > [root@asterisk-1 src]# cat /etc/asterisk/zapata.conf > switchtype=national > context=default > signalling=pri_net > group=1 > channel => 1-23 > > -- > Matthew S. Crocker > Vice President > Crocker Communications, Inc. > Internet Division > PO BOX 710 > Greenfield, MA 01302-0710 > http://www.crocker.com > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-- Matthew S. Crocker Vice President Crocker Communications, Inc. Internet Division PO BOX 710 Greenfield, MA 01302-0710 http://www.crocker.com