0
点赞
收藏
分享

微信扫一扫

Linux下sip服务器搭建

陆佃 2022-05-05 阅读 95
后端

**关于opensips安装**

过程中可能涉及到权限问题,为了方便在root操作

**a)  下载opensips**

官网下载地址:http://www.opensips.org/Resources/Downloads

我这里使用的是在虚拟机下git直接下载

git clone https://github.com/OpenSIPS/opensips.git -b2.2 opensips-2.2

**b)  编译opensips**

最最重要的就是把db_mysql模块编译进去

make menuconfig 执行此命令直接退出,会在源码根目录下生成Makefile.conf文件(使用左右键进入/返回菜单;opensis中默认是不支持mysql的,需要手动修改Makefile.conf文件)

![在这里插入图片描述](https://img-blog.csdnimg.cn/c38f43b68cad4a518812d7f90786c1a9.png)
**修改Makefile.conf文件(在opensip源代码目录下):**
    在exclude_modules中删掉db_mysql,
    在include_modules中添加db_mysql,
    修改安装目录为PREFIX=/usr/local/opensips/
    ![在这里插入图片描述](https://img-blog.csdnimg.cn/c4805daffdf240f9aecde8306e6c8052.png)
    make all
    make install
    
    **c)  配置opensips**
    
        cd /usr/local/opensips/
        目录结构如下
        

举报

相关推荐

0 条评论