Koozali.org: home of the SME Server
Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: rhodan 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://wiki.contribs.org/SME8.0_Contribs_QA#Setup)
http://forums.contribs.org/index.php/topic,48142.0.html (http://forums.contribs.org/index.php/topic,48142.0.html)
Then:
yum --enablerepo=sme7contribs --enablerepo=smecontribs --enablerepo=atrpms install smeserver-freepbx dahdi-linux-kmdl-$(uname -r)
signal-event freepbx-update
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 (http://wiki.contribs.org/FreePBX)
After each kernel-update you have to update dahdi and dependencies
So after the first reboot:
yum --enablerepo=sme7contribs --enablerepo=smecontribs --enablerepo=atrpms install dahdi-linux-kmdl-$(uname -r)
yum --enablerepo=sme7contribs --enablerepo=smecontribs update
after that, and only if smeserver-freepbx had been updated:
signal-event freepbx-update
finish with:
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.
-
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
-
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?
[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
[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:
Forbidden
You don't have permission to access /freepbx/ on this server.
orNot Found
The requested URL /freepbx/admin was not found on this server.
But I see lots of freepbx on httpd.conf:
[root@guepardo hylafax]# grep freepbx /etc/httpd/conf/httpd.conf |wc -l
30
EDIT: found errors showing on console after a "asterisk -rvvvvvvv":
[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:
[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 ??