How does Digium Repo install Dahdi on a virtual container while I can’t do the same trying from source install?

Home » Asterisk Users » How does Digium Repo install Dahdi on a virtual container while I can’t do the same trying from source install?
Asterisk Users 6 Comments

Hello,

I can do simple, “yum install asterisk18-*” and it installs Asterisk and
Dahdi-tools/Dahdi-Linux on my OpenVZ container. Everything runs well and
smooth.

However, if I want to compile dahdi-linux on the same openvz then I get the
error, *”You do not appear to have the source for the 2.6.32-4-pve kernel
installed”.*
*
*
1- Based on above error and Google search I have concluded that dahdi-linux
module should be installed on mother node. So, I am puzzled. How does
Digium yum repository achive this without acessing the mother node?

2- Do I even need Dahdi, if the server doesn’t connect to PSTN at all and
it’s all SIP? If yes, what do I need it for?

Any feedback is much appreciated.

Thanks

6 thoughts on - How does Digium Repo install Dahdi on a virtual container while I can’t do the same trying from source install?

  • The repo files are pre-compiled and do not require the kernel headers. If you
    wish to compile dahdi from source, you’ll need access to the same headers your
    VM is running.

    Dahdi is a set of drivers for telephony hardware. You won’t need it for pure
    sip Asterisk implementations.

  • [snip]

    Unless things have changed with recent versions I think you still need
    DAHDI if you want to use MeetMe and maybe other modules that require
    proper timing (which DAHDI provides).

    Regards,
    Patrick

  • They have changed; DAHDI is required for MeetMe/SLA/Page, but is not
    required for timing. In Asterisk 10, ConfBridge can be a suitable
    replacement for MeetMe for many users as well.

  • 2012-01-16 19:41, asterisk jobs skrev:

    I’ve just installed a new server with OpenVZ. And as others has
    explained you will need Dahdi for Meetme among other things.

    You will need to install dahdi-complete on the Hardware node, and the
    kernel sources. ( Debian: apt-get install linux-headers-`uname -r` )

    In the VE conf-file you will need the following line for the VE to
    access Dahdi:
    DEVNODES=”dahdi/channel:rw dahdi/ctl:rw dahdi/pseudo:rw dahdi/timer:rw”

    In the VE, compile and install dahdi-complete, then build and install
    asterisk.

  • Thanks for all the input guys.

    I am using Asterisk 1.8 for this purpose.

    1- So, I do I still need Dahdi? And yes conference will be used.
    2- Can you please detail on compiled already code? My mother node for
    OpenVz is probably different from what Digium uses to compile the source.
    How does this work?
    3- How can I compile my own source code and then move it to my OpenVZ to
    work just the same?

    Thanks again

  • May I know how the compile RPM from Digium Repo gets to install DAHDI so
    easily on the VM? Can you please point me to how this compilation is done
    so I can have my own RPM of Asterisk with all options added on (e.g.
    ooh323, jabber, etc…)

    Thanks