“dahdi Show Channels” No Such Command

Home » Asterisk Users » “dahdi Show Channels” No Such Command
Asterisk Users 7 Comments

I have followed the instructions in Asterisk The Definitive Guide 4th edition.

7 thoughts on - “dahdi Show Channels” No Such Command

  • I am not sure. Could you provide more details? I just tried in my setup and it seems to work (though it tells me nothing exciting):

    [root@voip ~]# asterisk -r Asterisk 1.8.11-cert1, Copyright (C) 1999 – 2012 Digium, Inc. and others. Created by Mark Spencer
    Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’
    for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type ‘core show license’ for details.
    ========================================================================Connected to Asterisk 1.8.11-cert1 currently running on voip (pid = 2575)
    Verbosity is at least 3
    voip*CLI> da dahdi data database voip*CLI> dahdi show channels
    Chan Extension Context Language MOH Interpret Blocked State pseudo default default
    In Service voip*CLI> quit
    [root@voip ~]#

  • Run “dahdi_cfg -vvv” to verify DAHDI kernel modules are loaded and configured correctly.

    Verify chan_dahdi.so is built and located in your Asterisk modules directory, usually /usr/lib/asterisk/modules/ If there is no chan_dahdi.so chances are you built Asterisk before installing DAHDI. Rerun ./configure or run “make distclean” and then rerun ./configure to rebuild Asterisk.

    Use the command “module show like dahdi” in the Asterisk CLI to verify chan_dahdi.so is loaded. If it isn’t loaded then chances are you have a chan_dahdi.conf issue.

    —–Original Message—

  • Here are the commands

    asteriskpbx@pbxmain:/etc/dahdi$ dahdi_cfg -vvv DAHDI Tools Version – 2.7.0.2

    DAHDI Version: 2.7.0.1
    Echo Canceller(s): MG2
    Configuration
    ======================

    Channel map:

    Channel 01: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 01)
    Channel 02: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 02)
    Channel 03: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 03)
    Channel 04: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 04)
    Channel 05: FXO Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 05)
    Channel 06: FXO Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 06)
    Channel 07: FXO Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 07)
    Channel 08: FXO Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 08)

    8 channels to configure.

    Setting echocan for channel 1 to mg2
    Setting echocan for channel 2 to mg2
    Setting echocan for channel 3 to mg2
    Setting echocan for channel 4 to mg2
    Setting echocan for channel 5 to mg2
    Setting echocan for channel 6 to mg2
    Setting echocan for channel 7 to mg2
    Setting echocan for channel 8 to mg2
    asteriskpbx@pbxmain:/etc/dahdi$

    pbxmain*CLI> module show like chan_dahdi.so Module

  • What’s the output of lsdahdi? Note channels there that are open (by Asterisk).

    Try running in the asterisk CLI:

    module unload chan_dahdi.so
    module load chan_dahdi.so

    The ‘load’ command will probably fail and give you the real error. Though you should probably already have it in the logs.

  • For the record: this output shows that the DAHDI channels have been configured (they got the FXSKS signalling, which means it was applied by running dahdi_cfg) but they are not ‘(in use)’, which means that no channel has been opened by Asterisk’s chan_dahdi.