?
Solved

Asterisk: Installing a 3 fxo tdm400p card

Posted on 2007-10-20
10
Medium Priority
?
1,433 Views
Last Modified: 2013-11-12
I am unable to get my digium 3 fxo card installed and working in a trixbox. I would do the following after card is set in case

yum install zaptel*

reboot

rebuild_zaptel

reboot

genzaptaconf

then i would go into zaptel.conf and add
fxsks=1-3
loadzone=us
defaultzone = us


then zapata.conf
context = incoming
signalling= fxs_ks
channel=>1-3

reboot the machine and asterisk wont start. i check the log and the below si what i get



[root@asterisk1 ~]#
[root@asterisk1 ~]# tail /var/log/asterisk/full
Oct 20 04:17:34 VERBOSE[3651] logger.c:  [pbx_functions.so]Oct 20 04:17:34 VERBOSE[3651] logger.c:  [pbx_functions.so] => (Builtin dialplan functions)
Oct 20 04:17:34 VERBOSE[3651] logger.c:  [pbx_spool.so]Oct 20 04:17:34 VERBOSE[3651] logger.c:  [pbx_spool.so] => (Outgoing Spool Support)
Oct 20 04:17:34 VERBOSE[3651] logger.c:  [pbx_loopback.so]Oct 20 04:17:34 VERBOSE[3651] logger.c:  [pbx_loopback.so] => (Loopback Switch)
Oct 20 04:17:34 VERBOSE[3651] logger.c:  [chan_zap.so]Oct 20 04:17:34 VERBOSE[3651] logger.c:  [chan_zap.so] => (Zapata Telephony w/PRI)
Oct 20 04:17:34 WARNING[3651] chan_zap.c: Unable to specify channel 1: No such device
Oct 20 04:17:34 ERROR[3651] chan_zap.c: Unable to open channel 1: No such device
here = 0, tmp->channel = 1, channel = 1
Oct 20 04:17:34 ERROR[3651] chan_zap.c: Unable to register channel '1-3'
Oct 20 04:17:34 WARNING[3651] loader.c: chan_zap.so: load_module failed, returning -1
Oct 20 04:17:34 WARNING[3651] loader.c: Loading module chan_zap.so failed!
[root@asterisk1 ~]#


0
Comment
Question by:jonnydollar
  • 5
  • 5
10 Comments
 
LVL 36

Expert Comment

by:grblades
ID: 20114161
Can you run the following commands and post the output :-

lspci

lsmod


Please also post the contents of your /etc/sysconfig/zaptel file.
0
 

Author Comment

by:jonnydollar
ID: 20114165
[root@asterisk1 ~]#
[root@asterisk1 ~]# lspci
00:00.0 RAM memory: nVidia Corporation MCP61 Memory Controller (rev a1)
00:01.0 ISA bridge: nVidia Corporation MCP61 LPC Bridge (rev a2)
00:01.1 SMBus: nVidia Corporation MCP61 SMBus (rev a2)
00:01.2 RAM memory: nVidia Corporation MCP61 Memory Controller (rev a2)
00:02.0 USB Controller: nVidia Corporation MCP61 USB Controller (rev a2)
00:02.1 USB Controller: nVidia Corporation MCP61 USB Controller (rev a2)
00:04.0 PCI bridge: nVidia Corporation MCP61 PCI bridge (rev a1)
00:05.0 Audio device: nVidia Corporation MCP61 High Definition Audio (rev a2)
00:06.0 IDE interface: nVidia Corporation MCP61 IDE (rev a2)
00:07.0 Bridge: nVidia Corporation MCP61 Ethernet (rev a2)
00:08.0 IDE interface: nVidia Corporation MCP61 SATA Controller (rev a2)
00:09.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2)
00:0b.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2)
00:0c.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2)
00:0d.0 VGA compatible controller: nVidia Corporation GeForce 6100 nForce 405 (rev a2)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
01:0a.0 Network controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
[root@asterisk1 ~]# lsmod
Module                  Size  Used by
ztdummy                 3924  0
wctdm                  32832  0
wcfxo                  11424  0
wcte11xp               25632  0
wct1xxp                17312  0
wct4xxp               235968  0
tor2                   89632  0
zaptel                192932  7 ztdummy,wctdm,wcfxo,wcte11xp,wct1xxp,wct4xxp,tor2
md5                     4033  1
ipv6                  235137  12
autofs4                24773  0
i2c_dev                11329  0
i2c_core               22081  1 i2c_dev
sunrpc                162725  1
dm_mirror              27825  0
dm_mod                 57557  1 dm_mirror
ohci_hcd               21713  0
ehci_hcd               30917  0
hisax                 456177  0
crc_ccitt               2113  2 zaptel,hisax
isdn                  133537  1 hisax
slhc                    7233  1 isdn
8139too                25921  0
mii                     5185  1 8139too
floppy                 58481  0
ext3                  116809  2
jbd                    71385  1 ext3
[root@asterisk1 ~]#

