Проблемы с установкой FreePBX
| Код: |
| XML error: not well-formed (invalid token) at line 14 |
_________________
www.telb.kz
И ЗАБЫВАЕШЬ ПРО ВСЯКИЕ libxml2.
_________________
www.telb.kz
_________________
Gentoo Linux || Asterisk 11.2-cert3
Решения телефонии на базе Asterisk || http://it-need.ru
Поставил версию 2.1.3, теперь вот "обтачиваю напильником". А тут ошибко про xml, FreePBX выдаёт начиная с версии 2.2.0.
_________________
www.telb.kz
| aven писал(а): |
| А под FreeBSD кто-нить ставил FreePBX ? |
Кто-то ставил.
http://www.asterisk-support.ru/forums/co ... 15865/view
Еще откопал такое: http://freepbx.org/support/documentation ... or-freebsd
Там вылоржен порт для фряхи, но не стандартный, но ссылка мертвая
_________________
Gentoo Linux || Asterisk 11.2-cert3
Решения телефонии на базе Asterisk || http://it-need.ru
_________________
www.telb.kz
app_addon_sql_mysql.so
cdr_addon_mysql.so
res_config_mysql.so
required in /usr/lib/asterisk/modules/
cdr_addon_mysql.so
res_config_mysql.so
работает
_________________
www.telb.kz
###
Installing FreePBX
###
Important Warning!
FreePBX _will_ overwrite any exisiting asterisk configurations you may have. This project attempts
to manage as much of asterisk as it can, and this means lots of automatically generated dialplans.
Please visit both the Documentation wiki (http://www.aussievoip.com.au/wiki/FreePBX) and the Dev
wiki (http://www.freepbx.org/wiki) for instructions, hints and tips. As a rule of thumb, any
existing sip, iax, or extensions files can be copied to the same name with _custom.conf appended,
and things will continue to work as before.
###
FreePBX has several requirements, including the following packages (names may vary based on distro):
libxml2
libxml2-devel
libtiff
libtiff-devel
lame
httpd (or Apache2)
mysql (or mysql-client)
mysql-devel (or libmysqlclient10-dev)
mysql-server
php (or php4)
(on debian, also install libapache2-mod-php4)
php4-pear (if pear is not included with your php)
php-mysql
(on SUSE, also install php4-gettext and php4-session)
php-gd
openssl
openssl-devel (or libssl-dev)
kernel-devel (or linux-source)
perl
perl-CPAN
bison
ncurses-devel (or libncurses5-dev)
audiofile-devel (or libaudiofile-devel)
curl
sox
###
FreePBX requires the following changes to php and apache for uploading new MOH files:
(Note: Thise are reasonably distro specifc. Check http://www.aussievoip.com/wiki/FreePBX
for more documentation)
- vi +482 /etc/php.ini (or /etc/php4/apache2/php.ini)
upload_max_filesize=20M
- vi +14 /etc/httpd/conf.d/php.conf (if you have it)
LimitRequestBody 20000000
###
Download the latest FreePBX files:
- download the latest FreePBX tarball to /usr/src
- tar -zxvf freepbx.tar.gz
###
Getting Asterisk and Zaptel from SVN or download the latest Asterisk and Zaptel source archives
(FreePBX uses the v2.0 branch)
- cd /usr/src
- svn checkout http://svn.digium.com/svn/asterisk/branches/1.2 asterisk-1.2
- svn checkout http://svn.digium.com/svn/zaptel/branches/1.2 zaptel-1.2
- svn checkout http://svn.digium.com/svn/libpri/branches/1.2 libpri-1.2
###
For TDM zap devices (FXO/FXS):
- cd /usr/src/zaptel
- make && make install
If you will be using a Digium telephony card that supports T1/E1 signaling do this step as well:
- cd /usr/src/libpri
- make && make install
###
Patching Asterisk with softfax/spandsp.
- Download the latest 0.2 spandsp files from http://www.soft-switch.org
- cd /usr/src/spandsp-xxx
- ./configure
- make && make install
The spandsp libraries are installed to /usr/local/lib. Therefore /usr/local/lib must be added to the LD_LIBRARY_PATH environment variable of the user that starts the asterisk process. To be safe, also add it to /etc/ld.so.conf and run ldconfig.
Copy the following files (from soft-switch.org) to /usr/src/asterisk/apps/ :
- cp app_rxfax.c /usr/src/asterisk/apps/
- cp app_txfax.c /usr/src/asterisk/apps/
- cp apps_makefile.patch /usr/src/asterisk/apps/
- cd /usr/src/asterisk/apps
- patch < apps_makefile.patch
###
Create a group and non-root user:
- groupadd asterisk
- useradd -c "asterisk PBX" -d /var/lib/asterisk -g asterisk asterisk
###
Building Asterisk and configuring it to run as a non-root user
- mkdir /var/run/asterisk
- cd /usr/src/asterisk
- make clean && make && make install
###
Get and build cdr_mysql module for asterisk
- cd /usr/src/asterisk-addons
- perl -p -i.bak -e 's/CFLAGS.*D_GNU_SOURCE/CFLAGS+=-D_GNU_SOURCE\nCFLAGS+=-DMYSQL_LOGUNIQUEID/' Makefile
- make clean && make && make install
###
Install asterisk-sounds
- cd /usr/src/asterisk-sounds
- make install
###
Setting up MySQL for CDR and FreePBX web interface
- /usr/bin/mysql_install_db
- /etc/init.d/mysqld start (or /etc/init.d/mysql start)
- mysqladmin -u root password 'db_root_pwd'
- mysqladmin create asteriskcdrdb -p
- mysql --user=root --password=db_root_pwd asteriskcdrdb < /usr/src/freepbx/SQL/cdr_mysql_table.sql
- mysqladmin create asterisk -p
- mysql --user root -p asterisk < /usr/src/freepbx/SQL/newinstall.sql
###
Grant access to these two databases you just created
**Note the default mysql username/password is asteriskuser/amp109.
**If you change either of these, you will be prompted for them while running ./install below
- mysql --user root -p
mysql> GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY 'amp109';
Query OK, 0 rows affected (0.00 sec)
mysql> GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY 'amp109';
Query OK, 0 rows affected (0.00 sec)
mysql> quit
###
Run the "install" script to install all the FreePBX files:
- /usr/src/FreePBX/install_amp
###
Configure zaptel driver:
a. Edit /etc/zaptel.conf to reflect installed Digium telephony card(s).
Only the parameters/values relevant to a TDM400P with 4 FXO modules are included below:
fxsks=1-4
loadzone=us
defaultzone=us
Only the parameters/values relevant to a TE110P (T1 configuration) are included below:
span=1,1,0,esf,b8zs
bchan=1-23
dchan=24
loadzone=us
defaultzone=us
b. ztcfg -v
Zaptel Configuration
======================
1 channels configured.
If you get a warning about unable to open master device /dev/zap/ctl, that's ok. It's a result
of the zaptel module(s) not loaded yet.
Detailed information with regard to Asterisk's configuration files can be found here:
http://voip-info.org/wiki-Asterisk+config+files
###
Configure zapata module in asterisk config.
- edit /etc/asterisk/zapata.conf to reflect installed digium interfaces (see zapata.conf.template)
Only the parameters/values relevant to a TDM400P with 4 FXO modules are included below:
[channels]
language=en
#include zapata_additional.conf
context=from-pstn
signalling=fxs_ks
faxdetect=incoming
usecallerid=yes
callerid=asreceived
echocancel=yes
callprogress=no
busydetect=no
echocancelwhenbridged=no
echotraining=800
group=0
channel=1-4
Only the parameters/values relevant to a TE110P (T1 configuration) are included below:
[channels]
language=en
#include zapata_additional.conf
context=from-pstn
switchtype=national
pridialplan=national
signalling=pri_cpe
faxdetect=incoming
usecallerid=yes
echocancel=yes
callerid=asreceived
echocancelwhenbridged=no
echotraining=800
group=0
channel=1-23
Note: if your configuration is using zap channels as FXS endpoints, zapata.conf must
contain the following line in order to provision these endpoints in FreePBX's Extensions admin:
#include zapata_additional.conf
Detailed information with regard to Asterisk's configuration files can be found here:
http://voip-info.org/wiki-Asterisk+config+files
###
httpd (Apache) configuration
- Edit /etc/httpd/conf/httpd.conf (or /etc/apache2/apache2.conf) so that:
User asterisk
Group asterisk
###
Chown the PHP session.save_path directory:
- chown asterisk /var/lib/php/session
###
Amportal Control Script
FreePBX's amportal control script starts, stops or kills services in the FreePBX environment, and sets permissions on directories/files in the
FreePBX environment:
[root@pbx root]# amportal
----------AMP Control Script-----------
Usage: amportal start|stop|kill|chown
start: Starts Asterisk and Flash Operator Panel server
stop: Gracefully stops Asterisk and the FOP server
kill: Kills Asterisk and the FOP server
chown: Sets appropriate permissions on files
The amportal script is the recommended way to stop and start asterisk:
[root@pbx root]# /usr/sbin/amportal stop
[root@pbx root]# /usr/sbin/amportal start
###
Auto Start
The module/driver that you load at boot time depends upon whether you are using a
TDM400P or TE110P. The wcfxs module should be loaded for the former and the wcte11xp
module should be loaded for the latter.
The following scripts are for RedHat and derivatives that use an rc.local:
Edit /etc/rc.d/rc.local to include the following for the TDM400P:
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
echo Loading wcfxs
/sbin/modprobe wcfxs
/usr/sbin/amportal start
Edit /etc/rc.d/rc.local to include the following for the TE110P:
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
echo Loading wcte11xp
/sbin/modprobe wcte11xp
/usr/sbin/amportal start
For Debian and others (?), you'll have to add startup script(s) to /etc/init.d and link them
to the appropriate rc?.d runlevel.
Also ensure that mysql and apache are set to start at bootup. For RedHat-based systems do the following:
- chkconfig --level 3 httpd on
- chkconfig --level 3 mysqld on
###
Start everything (or reboot and it should start automagically):
- As root run:
service httpd restart
(or /etc/init.d/apache2 restart)
- As root run:
amportal start
- Point your browser to:
http://[ip address] (default login is admin/admin)
If you notice any errors or updates that are needed to this document, please e-mail:
info@coalescentsystems.ca
| F1ReB4LL писал(а): |
| Отличное описание установки. Сам по ней ставил все работает. Отлично!!! |
Это устаревшая версия. Ссылка с описанием как ставить фрипбх на фрю вот:
http://forum.provadmin.spb.ru/viewtopic.php?f=13&t=11
Адаптированная и поправленая FOP под эту версию:
http://forum.provadmin.spb.ru/viewtopic.php?f=11&t=25
Последний раз редактировалось: dr zlo (Чт Авг 20, 2009 08:55)
2 - маленькое, сразу с монитором и клавиатурой в 1 флаконе. Не требует при администрировании и обслуживании четатам подключать и перетаскивать. Если прикрутить ноут в раскрытом до предела состоянии к стене получается такая панель управления, как в фантастике. Гы. Просто прикольно.
3 - это ноут с дохлым экраном. 3 убитые пятна см по 3 на матрице по краям. При шевелении матрицы по изображению идут полосы. Куда еще такие помои, как не на стенку? Ремонт аналогичен покупке 3-х еще таких же с рук.
Checking for PEAR DB..FAILED
[FATAL] PEAR must be installed (requires DB.php). Include path: .:/usr/share/php5:/usr/share/php5/PEAR
У вас есть почта в /var/spool/mail/roman
roman@opensuse:~/install/freepbx-2.7.0>
_________________
Gentoo Linux || Asterisk 11.2-cert3
Решения телефонии на базе Asterisk || http://it-need.ru
opensuse:/home/roman/install/freepbx-2.7.0 # ./install_amp
Checking for PEAR DB..OK
Checking for PEAR Console::Getopt..OK
Checking user..OK
Checking if Asterisk is running..running with PID: 26965 20342..OK
Checking for /etc/amportal.conf../etc/amportal.conf does not exist, copying default
Creating new /etc/amportal.conf
Enter your USERNAME to connect to the 'asterisk' database:
[asteriskuser] admin
Enter your PASSWORD to connect to the 'asterisk' database:
[amp109] amp109
Enter the hostname of the 'asterisk' database:
[localhost] localhost
Enter a USERNAME to connect to the Asterisk Manager interface:
[admin] admin
Enter a PASSWORD to connect to the Asterisk Manager interface:
[amp111] amp111
Enter the path to use for your AMP web root:
[/var/www/html]
/var^C
Я извниняюсь,пошла установка начал создавать логин пароль,и неправилльно написал,решил сделать сброс ctrl+C,(блин) и получилась вот такое :
opensuse:/home/roman/install/freepbx-2.7.0 # ./install_amp
Checking for PEAR DB..OK
Checking for PEAR Console::Getopt..OK
Checking user..OK
Checking if Asterisk is running..running with PID: 26965 20342..OK
Checking for /etc/amportal.conf..OK
Reading /etc/amportal.conf..OK
Checking for /etc/asterisk/asterisk.conf..OK
Reading /etc/asterisk/asterisk.conf..OK
Using asterisk as PBX Engine
Checking for Asterisk version..1.6.2.8
Checking for selinux..sh: getenforce: команда не найдена
OK
Connecting to database..PHP Notice: Undefined index: AMPDBUSER in /home/roman/install/freepbx-2.7.0/install_amp on line 950
PHP Notice: Undefined index: AMPDBPASS in /home/roman/install/freepbx-2.7.0/install_amp on line 951
FAILED
Try running ./install_amp --username=user --password=pass (using your own user and pass)
[FATAL] Cannot connect to database
opensuse:/home/roman/install/freepbx-2.7.0 #
Как мне сбросить эти настройки чтоб записать правильные,или как быть?
javascript:emoticon('
opensuse:/home/roman/install/freepbx-2.7.0 # ./install_amp
Checking for PEAR DB..OK
Checking for PEAR Console::Getopt..OK
Checking user..OK
Checking if Asterisk is running..running with PID: 18056..OK
Checking for /etc/amportal.conf..OK
Reading /etc/amportal.conf..OK
Checking for /etc/asterisk/asterisk.conf..OK
Reading /etc/asterisk/asterisk.conf..OK
Using asterisk as PBX Engine
Checking for Asterisk version..1.6.2.9
Checking for selinux..OK
Connecting to database..OK
Checking current version of AMP..no version information
Assuming new installation
Installing new FreePBX files..OK (663 files copied, 0 skipped)
Configuring install for your environment..amportal..fpbx..freepbx_engine..done
apply username/password changes to conf files..done
creating missing #include files..OK
OK
Setting permissions on files..OK
Checking for upgrades..42 found
Upgrading to 1.10.007beta1..
-> Running SQL script /home/roman/install/freepbx-2.7.0/upgrades/1.10.007beta1/tables.sql
[FATAL] ALTER TABLE `sip` CHANGE `id` `id` BIGINT( 11 ) DEFAULT "-1" NOT NULL [nativecode=1146 ** Table 'asterisk.sip' doesn't exist]" while running tables.sql
opensuse:/home/roman/install/freepbx-2.7.0 #
Решения не нахожу пока,сталкивался может кто,подскажите ,будьте добры
Было бы понятно , если бы проблема была специфичной , но когда вам пишется "Table 'asterisk.sip' doesn't exist" , можно и подумать немного.
_________________
www.asterisk-skype.ru - "Линия 24" поддержка Skype for Asterisk
opensuse:/home/roman/install/freepbx-2.7.0 # ./install_amp --username=asteriskuser --password=amp109
.....
(1 accounts) Done.
Removing old password column..Done.
Checking if trunk table migration required..PHP Notice: Undefined index: OUTCID_1 in /home/roman/install/freepbx-2.7.0/upgrades/2.6.0beta1/tables.php on line 244
PHP Notice: Undefined index: OUTKEEPCID_1 in /home/roman/install/freepbx-2.7.0/upgrades/2.6.0beta1/tables.php on line 245
PHP Notice: Undefined index: OUTMAXCHANS_1 in /home/roman/install/freepbx-2.7.0/upgrades/2.6.0beta1/tables.php on line 246
PHP Notice: Undefined index: OUTFAIL_1 in /home/roman/install/freepbx-2.7.0/upgrades/2.6.0beta1/tables.php on line 247
PHP Notice: Undefined index: OUTPREFIX_1 in /home/roman/install/freepbx-2.7.0/upgrades/2.6.0beta1/tables.php on line 248
PHP Notice: Undefined index: OUTCID_1 in /home/roman/install/freepbx-2.7.0/upgrades/2.6.0beta1/tables.php on line 259
PHP Notice: Undefined index: OUTKEEPCID_1 in /home/roman/install/freepbx-2.7.0/upgrades/2.6.0beta1/tables.php on line 260
PHP Notice: Undefined index: OUTMAXCHANS_1 in /home/roman/install/freepbx-2.7.0/upgrades/2.6.0beta1/tables.php on line 261
PHP Notice: Undefined index: OUTFAIL_1 in /home/roman/install/freepbx-2.7.0/upgrades/2.6.0beta1/tables.php on line 262
PHP Notice: Undefined index: OUTPREFIX_1 in /home/roman/install/freepbx-2.7.0/upgrades/2.6.0beta1/tables.php on line 263
migrating..removing globals..done
И в конце:
Module core successfully installed
Module core successfully enabled
installed
Checking customappsreg..
Module customappsreg successfully installed
Module customappsreg successfully enabled
installed
Please update your modules and reload Asterisk by visiting http://192.168.0.111/admin
*************************************************************************
* Note: It's possible that if you click the red 'Update Now' bar BEFORE *
* updating your modules, your machine will start dropping calls. Ensure *
* that all modules are up to date BEFORE YOU CLICK THE RED BAR. As long *
* as this is observed, your machine will be fully functional whilst the *
* upgrade is in progress. *
*************************************************************************
opensuse:/home/roman/install/freepbx-2.7.0 #
Подскажите будьте добры :
1.PHP Notice: Undefined index: OUTKEEPCID_1 in /home/roman/install/freepbx-2.7.0/upgrades/2.6.0beta1/tables.php on line 245 мне опять не хватает какогонибудь пакетика ?
2.От рута пишу amportal start и пишет что нет такого каталога?
Спасибо за любую помощь.
| Цитата: |
| dsa@ubuntu:~/freepbx-2.7.0$ ./install_amp Checking for PEAR DB..FAILED [FATAL] PEAR must be installed (requires DB.php). Include path: .:/usr/share/php:/usr/share/pear dsa@ubuntu:~/freepbx-2.7.0$ sudo apt-get install php-pear Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Уже установлена самая новая версия php-pear. обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. |
Added after 1 hours 51 minutes:
разобрался, надо сделать: pear install DB
yum update asterisk14 или yum install asterisk14 , молчок... Может надо в другое место yum указать, если да то в какое? А то собирать начал Астериск..... Тама очень много чаго ставить надо и дезинсталить... Собирания исходников занимает много времени. И думаю как бы не уронил бы астер напрочь, надеюсь конфиги тупо из бекапа разверну, когда он потрёт новыми своими заинсталенными. yum было бы интересней поставить или тупо искать rpm?
http://www.asterisk.org/downloads/yum
sudo chmod 777 /usr/share/pear
mcedit /etc/php.ini
Ищем объявление:
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
;
include_path = "/usr/share/pear" ; указать правильный путь )))
; PHP's default setting for include_path is ".;/path/to/php/pear"
; http://php.net/include-path
И, вуа-ля, всё работает.