Koozali.org: home of the SME Server

Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: ocascante on March 03, 2010, 09:15:39 PM

Title: Freepbx on sme 7.4
Post by: ocascante on March 03, 2010, 09:15:39 PM
HI,

I did try to install freepbx on sme server 7.4 without success. First i had problems with the kernel version, then with the dahdi version, and finally i have this error:  fatal: cannot find freepbx_engine.

Thanks for any help!!
Title: Re: Freepbx on sme 7.4
Post by: Stefano on March 03, 2010, 10:24:07 PM
how did you try to install it?

did you read this (http://wiki.contribs.org/FreePBX) wiki page?
Title: Re: Freepbx on sme 7.4
Post by: ocascante on March 03, 2010, 10:37:25 PM
Yes, i did it. And a lot of internet pages more.
I have more than 6 days trying to install asterisk and freepbx.
The wiki page is incomplete or was written for a previous version i think.
I don't want to install Sail, just freepbx with asterisk.
Title: Re: Freepbx on sme 7.4
Post by: Stefano on March 03, 2010, 10:51:04 PM
in this case report to bugzilla and the mantainer of the contrib
Title: Re: Freepbx on sme 7.4
Post by: ocascante on March 03, 2010, 11:06:28 PM
Well, is not a solution... but first i think the question is: someone has had success installing freepbx on sme server 7.4.

Title: Re: Freepbx on sme 7.4
Post by: Daniel B. on March 04, 2010, 07:51:13 AM
Well, of course it's working. I use it on several production servers, and it's working great. There's just a little problem with the asterisk dependency for the moment (because ATRPMs packages has been renamed). But there's a version in smetest which should solve this. Just try (after having configured the fws repo as explained in the Wiki page http://wiki.contribs.org/FreePBX):

Code: [Select]
yum --enablerepo=fws install dahdi-linux-kmdl-$(uname -r)
yum --enablerepo=smecontribs --enablerepo=smetest install smeserver-freepbx
signal-event freepbx-update

Regards
Title: Re: Freepbx on sme 7.4
Post by: ocascante on March 05, 2010, 05:38:22 PM
Thanks for your help
Maybe i am doing something wrong. I did configure the fws repo. When i try to install dahdi-linux-kmdl- with the kernel version, i have  an error: "missing dependency dahdi-linux = 2.2.0.2-65.e 4
If i try "yum --enablerepo=fws install dadhi-linux dahdi-linux-km.......  another error apears.

Title: Re: Freepbx on sme 7.4
Post by: Daniel B. on March 05, 2010, 05:42:37 PM
And what about this:
Code: [Select]
yum --enablerepo=smecontribs --enablerepo=fws install dahdi-linux-kmdl-$(uname -r)
yum --enablerepo=smecontribs --enablerepo=smetest install smeserver-freepbx
signal-event freepbx-update
Title: Re: Freepbx on sme 7.4
Post by: ocascante on March 05, 2010, 05:46:16 PM
The first line shows the same error: missing dependency: dahdi-linux-2.2.0.2-65.el4
Title: Re: Freepbx on sme 7.4
Post by: Stefano on March 05, 2010, 05:53:43 PM
VIP-ire: just tested myself:

Code: [Select]
Error: Missing Dependency: dahdi-linux = 2.2.0.2-65.el4 is needed by package dahdi-linux-kmdl-2.6.9-89.0.16.EL
Error: Missing Dependency: asterisk-addons is needed by package smeserver-freepbx
Error: Missing Dependency: asterisk is needed by package smeserver-freepbx
Error: Missing Dependency: /boot/vmlinuz-2.6.9-89.0.19.EL is needed by package dahdi-linux-kmdl-2.6.9-89.0.19.EL

HTH
Title: Re: Freepbx on sme 7.4
Post by: ocascante on March 05, 2010, 05:57:49 PM
Something funny is that apparently there no such dadhi-linux-2.2.0.2-65.el4.rpm.
Title: Re: Freepbx on sme 7.4
Post by: Daniel B. on March 05, 2010, 05:59:28 PM
Ok. as I said before, the problem is that SME Server kernel are not in sync with CentOS ones. If you want to install FreePBX, you'll need to update your kernel to the latest available from smeupdates-testing (2.6.9-89.0.20.EL):

Code: [Select]
yum --enablerepo=smeupdates-tesing update kernel kernel-smp

Then, you should be able to install dahdi. Of course, installing packages from smeupdates-testing shouldn't be done directly on production system, so be carefull. I use those kernel (from smeupdates-testing) on several servers without problem but...

Regards
Title: Re: Freepbx on sme 7.4
Post by: Stefano on March 05, 2010, 06:07:05 PM
Ok. as I said before, the problem is that SME Server kernel are not in sync with CentOS ones. If you want to install FreePBX, you'll need to update your kernel to the latest available from smeupdates-testing (2.6.9-89.0.20.EL):

Code: [Select]
yum --enablerepo=smeupdates-tesing update kernel kernel-smp

Then, you should be able to install dahdi. Of course, installing packages from smeupdates-testing shouldn't be done directly on production system, so be carefull. I use those kernel (from smeupdates-testing) on several servers without problem but...

Regards

well.. is there any difference between kernels in smeupdates-testing and in centos' repo?

I mean:
Code: [Select]
[root@srvarch .ssh]# yum --enablerepo=centosplus update kernel

]cut[

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 kernel                  i686       2.6.9-89.0.20.plus.c4  centosplus         15 M

Transaction Summary
=============================================================================
Install      1 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         
Total download size: 15 M
Is this ok [y/N]:

is it ok?
Title: Re: Freepbx on sme 7.4
Post by: ocascante on March 05, 2010, 06:13:28 PM
I knew it was a kernel problem but made a mistake trying to update it. I used "rpm -Uvh kernel .... " to update sme.
Now i gonna try using using your update instructions.
Thanks again and i will tell you how it works.
Title: Re: Freepbx on sme 7.4
Post by: Daniel B. on March 05, 2010, 06:23:32 PM
well.. is there any difference between kernels in smeupdates-testing and in centos' repo?

I mean:
Code: [Select]
[root@srvarch .ssh]# yum --enablerepo=centosplus update kernel

Yes, there're some differences. Centos plus repo provides different kernels than Centos base repo (well, they are basically the same with the addtionnal support for hardware). DAHDI kernel modules on fws repo are built for centos kernels (those you can find in smeupdates-testing at the moment), not for centosplus ones. If you want to use centospluls kernel (once again, at your own risk), you can find DAHDI kmdl on ATRrpms. See this page for all the available DAHDI kmdl: http://atrpms.net/dist/el4/dahdi-linux/
Title: Re: Freepbx on sme 7.4
Post by: ocascante on March 05, 2010, 08:54:32 PM
Ok,,,this is the result:

1- Upgrade the kernel using smeupdates-tesing repo. ok
2- yum install dahdi-linux-kmdl-.....  from fws repo works correctly
3- yum install smeserver-freepbx from smetest have an error.
4- yum install smeserver-freepbx from smecontribs works correctly.
5- signal-event post-upgrade; signal-event reboot
6- when the system starts an error appears: "fatal can not find freepbx_engine to start asterisk"

Asterisk and freepbx are not running.
Title: Re: Freepbx on sme 7.4
Post by: Daniel B. on March 06, 2010, 07:17:58 PM
What was the error message for smeserver-freepbx from smetest ?

For the error about freepbx_egine not found, it looks like you forgot to run
Code: [Select]
signal-event freepbx-update.

Regards
Title: Re: Freepbx on sme 7.4
Post by: ocascante on March 10, 2010, 04:14:41 PM
Hi again:

Apparently the repo was down at that time. I could install it from smetest today and have the same error.
Yes, i did a freepbx-update signal, even a post-upgrade and reboot signal.
The same error apears: can not find freepbx_engine.
I was looking at amportal.conf file, I think there might be the error.

My mistake:  smetest continue with the error "no match for argument smeserver-freepbx".
I did not realize that i was using "yum install --enablerepo=smecontribs --enablerepo=smetest". The error apears when i use the smetest repo only.

 
Title: SOLVED!! Freepbx on sme 7.4
Post by: ocascante on March 10, 2010, 11:53:06 PM
SOLVED!! Ok, finally i did it!!
Soon I will explain all the steps to follow to install freepbx, version 2.7.0 on SME Server version 7.4 in case someone is interested.
Title: Re: Freepbx on sme 7.4
Post by: ocascante on March 12, 2010, 02:53:42 PM
As promised, I write the steps to install the latest version of freepbx (2.7.0) in sme smeserver, version 7.4

- The first step is to upgrade the current kernel version using the procedure written by VIP-ire ( thanks again for your help ):

"yum --enablerepo=smeupdates-testing update kernel kernel-smp"

Now we need to reboot the sistem.

- Install linux-dahdi-kmdl from smecontribs

"yum install --enablerepo=smecontribs linux-dahdi-kmdl-$(uname -r)"
signal-event post-upgrade;signal-event reboot

- Install freepbx from smecontribs
"yum install --enablerepo=smecontribs smeserver-freepbx"
signal-event post-upgrade;signal-event reboot

- Update freepbx
signal-event freepbx-update

There is a problem with the installation script of freepbx. To work properly we need 2 databases, asteriskcdrdb and freepbxdb. The 2 databases are created but empty. The script does not create the tables.

- Create the necessary tables

Find the mysql installations scritps of freepbx, and execute them.
Two scripts are located in the directory /usr/share/freepbx/sources/freepbx-2.5.1/SQL
Go to this folder and at the prompt command type:

mysql freepbxdb < ./newinstall.sql
mysql asteriskcdrdb < ./cdr_mysql_table.sql

These two commands create the necessary tables in the databases.

At this time we have installed freepbx and we can access through the server-manager menu, but there's no modules installed. Because this freepbx version is too old, we cannot update it using the Module Admin option.

Now, we have to update freepbx.

- From command prompt:

cd /usr/src/
wget http://mirror.freepbx.org/freepbx-2.7.0.tar.gz
tar zxvf freepbx-2.7.0.tar.gz
cd freepbx-2.7.0
./start_asterisk start # for upgrades use: amportal start
./install_amp

This is the final step to upgrade freepbx. Now, we have the last freepbx version installed and we can go to Module Admin, from freepbx admin menu and install all the necessary modules.

Finally, I hope you excuse my English.
Title: SOLVED!! Freepbx on sme 7.4
Post by: ocascante on March 12, 2010, 02:56:17 PM
Last problem encountered and solved.

If you get a message from freepbx menu about "agi_bin" module
go into /var/lib/asterisk/bin and change in retrieve_conf the chmod permission where it says "chmod($targetfile,0754);" to "chmod($targetfile,0774);"

If the error persists delete all the files inside /usr/share/asterisk/agi-bin and change to asterisk the owned of agi-bin folder with the x bit set.
Title: Re: Freepbx on sme 7.4
Post by: ocascante on April 15, 2010, 06:58:33 PM
.... delete all the files inside /usr/share/asterisk/agi-bin and change to asterisk the owned of agi-bin folder with the x bit set.
Title: Re: Freepbx on sme 7.4
Post by: charlien on May 14, 2010, 05:08:33 AM
I'm following the instructions from ocascante. When I enter this:
"yum install --enablerepo=smecontribs linux-dahdi-kmdl-$(uname -r)"

I get this"
"No Match for argument: linux-dahdi-kmdl-2.6.9-89.0.25.EL
Nothing to do"

Any ideas?
Title: Re: Freepbx on sme 7.4
Post by: ocascante on May 14, 2010, 06:15:20 PM
It was my mistake..sorry. The correct name is dahdi-linux-kmdl-$(uname-r)

HTH
Title: Re: Freepbx on sme 7.4
Post by: charlien on May 14, 2010, 06:17:04 PM
It was my mistake..sorry. The correct name is dahdi-linux-kmdl-$(uname-r)

HTH

You mean that matters?  :)
Thank you very much!
Title: Re: Freepbx on sme 7.4
Post by: charlien on May 14, 2010, 07:01:10 PM
It was my mistake..sorry. The correct name is dahdi-linux-kmdl-$(uname-r)

HTH

Still get the error
"No Match for argument: dahdi-linux-kmdl-2.6.9-89.0.25.EL"