0
 

Author Comment

by:jonnydollar
ID: 20114171
zaptel.conf


# Autogenerated by /usr/local/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


# Global data

loadzone      = us
defaultzone      = us
fxsks=1-3
0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
LVL 36

Expert Comment

by:grblades
ID: 20114203
No there should be a file in /etc/sysconfig called zaptel. Can you post its contents please.

Can you also post the output of the following commands :-

ztcfg -vvv

dmesg


From the first couple of commands you posted it looks like there is a problem loading the drivers for the card.
0
 

Author Comment

by:jonnydollar
ID: 20114212


[root@asterisk1 ~]#
[root@asterisk1 ~]# ztcfg -vvv

Zaptel Configuration
======================


Channel map:

Channel 01: FXS Kewlstart (Default) (Slaves: 01)
Channel 02: FXS Kewlstart (Default) (Slaves: 02)
Channel 03: FXS Kewlstart (Default) (Slaves: 03)

3 channels configured.

[root@asterisk1 ~]#





***************************zaptel  info

TELEPHONY=yes
#DEBUG=yes

# Un-comment as per your requirements; modules to load/unload
# genzaptelconf will populate this file

#Module Name                    Hardware
MODULES="$MODULES tor2"            # T400P - Quad Span T1 Card
                        # E400P - Quad Span E1 Card

MODULES="$MODULES wct4xxp"      # TE405P - Quad Span T1/E1 Card (5v version)
                        # TE410P - Quad Span T1/E1 Card (3.3v version)

MODULES="$MODULES wct1xxp"      # T100P - Single Span T1 Card
                        # E100P - Single Span E1 Card

MODULES="$MODULES wcte11xp"      # TE110P - Single Span T1/E1 Card

MODULES="$MODULES wcfxo"      # X100P - Single port FXO interface
                        # X101P - Single port FXO interface

MODULES="$MODULES wctdm"      # TDM400P - Modular FXS/FXO interface (1-4 ports)
#MODULES="$MODULES wcfxs"      # either above or this

#MODULES="$MODULES wcusb"      # S100U - Single port FXS USB Interface
#MODULES="$MODULES wcfxsusb"      # either above or this

#MODULES="$MODULES torisa"      # Old Tormenta1 ISA Card

MODULES="$MODULES ztdummy"      # UHCI USB Zaptel Timing Only Interface

********************dmesg info


[root@asterisk1 ~]# dmesg
Linux version 2.6.9-34.0.2.EL (buildcentos@v20z-i386) (gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)) #1 Fri Jul 7 19:24:57 CDT 2006
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000e8000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000000bfb0000 (usable)
 BIOS-e820: 000000000bfb0000 - 000000000bfc0000 (ACPI data)
 BIOS-e820: 000000000bfc0000 - 000000000bff0000 (ACPI NVS)
 BIOS-e820: 000000000bff0000 - 000000000c000000 (reserved)
 BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fef00000 (reserved)
 BIOS-e820: 00000000ff380000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
191MB LOWMEM available.
Using x86 segment limits to approximate NX protection
zapping low mappings.
On node 0 totalpages: 49072
  DMA zone: 4096 pages, LIFO batch:1
  Normal zone: 44976 pages, LIFO batch:10
  HighMem zone: 0 pages, LIFO batch:1
