fusionpbx官网:https://www.fusionpbx.com/download

    1)下载fusionpbx:

    1. yum install wget
    2. wget -O - https://raw.githubusercontent.com/fusionpbx/fusionpbx-install.sh/master/centos/pre-install.sh | sh
    3. cd /usr/src/fusionpbx-install.sh/centos && ./install.sh

    2)安装完成后记录登录密码:

    1. Installation has completed.
    2. Use a web browser to login.
    3. domain name: https://172.16.45.101
    4. username: admin
    5. password: jHIoEfNhKTjcHqdi

    3)查看已经安装的服务是否正常启动:

    1. systemctl status freeswitch
    2. systemctl status php-fpm
    3. systemctl status nginx
    4. systemctl status fail2ban

    如果未正常启动,检查是否安装。如未安装进入目录cd /usr/src/fusionpbx-install.sh/centos,根据安装脚本进行安装。安装完成后重启系统。
    连接数据库的配置文件:

    1. Go to /etc/fusionpbx/config.php on the old server and get the password - look for $db_password.
    2. //pgsql: database connection information
    3. $db_host = 'localhost'; //set the host only if the database is not local
    4. $db_port = '5432';
    5. $db_name = 'fusionpbx';
    6. $db_username = 'fusionpbx';
    7. $db_password = '<my-password>';

    4)登录fusionbpx,更改admin的密码
    点击【accounts】-【users】进行修改

    5)修改监听的IP地址(默认会监听第一张网卡的IP,如需修改为其他网卡)
    如默认监听了:172.16.45.101改为监听192.168.45.101

    1. [root@localhost ~]# netstat -lntup | grep 5060
    2. tcp 0 0 172.16.45.101:5060 0.0.0.0:* LISTEN 1371/freeswitch
    3. tcp6 0 0 ::1:5060 :::* LISTEN 1371/freeswitch
    4. udp 0 0 172.16.45.101:5060 0.0.0.0:* 1371/freeswitch
    5. udp6 0 0 ::1:5060 :::* 1371/freeswitch
    6. [root@localhost ~]# netstat -lntup | grep 5080
    7. tcp 0 0 172.16.45.101:5080 0.0.0.0:* LISTEN 1371/freeswitch
    8. tcp6 0 0 ::1:5080 :::* LISTEN 1371/freeswitch
    9. udp 0 0 172.16.45.101:5080 0.0.0.0:* 1371/freeswitch
    10. udp6 0 0 ::1:5080 :::* 1371/freeswitch

    点击【advanced】—【sip profile】
    把external和internal的sip-ip改为192.168.45.101
    1.png
    2.png
    更改完成后重启freeswitch

    1. [root@localhost ~]# systemctl restart freeswitch.service
    2. [root@localhost ~]# netstat -lntup | grep 5060
    3. tcp 0 0 192.168.45.101:5060 0.0.0.0:* LISTEN 2549/freeswitch
    4. tcp6 0 0 ::1:5060 :::* LISTEN 2549/freeswitch
    5. udp 0 0 192.168.45.101:5060 0.0.0.0:* 2549/freeswitch
    6. udp6 0 0 ::1:5060 :::* 2549/freeswitch
    7. [root@localhost ~]# netstat -lntup | grep 5080
    8. tcp 0 0 192.168.45.101:5080 0.0.0.0:* LISTEN 2549/freeswitch
    9. tcp6 0 0 ::1:5080 :::* LISTEN 2549/freeswitch
    10. udp 0 0 192.168.45.101:5080 0.0.0.0:* 2549/freeswitch
    11. udp6 0 0 ::1:5080 :::* 2549/freeswitch

    6)新增域(可按部门,区域进行增加)
    点击【advanced】—【domain】进行增加,本例增加域:dh5
    1.png

    7)切换到dh5域,添加终端注册的账号
    点击【accounts】—【extensions】,可单个添加,也可以批量导入;导入模板如下:
    fusionbpx_user_temp.csv 导入完毕后点击toggle,把用户的状态切换为enable。
    1.png

    8)添加鼎信通达网关
    1.png

    9)设置入方向的路由
    1.png

    10)设置出方向的路由
    1.png

    11)设置SIP模板关联路由
    1.png

    12)设置鼎信通达的语音网关—指定sip服务器
    1.png
    2.png

    13)SIP账号关联端口
    1.png

    14)配置外拨路由
    1.png

    15)配置回拨路由,配置完后重启设备
    1.png

    16)按需求变更录音存储位置

    1. WARNING! The remote SSH server rejected X11 forwarding request.
    2. Last login: Thu Mar 18 17:16:35 2021 from 172.16.45.240
    3. [root@localhost ~]# ll /var/lib/freeswitch/recordings/
    4. total 0
    5. [root@localhost ~]# cd /var/lib/freeswitch/
    6. [root@localhost freeswitch]# rm -fr recordings
    7. [root@localhost freeswitch]# mkdir -p /data/recordings
    8. [root@localhost freeswitch]# ln -s /data/recordings ./recordings
    9. [root@localhost freeswitch]# ll
    10. total 0
    11. drwxrwx--- 2 freeswitch daemon 204 Mar 18 17:41 db
    12. drwxrwx--- 2 freeswitch daemon 56 Mar 18 17:06 images
    13. lrwxrwxrwx 1 root root 16 Mar 18 21:06 recordings -> /data/recordings
    14. [root@localhost freeswitch]# chown -R freeswitch.daemon /data/recordings ./recordings /var/cache/fusionpbx

    17)拨打电话测试
    18)查看对应的录音

    1. [root@localhost freeswitch]# ll /data/recordings/
    2. total 0
    3. drwxr-x--- 3 freeswitch daemon 20 Mar 18 21:13 jishubu
    4. [root@localhost freeswitch]# ll /data/recordings/jishubu/
    5. total 0
    6. drwxr-x--- 3 freeswitch daemon 16 Mar 18 21:13 202103