美文网首页
VOIP—FreeSWITCH 搭建过程过程集合汇总

VOIP—FreeSWITCH 搭建过程过程集合汇总

作者: Louis_dm | 来源:发表于2019-10-22 18:31 被阅读0次

    系统:Debian 8
    开源软件:FreeSWITCH
    PBX:FusionPBX

    tip:由于阿里服务器的源执行apt-get update,经常会提示404的问题,所以国内先更换成163源。

    #删除之前更新产生的文件
    rm /etc/apt/sources.list.d/*
    #备份
    mv /etc/apt/sources.list /etc/apt/sources.list.bak
    #更换源
    vim /etc/apt/sources.list
    # 在文件最前面,添加以下条目
    deb http://mirrors.163.com/debian/ jessie main non-free contrib
    deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib
    deb http://mirrors.163.com/debian/ jessie-backports main non-free contrib
    deb-src http://mirrors.163.com/debian/ jessie main non-free contrib
    deb-src http://mirrors.163.com/debian/ jessie-updates main non-free contrib
    deb-src http://mirrors.163.com/debian/ jessie-backports main non-free contrib
    deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
    deb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
    #更新
    apt-get update
    

    FreeSWITCH安装:

    https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie

    这里选择源码编译,之后有额外的配置需要在源码中重新编译模块

    wget -O - https://files.freeswitch.org/repo/deb/freeswitch-1.8/fsstretch-archive-keyring.asc | apt-key add -
     
    echo "deb http://files.freeswitch.org/repo/deb/freeswitch-1.8/ jessie main" > /etc/apt/sources.list.d/freeswitch.list
    echo "deb-src http://files.freeswitch.org/repo/deb/freeswitch-1.8/ jessie main" >> /etc/apt/sources.list.d/freeswitch.list
     
    apt-get update
     
    # Install dependencies required for the build
    apt-get build-dep freeswitch
     
    # then let's get the source. Use the -b flag to get a specific branch
    cd /usr/src/
    git clone https://freeswitch.org/stash/scm/fs/freeswitch.git -bv1.8 freeswitch
    cd freeswitch
     
    # Because we're in a branch that will go through many rebases, it's
    # better to set this one, or you'll get CONFLICTS when pulling (update).
    git config pull.rebase true
     
    # ... and do the build
    ./bootstrap.sh -j
    ./configure
    make
    make install
    

    配置连接快捷启动

    ln -s /usr/local/freeswitch/bin/freeswitch /usr/local/bin/freeswitch
    ln -s /usr/local/freeswitch/bin/fs_cli /usr/local/bin/fs_cli
    

    FusionPBX安装:
    http://docs.fusionpbx.com/en/latest/getting_started/quick_install.html

    wget -O - https://raw.githubusercontent.com/fusionpbx/fusionpbx-install.sh/master/debian/pre-install.sh | sh
    cd /usr/src/fusionpbx-install.sh/debian&& ./install.sh
    
    

    安装一个图形界面访问FusionPBX
    https://my.oschina.net/renyuansoft/blog/16186
    https://www.yfeer.com/142.html

    apt-get -u install x-window-system-core
    apt-get -u install gnome-core
    apt-get -u install kdm
    

    相关文章

      网友评论

          本文标题:VOIP—FreeSWITCH 搭建过程过程集合汇总

          本文链接:https://www.haomeiwen.com/subject/hihcvctx.html