DMI present.
ACPI: RSDP (v000 ACPIAM                                ) @ 0x000fa260
ACPI: RSDT (v001 A_M_I  OEMRSDT  0x03000703 MSFT 0x00000097) @ 0x0bfb0000
ACPI: FADT (v002 A M I  OEMFACP  0x12000601 MSFT 0x00000097) @ 0x0bfb0200
ACPI: MADT (v001 A_M_I  OEMAPIC  0x03000703 MSFT 0x00000097) @ 0x0bfb0390
ACPI: MCFG (v001 A_M_I  OEMMCFG  0x03000703 MSFT 0x00000097) @ 0x0bfb0400
ACPI: OEMB (v001 A_M_I  AMI_OEM  0x03000703 MSFT 0x00000097) @ 0x0bfc0040
ACPI: DSDT (v001  8N6GV 8N6GV152 0x00000152 INTL 0x20051117) @ 0x00000000
Built 1 zonelists
Kernel command line: ro root=LABEL=/1 acpi=off
Initializing CPU#0
CPU 0 irqstacks, hard=c03e7000 soft=c03e6000
PID hash table entries: 1024 (order: 10, 16384 bytes)
Detected 1808.516 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 190008k/196288k available (2118k kernel code, 5716k reserved, 668k data, 144k init, 0k highmem)
Calibrating delay using timer specific routine.. 3621.24 BogoMIPS (lpj=1810624)
Security Scaffold v1.0.0 initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
There is already a security framework initialized, register_security failed.
selinux_register_security:  Registering secondary module capability
Capability LSM initialized as secondary
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: After generic identify, caps: 078bfbff e3d3fbff 00000000 00000000
CPU: After vendor identify, caps:  078bfbff e3d3fbff 00000000 00000000
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU: After all inits, caps:        078bf3ff e3d3fbff 00000000 00000010
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: AMD Sempron(tm) Processor 3100+ stepping 02
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
checking if image is initramfs... it is
Freeing initrd memory: 575k freed
NET: Registered protocol family 16
PCI: PCI BIOS revision 3.00 entry at 0xf0031, last bus=4
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20040816
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Transparent bridge - 0000:00:04.0
PCI: Using IRQ router default [10de/03e0] at 0000:00:01.0
apm: BIOS version 1.2 Flags 0x02 (Driver version 1.16ac)
audit: initializing netlink socket (disabled)
audit(1192853548.555:1): initialized
Total HugeTLB memory allocated, 0
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
SELinux:  Registering netfilter hooks
Initializing Cryptographic API
ksign: Installing public key data
Loading keyring
- Added public key 1D846148DE22BD48
- User ID: CentOS (Kernel Module GPG key)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
Real Time Clock Driver v1.12
Linux agpgart interface v0.100 (c) Dave Jones
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing enabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
divert: not allocating divert_blk for non-ethernet device lo
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Probing IDE interface ide0...
hda: Maxtor 6E040L0, ATA DISK drive
hdb: BENQ CDRW 5232X, ATAPI CD/DVD-ROM drive
Probing IDE interface ide1...
Probing IDE interface ide2...
Probing IDE interface ide3...
Probing IDE interface ide4...
Probing IDE interface ide5...
Using cfq io scheduler
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: max request size: 128KiB
hda: 80293248 sectors (41110 MB) w/2048KiB Cache, CHS=65535/16/63
hda: cache flushes supported
 hda: hda1 hda2 hda3
