[Asterisk-Users] Problems starting Asterisk with TDM22B

Mitchell S. Sharp mss-maillist at innohost.com
Mon Nov 29 20:54:14 MST 2004


On Mon, 2004-11-29 at 22:16 -0500, DB wrote:
> >> Im getting the following error when I try to start Asterisk
> >>
> >> WARNING[16384]: chan_zap.c:765 zt_open: Unable to specify channel 1: No
> >> such device or address
> >> Nov 29 21:40:43 ERROR[16384]: chan_zap.c:6195 mkintf: Unable to open
> >> channel 1: No such device or address
> >>
> >> I'm using a TDM22B card.
> >>
> >> =============
> >> # Zaptel Configuration File
> >> #
> >> loadzone=us
> >> defaultzone=us
> >> fxoks=1-2
> >> fxsks=3-4
> >> ==============
> >>
> >> Do I need to supply more config files or does some one recognize this
> >> error? Please help.
> >>
> >> DB
> >> _______________________________________________
> >> Asterisk-Users mailing list
> >> Asterisk-Users at lists.digium.com
> >> http://lists.digium.com/mailman/listinfo/asterisk-users
> >> To UNSUBSCRIBE or update options visit:
> >>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> > 1. Try to run:
> > # ztcfg -v
> > 
> > What happened!?
> > 
> > 2. Did you plug the TDM at the power supply!?
> > 
> > Denis.
> 
> 
> 
> Hi - yes the power is connected and:
> 
> me at pbx:/etc/asterisk# ztcfg -vvvvv
> 
> Zaptel Configuration
> ======================
> 
> Channel map:
> 
> Channel 01: FXO Kewlstart (Default) (Slaves: 01)
> Channel 02: FXO Kewlstart (Default) (Slaves: 02)
> Channel 03: FXS Kewlstart (Default) (Slaves: 03)
> Channel 04: FXS Kewlstart (Default) (Slaves: 04)
> 
> 4 channels configured.
> 
> I do notice a several second delay when I do 'modprobe wctdm', but no 
> errors are displayed. Any more advice? I'm kinda stuck here.
> 
> DB

You're having the same problem I had when I upgraded to Fedora Core 3
(with the 2.6 kernel).  I have a TDM400P with 3 FXS modules.  I had to
add some sleep statements between modules loads for some reason.  Try it
out.  This is my edited init script:

[ clipped from /etc/rc.d/init.d/zaptel ]

MODULES="wcfxo wctdm"

RMODULES="wctdm wcfxo"

if [ "${DEBUG}" = "yes" ]; then
        ARGS="debug=1"
fi

# See how we were called.
case "$1" in
  start)
        # Load drivers
        rmmod wcusb >& /dev/null
        rmmod wcfxsusb >& /dev/null
        rmmod audio >& /dev/null
        action "Loading zaptel framework: " modprobe zaptel
        sleep 1
        echo "Loading zaptel hardware modules: "
        for x in $MODULES; do
                echo -n "     $x "
                modprobe ${x} >& /dev/null
                echo " - Sleep 1"
                sleep 1
        done
        echo "     Sleep 3"
        sleep 3
        echo
        action "     Running ztcfg: " /sbin/ztcfg
        RETVAL=$?

        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/zaptel

        ;;
  stop)

[ end clip ]

Mitch Sharp
Innovative Solutions
http://www.innohost.com




More information about the asterisk-users mailing list