Koozali.org: home of the SME Server

Freepbx on sme 7.4

Offline ocascante

  • **
  • 36
  • +0/-0
Re: Freepbx on sme 7.4
« Reply #15 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.
« Last Edit: March 05, 2010, 10:23:20 PM by ocascante »

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Freepbx on sme 7.4
« Reply #16 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
C'est la fin du monde !!! :lol:

Offline ocascante

  • **
  • 36
  • +0/-0
Re: Freepbx on sme 7.4
« Reply #17 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.

 
« Last Edit: March 10, 2010, 06:46:16 PM by ocascante »

Offline ocascante

  • **
  • 36
  • +0/-0
SOLVED!! Freepbx on sme 7.4
« Reply #18 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.

Offline ocascante

  • **
  • 36
  • +0/-0
Re: Freepbx on sme 7.4
« Reply #19 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.

Offline ocascante

  • **
  • 36
  • +0/-0
SOLVED!! Freepbx on sme 7.4
« Reply #20 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.
« Last Edit: March 17, 2010, 11:22:39 PM by ocascante »

Offline ocascante

  • **
  • 36
  • +0/-0
Re: Freepbx on sme 7.4
« Reply #21 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.

Offline charlien

  • ****
  • 88
  • +0/-0
    • http://www.rn-computing.com
Re: Freepbx on sme 7.4
« Reply #22 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?
« Last Edit: May 14, 2010, 05:47:47 AM by charlien »
...

Offline ocascante

  • **
  • 36
  • +0/-0
Re: Freepbx on sme 7.4
« Reply #23 on: May 14, 2010, 06:15:20 PM »
It was my mistake..sorry. The correct name is dahdi-linux-kmdl-$(uname-r)

HTH

Offline charlien

  • ****
  • 88
  • +0/-0
    • http://www.rn-computing.com
Re: Freepbx on sme 7.4
« Reply #24 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!
...

Offline charlien

  • ****
  • 88
  • +0/-0
    • http://www.rn-computing.com
Re: Freepbx on sme 7.4
« Reply #25 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"
...