hdb: ATAPI 52X CD-ROM CD-R/RW drive, 2048kB Cache
Uniform CD-ROM driver Revision: 3.20
ide-floppy driver 0.99.newide
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard on isa0060/serio0
input: ImPS/2 Logitech Wheel Mouse on isa0060/serio1
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
NET: Registered protocol family 2
IP: routing cache hash table of 256 buckets, 8Kbytes
TCP: Hash tables configured (established 16384 bind 4681)
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
Freeing unused kernel memory: 144k freed
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
inserting floppy driver for 2.6.9-34.0.2.EL
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
8139too Fast Ethernet driver 0.9.27
divert: allocating divert_blk for eth0
eth0: RealTek RTL8139 at 0xe800, 00:c0:49:d5:92:62, IRQ 10
eth0:  Identified 8139 chip type 'RTL-8100B/8139D'
CSLIP: code copyright 1989 Regents of the University of California
ISDN subsystem Rev: 1.1.2.3/1.1.2.3/1.1.2.2/1.1.2.3/1.1.2.2/1.1.2.2 loaded
HiSax: Linux Driver for passive ISDN cards
HiSax: Version 3.5 (module)
HiSax: Layer1 Revision 2.46.2.5
HiSax: Layer2 Revision 2.30.2.4
HiSax: TeiMgr Revision 2.20.2.3
HiSax: Layer3 Revision 2.22.2.3
HiSax: LinkLayer Revision 2.59.2.4
ehci_hcd 0000:00:02.1: EHCI Host Controller
PCI: Setting latency timer of device 0000:00:02.1 to 64
ehci_hcd 0000:00:02.1: irq 10, pci mem cc818c00
ehci_hcd 0000:00:02.1: new USB bus registered, assigned bus number 1
PCI: cache line size of 64 is not supported by device 0000:00:02.1
ehci_hcd 0000:00:02.1: USB 2.0 enabled, EHCI 1.00, driver 2004-May-10
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 8 ports detected
ohci_hcd: 2004 Feb 02 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ohci_hcd 0000:00:02.0: OHCI Host Controller
PCI: Setting latency timer of device 0000:00:02.0 to 64
ohci_hcd 0000:00:02.0: irq 5, pci mem cc81a000
ohci_hcd 0000:00:02.0: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 8 ports detected
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
EXT3 FS on hda2, internal journal
device-mapper: 4.5.0-ioctl (2005-10-04) initialised: dm-devel@redhat.com
kjournald starting.  Commit interval 5 seconds
EXT3 FS on hda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Adding 779144k swap on /dev/hda3.  Priority:-1 extents:1
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
parport0: irq 7 detected
ip_tables: (C) 2000-2002 Netfilter core team
ip_tables: (C) 2000-2002 Netfilter core team
eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1
i2c /dev entries driver
spurious 8259A interrupt: IRQ7.
NET: Registered protocol family 10
Disabled Privacy Extensions on device c0378f60(lo)
IPv6 over IPv4 tunneling driver
divert: not allocating divert_blk for non-ethernet device sit0
eth0: no IPv6 routers present
Zapata Telephony Interface Registered on major 196
Zaptel Version: 1.2.19
Zaptel Echo Canceller: KB1
Registered Tormenta2 PCI
Freshmaker version: 73
Freshmaker passed register test
Module 0: Not installed
Module 1: Installed -- AUTO FXO (FCC mode)
Module 2: Installed -- AUTO FXO (FCC mode)
Module 3: Installed -- AUTO FXO (FCC mode)
Found a Wildcard TDM: Wildcard TDM400P REV I (3 modules)
Registered tone zone 0 (United States / North America)
Registered tone zone 0 (United States / North America)
Registered tone zone 0 (United States / North America)
[root@asterisk1 ~]#
0
 
LVL 36

Expert Comment

by:grblades
ID: 20114247
> Module 0: Not installed
> Module 1: Installed -- AUTO FXO (FCC mode)
> Module 2: Installed -- AUTO FXO (FCC mode)
> Module 3: Installed -- AUTO FXO (FCC mode)
You have the modules plugged into slots 1-3.
Module 0 is channel 1, module 1 is channel 2 etc...
However in your config you have channels 1-3 (modules plugged into 2-4)

You could edit the config to use 2-4 instead of 1-3 for the channels but the better approach would be to take out the card and move a module from position 4 to position 0 as that is more standard. It will help to avoid any future confusion.
0
 

Author Comment

by:jonnydollar
ID: 20114252
well i wud like to jus config for 2-4 for now bcuz i need this working urgently and i can come back and adjust the device hardware but it shipped tht way

should that fix the problem?
0
 
LVL 36

Expert Comment

by:grblades
ID: 20114261
Yes if you change it then it should work. Be carefull when you run genzapataconf in the future as it looks like it might have a bug causing it to generate the incorrect config.

In zaptel.conf change
fxsks=1-3
to
fxsks=2-4

In zapata.conf change
channel=>1-3
to
channel=>2-4
0
 
LVL 36

Accepted Solution

by:
grblades earned 2000 total points
ID: 20114263
You will want to reload the zaptel and asterisk after the change. To be on the safe side the easiest way would be to just reboot.
0
 

Author Comment

by:jonnydollar
ID: 20114268
saving my life again friend thanks. thats golden
0

Featured Post

Reclaim your office - Try the MB 660 headset now!

High level of background noise often makes it difficult for employees to concentrate fully on their jobs – or to communicate clearly on calls. The MB 660 headset helps you create a disruption free workspace.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How To Create Custom / Distinctive Ring Tones on Polycom Phones Purpose and Overview When creating a custom ring tone, you have simple aspirations: to make your phone cooler than everyone else's. Perhaps you need a louder ringer. Perhaps you w…
As companies replace their old PBX phone systems with Unified IP Communications, many are finding out that legacy applications such as fax do not work well with VoIP. Fortunately, Cloud Faxing provides a cost-effective alternative that works over an…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question