[Asterisk-Users] TDM cards and Asterisk

Richard Scobie r.scobie at clear.net.nz
Thu May 1 17:35:35 MST 2003


I have put a box together using 2 X100P and 2 TDM400 4port cards.

Using the simple setup that Martin posted a few days ago, I have 
asterisk almost up and running.

/etc/zaptel.conf
fxsks=1-2
fxoks=3-10

loadzone=nz
defaultzone=nz

(I have added NZ tone information to zaptel and Asterisk - I'll submit a 
patch soon).

/etc/asterisk/zapata.conf
[channels]
context=incoming
signalling=fxs_ks
group=1
channel => 1-2
context=internal
signalling=fxo_ks
group=2
channel => 3-10

/etc/asterisk/extensions.conf
[incoming]
exten => s,1,Dial,Zap/3&Zap/4&Zap/5&Zap/6&Zap/7&Zap/8&Zap/9&Zap/10|20
exten => s,2,Congestion

[internal]
exten => _9X.,1,Dial,Zap/g1/${EXTEN:1}
exten => _100[0-7],1,Dial,Zap/$[${EXTEN} - 997]

"modprobe wcfxo"
(This results in ZT_CHANCONFIG failed on channel 3: No such device or 
address (6)
/lib/modules/2.4.20/misc/wcfxo.o: post-install wcfxo failed
/lib/modules/2.4.20/misc/wcfxo.o: insmod wcfxo failed

but the module seems to load OK)

"modprobe wcfxs"
"ztcfg -vv"

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


Channel map:

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

10 channels configured.

So far so good and I start asterisk -vvvc

The problem is that Channels 3-6 (TDM card 1) give no dialtone and a 
call from a phone on channel 7(TDMcard 2) to a channel 3 phone gives
-- Starting simple switch on 'Zap/7-1'
Expression is '3'
    -- Executing Dial("Zap/7-1", "Zap/3") in new stack
WARNING[245774]: File chan_zap.c, Line 1231 (zt_call): Unable to ring 
phone: Device or resource busy
    -- Couldn't call 3
    -- Hungup 'Zap/3-1'
  == Everyone is busy at this time

Yesterday I ran the system with only one of each card (and suitably 
modified conf files) and the same TDM card worked fine in the same slot.

All the cards are on their own IRQs

/proc interrupts
           CPU0      
  0:     380272          XT-PIC  timer
  1:          2          XT-PIC  keyboard
  2:          0          XT-PIC  cascade
  7:       7823          XT-PIC  wcfxs
  8:          1          XT-PIC  rtc
  9:       2156          XT-PIC  eth0
 10:    3756675          XT-PIC  wcfxo
 11:    3756536          XT-PIC  wcfxo
 12:    3734178          XT-PIC  wcfxs
 14:       1368          XT-PIC  ide0
NMI:          0
LOC:     380219
ERR:          0

Another observation: If I stop asterisk and rmmod all asterisk/zaptel 
modules, modprobing them back in, in the same order as above, gives the 
error ZT_CHANCONFIG failed on channel 7: No such device or address (6)
/lib/modules/2.4.20/misc/wcfxs.o: post-install wcfxs failed
/lib/modules/2.4.20/misc/wcfxs.o: insmod wcfxs failed

The machine has to be restarted to get rid of this.

Any help very much appreciated, as I am very impressed otherwise.

Regards,

Richard Scobie




More information about the asterisk-users mailing list