zl程序教程

您现在的位置是:首页 >  系统

当前栏目

CentOS 8 安装freePBX 软交换电话软件——筑梦之路

centos安装软件 筑梦之路 电话
2023-09-14 09:16:00 时间

简单介绍:

Freepbx是一个集成了Asterisk的工具,提供GUI (graphical user interface)用户图形界面。通过Freepbx可以十分方便的配置各类电话系统。由于Asterisk 包含广泛的 VoIP 协议诸如:SIP, IAX2 和 H.323 等等,所以安装了Freepbx之后,我们便可以通过Web页面,搭建属于自己的网络语音系统。

其他类似的产品:ombutel、Issabel、VitalPBX

官方网站:FreePBX | Open source, web-based, IP PBX management tool.Freedom to Communicate The "Free" in FreePBX stands for Freedom. That's because FreePBX, the world's most popular open source IP PBX, gives users thehttps://www.freepbx.org/

FreePBX 环境要求:

LAMP(Linux、Apache、MySQL、PHP)

FreePBX 安装步骤:

1.检查selinux

sestatus

SELinux status: disabled

#禁用selinux

sed -i 's/\(^SELINUX=\).*/\SELINUX=disabled/' /etc/sysconfig/selinux
sed -i 's/\(^SELINUX=\).*/\SELINUX=disabled/' /etc/selinux/config

2.更新系统

sudo dnf -y update

#需要注意的是目前centos8已经停止支持,yum源官方已经不再能访问,建议换源

3.安装依赖

#开发工具包
dnf -y group install "Development Tools."

#新建用户

adduser asterisk -m -c "Asterisk User"

#启用工具

dnf config-manager --set-enabled powertools

#安装数据库和其他依赖包

dnf -y install lynx tftp-server unixODBC mariadb-server mariadb httpd ncurses-devel sendmail sendmail-cf newt-devel libxml2-devel libtiff-devel gtk2-devel subversion git wget vim uuid-devel sqlite-devel net-tools gnutls-devel texinfo libuuid-devel libedit-devel

#禁用工具

dnf config-manager --set-disabled powertools

#安装mysql 连接器

dnf install -y https://downloads.mysql.com/archives/get/p/10/file/mysql-connector-odbc-8.0.21-1.el8.x86_64.rpm

dnf install -y epel-release

dnf install -y libid3tag

dnf install -y https://forensics.cert.org/cert-forensics-tools-release-el8.rpm

dnf --enablerepo=forensics install -y sox

dnf install -y audiofile-devel

dnf install -y python3-devel

#安装php7.2

dnf remove php*
dnf install -y php php-pdo php-mysqlnd php-mbstring php-pear php-process php-xml php-opcache php-ldap php-intl php-soap php-json

#安装nodejs环境

dnf module enable nodejs:12 -y
dnf install -y nodejs

#启用mariadb

systemctl enable mariadb.service
systemctl start mariadb

#数据库初始化

mysql_secure_installation

#启用web服务器

systemctl enable httpd.service
systemctl start httpd.service

systemctl status httpd.service

#安装 Legacy Pear

pear install Console_Getopt

#下载 Asterisk 源文件编译安装

cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-16-current.tar.gz

tar xvfz asterisk-16-current.tar.gz

cd asterisk-*
contrib/scripts/install_prereq install
./configure --libdir=/usr/lib64 --with-jansson-bundled
contrib/scripts/get_mp3_source.sh
make menuselect

#此时将提示您选择要构建的模块。您已经启用了其中的大部分功能,但是如果您想要 MP3 支持(例如,用于音乐保持),您需要手动打开第一页上的“format_mp3”。选择“保存并退出”。

 

接上步

make
make install
make config
make samples
ldconfig
chkconfig asterisk off

chown asterisk. /var/run/asterisk
chown -R asterisk. /etc/asterisk
chown -R asterisk. /var/{lib,log,spool}/asterisk
chown -R asterisk. /usr/lib64/asterisk
chown -R asterisk. /var/www

#配置apache

sed -i 's/\(^upload_max_filesize = \).*/\120M/' /etc/php.ini
sed -i 's/\(^memory_limit = \).*/\1256M/' /etc/php.ini
sed -i 's/^\(User\|Group\).*/\1 asterisk/' /etc/httpd/conf/httpd.conf
sed -i 's/AllowOverride None/AllowOverride All/' /etc/httpd/conf/httpd.conf
sed -i 's/\(^user = \).*/\1asterisk/' /etc/php-fpm.d/www.conf
sed -i 's/\(^group = \).*/\1asterisk/' /etc/php-fpm.d/www.conf
sed -i 's/\(^listen.acl_users = apache,nginx\).*/\1,asterisk/' /etc/php-fpm.d/www.conf

#启动apache

systemctl restart httpd.service
systemctl restart php-fpm

#下载freePBX源码编译安装

cd /usr/src
wget http://mirror.freepbx.org/modules/packages/freepbx/freepbx-15.0-latest.tgz
tar xfz freepbx-15.0-latest.tgz
rm -f freepbx-15.0-latest.tgz
cd freepbx
./start_asterisk start
./install -n

cat /etc/systemd/system/freepbx.service

[Unit]
Description=FreePBX VoIP Server
After=mariadb.service

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/fwconsole start -q
ExecStop=/usr/sbin/fwconsole stop -q

[Install]
WantedBy=multi-user.target

#启用freepbx

systemctl enable freepbx.service

systemctl start freepbx

systemctl status -l freepbx.service

web 访问进行初始化:

第 1 步:在您的浏览器中,转到您的服务器 IP 地址 (http:\\192.xx1)

第 2 步:创建管理员用户名和密码。

第 3 步:输入您要发送通知的电子邮件地址。

第 4 步:命名您的 FreePBX 服务器。

步骤 5:确保启用模块更新、安全更新和安全电子邮件,然后单击设置系统

参考资料:

CentOS 8 停止维护后换可用yum源——筑梦之路_筑梦之路-CSDN博客https://blog.csdn.net/qq_34777982/article/details/122874989Ubuntu16安装FreePBX - 简书1. 首先需要先更新一下ubuntu的apt源 这里使用的源为阿里镜像源http://mirrors.aliyun.com 还需要添加ppa源,因为在第二步安装依赖的时候需要...https://www.jianshu.com/p/7d5bcea541c9freepbx 安装和配置 - 微信公众号--共鸣圈 - 博客园首先参见 asterisk manager api 的配置,然后根据freepbx的官方文档:http://wiki.freepbx.org/display/HTGS/Installing+FreePhttps://www.cnblogs.com/welhzh/p/4682809.html


centos7下安装freepbx13_eagle_min的专栏-CSDN博客_freepbx安装初始系统设置所有命令必须在root用户下!必须禁止 selinux。 selinux在安装过程中可能会导致奇怪的行为!禁止 selinux在 /etc/sysconfig/selinux , 更改以下行:sed-i's/\(^SELINUX=\).*/\SELINUX=disabled/'/etc/sysconfig/selinuxsed-i's/\(^SELINUX=\).*/\SELINUX=disabled/'/etc/selinux/config...https://blog.csdn.net/eagle_min/article/details/112056081

 MikoPBXicon-default.png?t=M276https://www.mikopbx.com/