[Asterisk-Users] TDM400P + FXO module = PSTN woes

Jacques Beyers jacquesb at b-squared.co.za
Sun Nov 13 14:45:12 MST 2005


Hi everyone,

Thank you to Andrew Kohlsmith and Rich Adamson for their input.

>> Do you use any wctdm kernel options?  I see that you're from South
Africa, so
>> wctdm may need a different country identification in order to properly
>> interface to your telephone network?  (opermode kernel module parameter,
and
>> also 'loadzone' in zaptel.conf.)

I have tried adding in the opermode, but I think I did something wrong. Here
is a copy of my unmodified /etc/modprobe.conf file.

[root at voip ~]# cat /etc/modprobe.conf
alias eth0 r8169
install snd-intel8x0 /sbin/modprobe --ignore-install snd-intel8x0 &&
/usr/sbin/alsactl restore >/dev/null 2>&1 || :
alias usb-controller ehci-hcd
alias usb-controller1 ohci-hcd
options torisa base=0xd0000

alias char-major-196 torisa
install tor2 /sbin/modprobe --ignore-install tor2 && /sbin/ztcfg
install torisa /sbin/modprobe --ignore-install torisa && /sbin/ztcfg
install wcusb /sbin/modprobe --ignore-install wcusb && /sbin/ztcfg
install wcfxo /sbin/modprobe --ignore-install wcfxo && /sbin/ztcfg
install wcfxs /sbin/modprobe --ignore-install wcfxs && /sbin/ztcfg
install ztdynamic /sbin/modprobe --ignore-install ztdynamic && /sbin/ztcfg
install ztd-eth /sbin/modprobe --ignore-install ztd-eth && /sbin/ztcfg
install wct1xxp /sbin/modprobe --ignore-install wct1xxp && /sbin/ztcfg
install wct4xxp /sbin/modprobe --ignore-install wct4xxp && /sbin/ztcfg
install wcte11xp /sbin/modprobe --ignore-install wcte11xp && /sbin/ztcfg
alias wctdm wcfxs
alias wct2xxp wct4xxp
alias eth3 hisax
[root at voip ~]#

Where do I make the changes, and how should they look?

>> What do you mean that zaptel moans on boot-up?  What's the exact error
>> message?
>>
>> hisax   598301  0

This is because I also have a HFC ISDN card in the Asterisk box. I used to
first make and receive calls through it before I got the Digium card.

>> Does the system work correctly when people call in on the line that the
>> FXO module is plugged in to?

No, when I dial the number, I get a "number busy" signal.

>> When you attempt to call out, do you hear Asterisk trying to dial if you
>> "listen in" on another regular phone extension connected to the same FXO
>> port?

No, I hear soft "bee bah bee bah bee bah" tones.

Here is a capture of what Linux returns whilst trying to load and start the
Digium devices

One error
[root at voip etc]# modprobe zaptel
[root at voip etc]# modprobe wctdm
Notice: Configuration file is /etc/zaptel.conf
line 3: Unable to open master device '/dev/zap/ctl'
[root at voip etc]#

Although when I run modprobe wctdm again, the error message does not repeat
itself.

Listing of /dev/zap*
[root at voip dev]# ls -la zap
total 0
drwxr-xr-x  2 root root      200 Nov 13 21:47 .
drwxr-xr-x  9 root root     5400 Nov 13 21:47 ..
crw-------  1 root root 196,   1 Nov 13 21:47 1
crw-------  1 root root 196,   2 Nov 13 21:47 2
crw-------  1 root root 196,   3 Nov 13 21:47 3
crw-------  1 root root 196,   4 Nov 13 21:47 4
crw-------  1 root root 196, 254 Nov 13 21:47 channel
crw-------  1 root root 196,   0 Nov 13 21:47 ctl
crw-------  1 root root 196, 255 Nov 13 21:47 pseudo
crw-------  1 root root 196, 253 Nov 13 21:47 timer
[root at voip dev]#

Here is what LSMOD shows after having loaded the WCTDM driver.
lsmod 
[root at voip dev]# lsmod
Module                  Size  Used by
wcfxs                  32288  0
zaptel                208388  1 wcfxs
md5                     4033  1
ipv6                  262977  12
autofs4                28229  0
dm_mod                 57333  0
video                  15685  0
button                  6609  0
battery                 9285  0
ac                      4805  0
ohci_hcd               26081  0
ehci_hcd               40013  0
i2c_sis96x              5445  0
i2c_core               21313  1 i2c_sis96x
hisax                 598301  0
crc_ccitt               2113  2 zaptel,hisax
isdn                  148673  1 hisax
slhc                    6849  1 isdn
r8169                  29005  0
ext3                  130633  2
jbd                    83161  1 ext3
[root at voip dev]#

/var/log/messages
Nov 13 21:47:11 voip kernel: Zapata Telephony Interface Registered on major
196
Nov 13 21:47:16 voip kernel: ACPI: PCI Interrupt 0000:00:08.0[A] -> Link
[LNKD] -> GSI 10 (level, low) -> IRQ 10
Nov 13 21:47:16 voip kernel: Freshmaker version: 73
Nov 13 21:47:16 voip kernel: Freshmaker passed register test
Nov 13 21:47:16 voip kernel: Module 0: Installed -- AUTO FXO (FCC mode)
Nov 13 21:47:16 voip kernel: Module 1: Not installed
Nov 13 21:47:16 voip kernel: Module 2: Not installed
Nov 13 21:47:16 voip kernel: Module 3: Not installed
Nov 13 21:47:16 voip kernel: Found a Wildcard TDM: Wildcard TDM400P REV I (4
modules)


ztcfg -vvvv
[root at voip dev]# ztcfg -vvvv

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


Channel map:

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

1 channels configured.

[root at voip dev]#



Any pointers?

Kindest regards,
Jacques Beyers (MCP, MCSE)
Beyers Squared Integrated Solutions
Mobile:    +2782 566-4381
Facsimile: +2782 131-566-4381
E-mail:    jacquesb at b-squared.co.za
Skype:     jdbeyers

Linux registration number: 353934



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.8/165 - Release Date: 2005/11/09
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 4740 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20051113/f4ad8d7f/winmail.bin


More information about the asterisk-users mailing list