[asterisk-users] Channels configuration with DAHDI

Tzafrir Cohen tzafrir.cohen at xorcom.com
Thu May 21 04:55:14 CDT 2009


On Thu, May 21, 2009 at 06:38:27AM -0300, Daniel Bareiro wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> El miércoles 20 de mayo del 2009 a las 21:19:18 -0300,
> Daniel Bareiro escribió:
> 
> >>>>> I load the modules wctdm and dahdi. But when I execute in Asterisk
> >>>>> CLI "dahdi show channels", I get the following error message:
> >>>>>
> >>>>>
> >>>>> No such command 'dahdi show channels' (type 'help dahdi show' for
> >>>>> other possible commands)
> 
> >>>> Try running:
> >>>>
> >>>>   asterisk -r
> >>>>
> >>>> and in that prompt:
> >>>>
> >>>>   module unload chan_dadhi.so
> >>>>   module   load chan_dadhi.so
> >>>>
> >>>> and tell us the output you got.
> 
> >>> # asterisk -r
> >>> Asterisk 1.4.24.1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
> >>> Created by Mark Spencer <markster at digium.com>
> >>> 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.4.24.1 currently running on alderamin (pid =
> >>> 19777)
> >>> Verbosity is at least 7
> >>> alderamin*CLI>
> >>> alderamin*CLI> module unload chan_dadhi.so
> >>> alderamin*CLI> module   load chan_dadhi.so
> >>> [May 20 17:52:19] WARNING[10345]: loader.c:359 load_dynamic_module:
> >>> Error loading module 'chan_dadhi.so':
> >>> /usr/lib/asterisk/modules/chan_dadhi.so: cannot open shared object file:
> >>> No such file or directory
> >>> [May 20 17:52:19] WARNING[10345]: loader.c:653 load_resource: Module
> >>> 'chan_dadhi.so' could not be loaded.
> >>> alderamin*CLI>
> >>> 
> >>> 
> >>> Mmmm... it would seem to be a bug:
> >>> 
> >>> /usr/lib/asterisk/modules/chan_dadhi.so: cannot open shared object file:
> >>> No such file or directory
> 
> >> Sounds like DAHDI was installed/compiled *after* Asterisk was
> >> compiled. Recompile Asterisk again and make sure
> >> /usr/lib/asterisk/modules/chan_dahdi.so is created when you make
> >> install.
> 
> > Mmmm... but I believe that it had done already in that order. In fact, I
> > reviewed the existence of the module and it was in the directory. For that
> > reasonI said that perhaps it was bug by the following thing:
> >
> > [May 20 20:49:07] WARNING[23599]: loader.c:359 load_dynamic_module:
> > Error loading module 'chan_dadhi.so':
> > /usr/lib/asterisk/modules/chan_dadhi.so: cannot open shared object file:
> >                           ^^^^^^^^^^^^^
> > No such file or directory
> > [May 20 20:49:07] WARNING[23599]: loader.c:653 load_resource: Module
> > 'chan_dadhi.so' could not be loaded.
> >
> > Apparently Asterisk is looking for the module using an incorrect name.
> > Whatever happens, I compile Asterisk again but I got the same error
> > message.
> 
> Now that I see the error with a little more of thoroughness, it seems
> that when doing a copy/paste in the CLI, the name of the module was
> incorrect and for that reason I got that error message :-). Now get a
> different error:
> 
> alderamin*CLI> module unload chan_dahdi.so
> alderamin*CLI> module load chan_dahdi.so
> [May 21 06:15:34] WARNING[25314]: chan_dahdi.c:1233 dahdi_open: Unable
> to specify channel 2: No such device or address
> [May 21 06:15:34] ERROR[25314]: chan_dahdi.c:7662 mkintf: Unable to open
> channel 2: No such device or address
> here = 0, tmp->channel = 2, channel = 2
> [May 21 06:15:34] ERROR[25314]: chan_dahdi.c:11270 build_channels:
> Unable to register channel '2'

In your configuration channel 2 is the first one, so this could be just
about anything related to accessing dahdi / zaptel . 

Do you use dahdi or zaptel?

What is the output of:

  cat /proc/zaptel/*


  cat /proc/dahdi/*

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list