Koozali.org: home of the SME Server

Asterisk with dahdi and SAIL installed on a fresh updated 7.4...how...?????

Offline psoren

  • *
  • 371
  • +0/-0
Hi.

I am trying to get asterisk and sail installed on a new server installation. I would like to use the dahdi version.
I have looked at the forum and selintra wiki, but i just get confused now on how to get it installed.
Can it really be so difficult? Or do i just overlook something?
I keep running into wrong versions and dependency problems.

Can anyone help me with that?

Per

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Hi Psoren,

sail is easy...  you just install the latest 2.4.x rpm (if you want DAHDI support).  Unfortunately, Asterisk can be very difficult if you don't have the correct kmdl rpms for yor kernel.  For that reason we put a section on the wiki to show you how to install and compile asterisk from sources.

It's a pain but there you are, there isn't really anything to be done. The SME folks are always behind on the kernel release (not their fault - its tough just to keep up) and ATrpms keep only the current and -1 kernel versions of their RPMS. 

Kind Regards.

S


Offline psoren

  • *
  • 371
  • +0/-0
OK....

Now i am trying to compile asterisk from source. But i get this error when running ./configure :

configure: error: in `/root/Dahdi/Source/asterisk-1.4.29':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check

I am not sure if i have what i need to compile, it's new for me.

Per

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
I think its telling you that you need the C++ compiler

This document may help.

http://sarkpbx.com/twiki/bin/view/Main/DocChapter03d

There is a line

yum install gcc gcc-c++ ncurses-devel


This will install (among other things) the C++ compiler.

Kind Regards

S

Offline psoren

  • *
  • 371
  • +0/-0
SUCCESS!!!

I got it working by following the wiki.

Not that hard really ;-)

So... If i compile this on a machine just for that purpose, how do i move it to the machine where i want to run asterisk?
Is that just to move the directory after "make" ?

Per

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
no not really - unless you want to begin building your own rpms.  The Asterisk directory structure is complex.  That's not to say you couldn't move it but it's easier just to install the dev tools, do the install and then remove the dev tools again. That's what Digium recommend, although they have now developed some rpms for RHEL5

Kind Regards

S