Настройка AsteriskNow после установки (Eng)

Well after much researching I have complied a procedure to help people install AsteiskNow from scratch. Hope this helps.

Install AsteriskNOW 1.5.0 from CD.

After installation first boot will prompt with Setup-Agent to enter IP address, subnet mask, and gateway.

# vi /etc/resolv.conf

(add DNS servers ex. Nameserver 192.168.1.2)

# /etc/init.d/network restart

# yum update

(reply ’y’ when prompted.)

# yum install kmod-dahdi-linux-PAE

(reply ’y’ when prompted.)

# wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4.10.1.tar.gz (or latest version).

# tar -xvvzf libpri-1.4.10.1.tar.gz

# cd libpri-1.4.10.1

# make

# make install

# rm libpri-1.4.10.1.tar.gz

# vi /etc/php.ini

(change (increase) memory_limit=16M TO memory_limit=100M under RESOURCE LIMITS header)

# reboot

# dahdi_genconf

# cp /etc/asterisk/chan_dahdi.conf.template /etc/asterisk/chan_dahdi.conf

# vi /etc/asterisk/chan_dahdi.conf

Enter the following not including this line replacing ALL original text in file. I am using a TE210P card for T1 if you are using an Analog card you do not need to replace this files contents.

;# Flash Operator Panel will parse this file for dahdi trunk buttons

;# AMPLABEL will be used for the display labels on the buttons

;# %c Dahdi Channel number

;# %n Line number

;# %N Line number, but restart counter

;# Example:

;# ;AMPLABEL:Channel %c - Button %n

;# For Dahdi/* buttons use the following

;# (where x=number of buttons to dislpay)

;# ;AMPWILDCARDLABEL(x):MyLabel

[trunkgroups]

[channels]

language=en

;; include dahdi extensions defined in FreePBX

#include chan_dahdi_additional.conf

#include dahdi-channels.conf

eof (do not include this line in the code above)

# amportal stop

# dahdi_cfg

# amportal start

Install Asterisk addons

# yum install asterisk-addons

(reply ’y’ when prompted.)

# amportal restart

Install FTP service ( I use ftp instead of tftp for the phone config files so I can use an easy ftp program like Filezilla to transfer the files around )

# yum install vsftpd

(reply ’y’ when prompted.)

edit vsftpd config file to remove anonymous access then start the service and enable it to start on boot.

# vi /etc/vsftpd/vsftpd.conf

# chkconfig vsftpd on

# /etc/init.d/vsftpd start

Create ftp user poly (or whatever you want) for phone config files.

# useradd -G ftp poly

Create password for poly ftp account.

# passwd thepassword

# chown poly:ftp /home/poly

# chmod 755 /home/poly

# /etc/init.d/vsftpd restart

Enable remote MySQL access if you use another program to manage your db

# mysql -uroot -p

Hit enter again when prompted for password

mysql> GRANT ALL ON asterisk.* TO root@'10.101.4.%';

mysql> exit

Edit Apache config file to get rid of a few errors on the freepbx panel that wont make any sense to you.

# vi /etc/httpd/conf/httpd.conf

Change

User apache

Group apache

TO

User asterisk

Group asterisk

Restart apache service

# apachectl -k restart

FreePBX set up

log on to web interface using server IP address in browser.

Click Module Admin from Nav Menu.

Click Check for update online.

Click Download all.

Click Process button.

Click Confirm button.

Click Return.

Click Apply Configuration Changes & Continue with Reload.

Repeat until all modules are downloaded and upgraded.

Installs done.

You should also read:

ASTERISKNOW меняем стандартные пароли

Смена стандартных паролей

После установки сервера, обновляемся и начинаем настраивать нашу программную-АТС.

Нам необходимо сменить стандартный пароль

[admin@asteriamroot]# mysql -u freepbx -p

Вводим стандартный пароль: fpbx

Git 1.7.10.2 on CentOS 5.6 (Eng)

I’ve been hearing good things about git lately, with many projects which used to use subversion converting to it, so I’ve decided to try it out myself. RPMForge only has version 1.5, so like the other software I’ve been using, I’ve converted Fedora 11′s rpm to CentOS and put it in the Webtatic repository.

AsteriskNOW-2.0.2 не работает CDR из коробки

Докопал, Сделал, Заработало!

И так РЕЗЮМИРУЕМ:

При установке AsteriskNow не ставиться дополнительный модуль, который пишет статистику звонков.

Проверяем командой:

[root@localhost ~]# asterisk -r

localhost*CLI> module show like mysql

если пишет что-то типа:

Module Description Use Count

0 modules loaded

Настройка сети в CentOS

Настройки сетевых интерфейсов в CentOS находятся в:

  1. /etc/sysconfig/network-scripts/ifcfg-ethХ

- где X номер вашего интерфеса