asterisk-dahdi does not install modules?
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 10 of 10
  1. #1
    Join Date
    Jul 2006
    Location
    Transgression
    Age
    40
    Posts
    1,182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question [SOLVED] asterisk-dahdi does not install modules?

    Code:
    ...
    Installed:
      asterisk-dahdi.x86_64 0:1.6.0.15-1.fc10   dahdi-tools.x86_64 0:2.0.0-1.fc10 
      dahdi-tools-libs.x86_64 0:2.0.0-1.fc10   
    
    Dependency Installed:
      asterisk.x86_64 0:1.6.0.15-1.fc10                                             
    
    [^v^] service asterisk restart
    Stopping asterisk:                                         [FAILED]
    Starting asterisk:                                         [  OK  ]
    
    [^v^] service dahdi restart
    Unloading DAHDI hardware modules:                          [  OK  ]
    Loading DAHDI hardware modules:
    FATAL: Module dahdi not found.
      wct4xxp:                                                 [  OK  ]
      wcte12xp:                                                [  OK  ]
      wct1xxp:                                                 [  OK  ]
      wcte11xp:                                                [  OK  ]
      wctdm24xxp:                                              [  OK  ]
      wcfxo:                                                   [  OK  ]
      wctdm:                                                   [  OK  ]
      xpp_usb:                                                 [  OK  ]
    
    [^v^] yum info asterisk-dahdi
    ...
    Installed Packages
    Name       : asterisk-dahdi
    Arch       : x86_64
    Version    : 1.6.0.15
    Release    : 1.fc10
    Size       : 509 k
    Repo       : installed
    From repo  : updates
    Summary    : Modules for Asterisk that use DAHDI
    URL        : http://www.asterisk.org/
    License    : GPLv2
    Description: Modules for Asterisk that use DAHDI.
    
    [^v^] dahdi_cfg
    Notice: Configuration file is /etc/dahdi/system.conf
    line 0: Unable to open master device '/dev/dahdi/ctl'
    
    1 error(s) detected
    
    [^v^] modprobe dahdi
    FATAL: Module dahdi not found.
    [^v^] modprobe dahdi_dummy
    FATAL: Module dahdi_dummy not found.
    [^v^] dahdi_test
    Unable to open dahdi interface: No such file or directory
    [^v^]
    But yet no modules in the system, and no /dev/dahdi devices. Anyone have any ideas on this?
    Last edited by Vector; 17th November 2010 at 03:47 AM.

  2. #2
    Join Date
    Nov 2009
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have the same problem in fc12. Did you ever work out a solution other than building the modules from source (which on fc12 throw all sorts of errors)?

  3. #3
    Join Date
    Jul 2006
    Location
    Transgression
    Age
    40
    Posts
    1,182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well i did, and it was 12-beta. I had to compile it. The thing that i found out was that the asterisk-dahdi package is only a set of TOOLS to work with the dahdi modules. Now, if you were using AsteriskNOW (and i think also CentOS, because that is what it is derived from), you could yum the package for the modules; but that is because it is the official distro of asterisk. But for Fedora*, you MUST compile them. I don't remember what the dependencies are, because i went back to F10 (but now must to back to F12 because i need newer hplip drivers!).

  4. #4
    Join Date
    Nov 2009
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    do you happen to remember how you got it to build? in fc12 the source doesnt build and i havent been able to work out why. am getting the following error when i run make;

    CC [M] /usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.o
    /usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c: In function ‘wctc4xxp_net_register’:
    /usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c:776: error: ‘struct net_device’ has no member named ‘set_multicast_list’
    /usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c:777: error: ‘struct net_device’ has no member named ‘open’
    /usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c:778: error: ‘struct net_device’ has no member named ‘stop’
    /usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c:779: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
    /usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c:780: error: ‘struct net_device’ has no member named ‘get_stats’
    /usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.c:781: error: ‘struct net_device’ has no member named ‘do_ioctl’
    make[3]: *** [/usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp/base.o] Error 1
    make[2]: *** [/usr/src/dahdi-linux-2.2.0.2/drivers/dahdi/wctc4xxp] Error 2
    make[1]: *** [_module_/usr/src/dahdi-linux-2.2.0.2/drivers/dahdi] Error 2
    make[1]: Leaving directory `/usr/src/kernels/2.6.31.5-127.fc12.i686.PAE'
    make: *** [modules] Error 2

  5. #5
    Join Date
    Jul 2006
    Location
    Transgression
    Age
    40
    Posts
    1,182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try:

    Code:
    yum -y install dahdi-tools kernel-devel kernel-headers
    Then after that try the normal:
    Code:
    cd Desktop/dahdi-linux*
    ./configure
    make distclean
    make 
    make install
    I could be wrong on that last part, but the instructions for it are in the readme in the packages folder.

  6. #6
    Join Date
    Nov 2009
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah the default build process doesnt work on a fc12 machine though. the solution i have arrived at (just in case anyone else runs into this issue) is to comment out the following line in drivers/dahdi/Kbuild.

    obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTC4XXP) += wctc4xxp/

    after that, the make and install process runs perfectly. i dont have hardware that uses wctc4xxp, so this worked for me, but will still be an issue for anyone that has that hardware.

    thanks for your help.

  7. #7
    Join Date
    Jul 2006
    Location
    Transgression
    Age
    40
    Posts
    1,182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't forget to comment out ALL of the hardware modules (i think it's in /etc/dahdi/dahdi.conf).

  8. #8
    Join Date
    Nov 2009
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i did see a reference to commenting out the modules. what effect does this have? should this only be done if i am getting errors? at this point i havent commented the modules out and it appears to be working fine, but i could be wrong.

  9. #9
    Join Date
    Jul 2006
    Location
    Transgression
    Age
    40
    Posts
    1,182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You don't have that hardware, so you don't want those modules loaded. I can't remember what it does if you fail to comment them, but it is a nuisance.

  10. #10
    Join Date
    Jul 2006
    Location
    Transgression
    Age
    40
    Posts
    1,182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [SOLVED] asterisk-dahdi does not install modules?

    Got a solution:
    Code:
    [^v^]# yum list *dahdi*
    Loaded plugins: langpacks, presto, refresh-packagekit
    Adding en_US to language list
    Installed Packages
    asterisk-dahdi.i686                  1.6.2.12-0.1.rc1.fc14               @fedora
    dahdi-tools.i686                     2.1.0.2-10.fc14                     @fedora
    dahdi-tools-libs.i686                2.1.0.2-10.fc14                     @fedora
    Available Packages
    dahdi-tools-devel.i686               2.1.0.2-10.fc14                     fedora 
    [^v^]# 
    [^v^]# 
    [^v^]# 
    [^v^]# rpm --import http://packages.atrpms.net/RPM-GPG-KEY.atrpms
    [^v^]# 
    [^v^]# 
    [^v^]# 
    [^v^]# vi /etc/yum.repos.d/atrpms.repo
    [atrpms]
    name=Fedora Core $releasever - $basearch - ATrpms
    baseurl=http://dl.atrpms.net/f$releasever-$basearch/atrpms/stable
    gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
    gpgcheck=1
    enabled=0
    
    [^v^]# 
    [^v^]# 
    [^v^]# 
    [^v^]# yum list *dahdi* --enablerepo=atrpms
    Loaded plugins: langpacks, presto, refresh-packagekit
    Adding en_US to language list
    atrpms                                                   | 3.0 kB     00:00     
    atrpms/primary_db                                        | 515 kB     00:01     
    Installed Packages
    asterisk-dahdi.i686                                1.6.2.12-0.1.rc1.fc14 @fedora
    dahdi-tools.i686                                   2.1.0.2-10.fc14       @fedora
    dahdi-tools-libs.i686                              2.1.0.2-10.fc14       @fedora
    Available Packages
    dahdi-linux.i686                                   2.4.0-69.fc14         atrpms 
    dahdi-linux-devel.i686                             2.4.0-69.fc14         atrpms 
    dahdi-linux-kmdl-2.6.35.6-48.fc14.i686             2.4.0-69.fc14         atrpms 
    dahdi-linux-kmdl-2.6.35.6-48.fc14.PAE.i686         2.4.0-69.fc14         atrpms 
    dahdi-linux-kmdl-2.6.35.6-48_1.cubbi_tuxonice.fc14.i686
                                                       2.4.0-69.fc14         atrpms 
    dahdi-linux-kmdl-2.6.35.6-48_1.cubbi_tuxonice.fc14.PAE.i686
                                                       2.4.0-69.fc14         atrpms 
    dahdi-tools.i686                                   1:2.4.0-67.fc14       atrpms 
    dahdi-tools-devel.i686                             1:2.4.0-67.fc14       atrpms 
    [^v^]# 
    [^v^]# 
    [^v^]# 
    [^v^]# yum install dahdi-linux --enablerepo=atrpms
    Loaded plugins: langpacks, presto, refresh-packagekit
    Adding en_US to language list
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package dahdi-linux.i686 0:2.4.0-69.fc14 set to be installed
    --> Processing Dependency: dahdi-linux-kmdl-2.4.0-69.fc14 for package: dahdi-linux-2.4.0-69.fc14.i686
    atrpms/filelists_db                                      | 1.0 MB     00:01     
    fedora/filelists_db                                      |  17 MB     00:20     
    updates/filelists_db                                     | 2.6 MB     00:03     
    --> Running transaction check
    ---> Package dahdi-linux-kmdl-2.6.35.6-48.fc14.PAE.i686 0:2.4.0-69.fc14 set to be installed
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ================================================================================
     Package                                 Arch   Version          Repository
                                                                               Size
    ================================================================================
    Installing:
     dahdi-linux                             i686   2.4.0-69.fc14    atrpms   2.4 M
    Installing for dependencies:
     dahdi-linux-kmdl-2.6.35.6-48.fc14.PAE   i686   2.4.0-69.fc14    atrpms   485 k
    
    Transaction Summary
    ================================================================================
    Install       2 Package(s)
    
    Total download size: 2.9 M
    Installed size: 4.4 M
    Is this ok [y/N]: y
    Downloading Packages:
    Setting up and reading Presto delta metadata
    Processing delta metadata
    Package(s) data still to download: 2.9 M
    (1/2): dahdi-linux-2.4.0-69.fc14.i686.rpm                | 2.4 MB     00:03     
    (2/2): dahdi-linux-kmdl-2.6.35.6-48.fc14.PAE-2.4.0-69.fc | 485 kB     00:00     
    --------------------------------------------------------------------------------
    Total                                           652 kB/s | 2.9 MB     00:04     
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing     : dahdi-linux-2.4.0-69.fc14.i686                           1/2 
      Installing     : dahdi-linux-kmdl-2.6.35.6-48.fc14.PAE-2.4.0-69.fc14.i6   2/2 
    
    Installed:
      dahdi-linux.i686 0:2.4.0-69.fc14                                              
    
    Dependency Installed:
      dahdi-linux-kmdl-2.6.35.6-48.fc14.PAE.i686 0:2.4.0-69.fc14                    
    
    Complete!
    [^v^]# 
    [^v^]# 
    [^v^]# 
    [^v^]# service dahdi restart
    Unloading DAHDI hardware modules: doneLoading DAHDI hardware modules:
    
    No hardware timing source found in /proc/dahdi, loading dahdi_dummy
    Running dahdi_cfg:                                         [  OK  ]
    [^v^]# 
    [^v^]# 
    [^v^]# 
    [^v^]# service asterisk restart
    Stopping asterisk:                                         [  OK  ]
    Starting asterisk:                                         [  OK  ]
    [^v^]# 
    [^v^]# 
    [^v^]# 
    [^v^]# dahdi_test
    Opened pseudo dahdi interface, measuring accuracy...
    99.996% 99.065% 99.994% 99.992% 99.993% 99.993% ^C
    --- Results after 6 passes ---
    Best: 99.996 -- Worst: 99.065 -- Average: 99.838687, Difference: 99.838686
    [^v^]#


    ---------- Post added at 09:51 PM GMT ---------- Previous post was at 09:47 PM GMT ----------

    This is confirmed to be working on my LIVE Fedora 14 server. No compiling, just yum :
    Code:
    [^v^]# asterisk -rvvvvvvvvvvvvv
    Asterisk 1.6.2.12-rc1, Copyright (C) 1999 - 2010 Digium, Inc. and others.
    Created by Mark Spencer <markster@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.
    =========================================================================
      == Parsing '/etc/asterisk/asterisk.conf':   == Found
      == Parsing '/etc/asterisk/extconfig.conf':   == Found
    Connected to Asterisk 1.6.2.12-rc1 currently running on pty12335b (pid = 15944)
    Verbosity was 0 and is now 13
    pty12335b*CLI> 
    pty12335b*CLI> 
    pty12335b*CLI> 
    pty12335b*CLI> 
      == Using SIP RTP CoS mark 5
      == Using SIP VRTP CoS mark 6
        -- Executing [100@office:1] Answer("SIP/out-business-00000000", "") in new stack
        -- Executing [100@office:2] Wait("SIP/out-business-00000000", "1") in new stack
        -- Executing [100@office:3] GotoIf("SIP/out-business-00000000", "0?097,1") in new stack
        -- Executing [100@office:4] GotoIf("SIP/out-business-00000000", "0?097,1") in new stack
        -- Executing [100@office:5] GotoIf("SIP/out-business-00000000", "0?097,1") in new stack
        -- Executing [100@office:6] GotoIf("SIP/out-business-00000000", "0?097,1") in new stack
        -- Executing [100@office:7] GotoIf("SIP/out-business-00000000", "0?097,1") in new stack
        -- Executing [100@office:8] GotoIf("SIP/out-business-00000000", "0?097,1") in new stack
        -- Executing [100@office:9] BackGround("SIP/out-business-00000000", "menu-personal-1") in new stack
        -- <SIP/out-business-00000000> Playing 'menu-personal-1.ulaw' (language 'en')
      == CDR updated on SIP/out-business-00000000
        -- Executing [098@office:1] MixMonitor("SIP/out-business-00000000", "Conference.wav,a") in new stack
        -- Executing [098@office:2] MeetMe("SIP/out-business-00000000", "098,M") in new stack
      == Parsing '/etc/asterisk/meetme.conf':   == Found
        -- Created MeetMe conference 1023 for conference '098'
      == Begin MixMonitor Recording SIP/out-business-00000000
        -- <SIP/out-business-00000000> Playing 'conf-getpin.ulaw' (language 'en')
        -- <SIP/out-business-00000000> Playing 'conf-invalidpin.ulaw' (language 'en')
        -- <SIP/out-business-00000000> Playing 'conf-getpin.ulaw' (language 'en')
           > Starting recording of MeetMe Conference 098 into file (null).(null).
        -- <SIP/out-business-00000000> Playing 'conf-onlyperson.ulaw' (language 'en')
        -- Started music on hold, class 'default', on SIP/out-business-00000000
        -- Stopped music on hold on SIP/out-business-00000000
        -- Started music on hold, class 'default', on SIP/out-business-00000000
        -- Stopped music on hold on SIP/out-business-00000000
        -- Hungup 'DAHDI/pseudo-352096823'
      == Spawn extension (office, 098, 2) exited non-zero on 'SIP/out-business-00000000'
      == MixMonitor close filestream
      == End MixMonitor Recording SIP/out-business-00000000
    pty12335b*CLI> exit
    Executing last minute cleanups
    [^v^]#

Similar Threads

  1. Replies: 3
    Last Post: 14th September 2009, 07:31 PM
  2. Replies: 2
    Last Post: 24th February 2009, 07:09 AM
  3. how to use yum to install perl modules?
    By aliber4079 in forum Using Fedora
    Replies: 3
    Last Post: 26th November 2007, 04:08 AM
  4. Fedora 5 to install Asterisk?
    By littlebigfred in forum Using Fedora
    Replies: 2
    Last Post: 27th June 2006, 04:25 AM
  5. Configuring PHP - How do I install modules?
    By kphi in forum Servers & Networking
    Replies: 8
    Last Post: 5th September 2005, 10:18 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •