Koozali.org: home of the SME Server

A quick how-to for installing smeserver-freepbx onto SME8

Offline rhodan

  • *
  • 12
  • +0/-0
A quick how-to for installing smeserver-freepbx onto SME8
« on: December 06, 2011, 01:56:13 AM »
This will install smeserver-freepbx with asterisk16 and dependencies. It looks like, with the exception of dahdi-linux-kmdl (which comes from atrpms), that all other dependencies are in the SME-repositories.

Attention!
 At the end you MUST do a "signal-event freepbx-update" BEFORE "signal-event post-upgrade; signal-event reboot".


Setting up sme7contribs and atrpms repositories:
http://wiki.contribs.org/SME8.0_Contribs_QA#Setup
http://forums.contribs.org/index.php/topic,48142.0.html

Then:
Code: [Select]
yum --enablerepo=sme7contribs --enablerepo=smecontribs --enablerepo=atrpms install smeserver-freepbx dahdi-linux-kmdl-$(uname -r)
Code: [Select]
signal-event freepbx-update
Code: [Select]
signal-event post-upgrade; signal-event reboot

You should have FreePBX working now. Further informations are at the FreePBX page here: http://wiki.contribs.org/FreePBX


After each kernel-update you have to update dahdi and dependencies

So after the first reboot:

Code: [Select]
yum --enablerepo=sme7contribs --enablerepo=smecontribs --enablerepo=atrpms install dahdi-linux-kmdl-$(uname -r)
Code: [Select]
yum --enablerepo=sme7contribs --enablerepo=smecontribs update
after that, and only if smeserver-freepbx had been updated:

Code: [Select]
signal-event freepbx-update
finish with:

Code: [Select]
signal-event post-upgrade; signal-event reboot

To-Do:
How to remove old dahdi-modules after an update.


I've set this up in VirtualBox with SME8b6 (server & gateway) and last updates before b7. After that I applied the SME8b7 update over it.
For instant I haven't created any extension, nor have I configured something (it's a virtual machine in a virtual network), but was able to update FreePBX from 2.6 to 2.7 to 2.8 to 2.9(latest stable) by using the update function in the FreePBX web-interface.

There are some udev errors while booting, claiming about invalid dahdi.rules, and this has been already like this before the update to b7 but it seems not to be critical. I will post this to the bug-tracker.
« Last Edit: December 08, 2011, 12:27:47 AM by rhodan »

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: A quick how-to for installing smeserver-freepbx onto SME8
« Reply #1 on: December 06, 2011, 09:51:23 AM »
Hi. Thanks for writing this.

For the udev errors (which you can ignore), please report it to the atrpms dev. I cannot do anything about it, only the packager of the dahdi-linux packages can fix it.

Regards, Daniel
C'est la fin du monde !!! :lol:

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: A quick how-to for installing smeserver-freepbx onto SME8
« Reply #2 on: February 25, 2012, 07:32:06 PM »
This do not work for me :(

I'm sure it's because I have several other things on this server: papercut , hylafax, ...

How can I start to diagnose my problem?
Code: [Select]
[root@guepardo hylafax]# asterisk -r
Asterisk 1.6.2.17.2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.17.2 currently running on guepardo (pid = 6816)
Verbosity is at least 3
guepardo*CLI>

and
Code: [Select]
[root@guepardo hylafax]# /etc/init.d/asterisk restart
ERROR: __ASTERISK_SBIN_DIR__/asterisk not found

EDIT: This can be fixed by edit /etc/init.d/asterisk as by http://forums.asterisk.org/viewtopic.php?f=1&t=74831
But even after a new freepbx-updates nothing changes.

and when I try to access web interface I get:
Code: [Select]
Forbidden
You don't have permission to access /freepbx/ on this server.
or
Code: [Select]
Not Found
The requested URL /freepbx/admin was not found on this server.

But I see lots of freepbx on httpd.conf:
Code: [Select]
[root@guepardo hylafax]# grep freepbx /etc/httpd/conf/httpd.conf |wc -l
30

EDIT: found errors showing on console after a "asterisk -rvvvvvvv":
Code: [Select]
[Feb 25 17:13:19] WARNING[5652]: db.c:57 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Feb 25 17:13:19] WARNING[5652]: db.c:498 ast_db_gettree: Database unavailable
[Feb 25 17:14:19] WARNING[5652]: db.c:57 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied

this dir has:

Code: [Select]
[root@guepardo asterisk]# ls -la
total 20
drwxr-xr-x  3 root root 4096 Feb 25 15:56 .
drwxr-xr-x 33 root root 4096 Oct 20 11:48 ..
drwxr-xr-x  2 root root 4096 Feb 25 15:14 agi-bin
-rw-r--r--  1 root root 8192 Feb 25 15:56 astdb
should I try to change owner to asterisk:asterisk ??
« Last Edit: February 25, 2012, 08:24:48 PM by jader »
...