Asterisk and Dahdi ON Amazon EC2

Home » Asterisk Users » Asterisk and Dahdi ON Amazon EC2
Asterisk Users 6 Comments

Hello Friends,

I am trying to Installl dahdi on amazon EC2 which have Open-SUSE-11.1 X86
version.

and here is snap of uname- a command

*Linux ip-10-160-86-41 2.6.32.19-0.3-ec2 #1 SMP 2010-09-17 20:28:21 +0200
x86_64 x86_64 x86_64 GNU/Linux*

when I try to run DAHDI distribution dahdi-linux-2.1.0.4

I am getting following error

*echo “You do not appear to have the sources for the 2.6.32.19-0.3-ec2
kernel installed.”
You do not appear to have the sources for the 2.6.32.19-0.3-ec2 kernel
installed.
exit 1
make: *** [modules] Error 1

*
Any one have some idea how to resolve it i am also goggling about 2 hours.

regards
Dhaval

6 thoughts on - Asterisk and Dahdi ON Amazon EC2

  • DAHDI and asterisk: from packages or from source? What version of
    asterisk?

    You need a “kernel source” (Porbably the huge kernel-source-* package is
    not required. IIRC SUSE now has a “kernel-devel-*” package (not sure how
    it is called. Please install it.

    That said, that version of DAHDI is rather old. Specifcally a version < =
    2.3.0 may not be a good timing source in your settings.

    Newer versions of asterisk As of 1.6.1 (and even more so: as of 1.6.2)
    DAHDI is much less required (as a timing source and as a mixer for
    conference rooms).

  • Thanks For your reply,

    A in previous version we were used a dahdi-linux-2.1.0.4 and we were changed
    dahdi_dummy.c
    file as we are using on xen kernel we changed following things

    #if defined(__i386__) || defined(__x86_64__)
    #if LINUX_VERSION_CODE >= VERSION_CODE(2,6,13)
    /* The symbol hrtimer_forward is only exported as of 2.6.22: */
    #if defined(CONFIG_HIGH_RES_TIMERS) && LINUX_VERSION_CODE >=
    VERSION_CODE(2,6,22)
    #define USE_HIGHRESTIMER
    #else
    /* #define USE_RTC */
    #endif
    #else
    #if 0
    /* #define USE_RTC */
    #endif
    #endif
    #endif

    simply put USE_RTC in comment , as in 2.3.0 version we cannot find this code
    into dahdi_dummy.c file,

    my question is that , if USE_RTC is not in dahdi_dummy.c file can we able to
    continue with dahdi.??
    as it still not started on my EC2 machine.

    i will keep posted for more information.

    regards
    Dhaval

  • One More thing,once i installed dahdi-2.3.0 complete it installed
    successfully , but when
    i tried to starting it gives me following error.

    *No DAHDI found. Unable to open /dev/dahdi/ctl: No such file or directory*

    what could be possible suggestion.

    regards
    dhaval

    On Tue, Dec 14, 2010 at 2:38 PM, DHAVAL INDRODIYA
    wrote:

  • Or rather:

    /etc/init.d/dahdi restart

    The old dahdi module may still be loaded. You may need to stop asterisk
    first, as it may be using DAHDI (for timing).