阿里云服務(wù)器安裝asterisk開源sip軟交換服務(wù)器
1、使用./contrib/scripts/install_prereq install自動安裝依賴環(huán)境,此處是重要步驟。
2、版本的問題
centos版本:CentOS Linux release 7.5.1804 (Core)
asterisk版本:16.0.0
當5060不能監(jiān)聽的時候更換版本
3、啟動后的報錯不需要理會,非必要模塊會拒絕加載。
4、阿里云是nat環(huán)境,客戶端也是nat環(huán)境,使用如下的配置文件:
sip.conf
[general]
nat=yes
context=test //和extensions.conf里面[test]對應(yīng)
rtpbindaddr=0.0.0.0
matchexternaddrlocally = yes
localnet=172.X.X.X/255.255.255.0 //阿里云服務(wù)器私網(wǎng)地址
externaddr = 47.X.X.X //阿里云服務(wù)器公網(wǎng)地址
[1001]
type=friend
secret=1001
host=dynamic
[1002]
type=friend
secret=1002
host=dynamic
extensions.conf
在文檔的最后添加:
[test]
exten => 1001,1,Dial(SIP/1001)
exten => 1002,1,Dial(SIP/1002)
參考:http://t.zoukankan.com/einyboy-p-2735569.html
https://www.likecs.com/show-306273236.html
https://blog.csdn.net/qq_20640481/article/details/118699529文章來源:http://www.zghlxwxcb.cn/news/detail-463773.html
過程:
1、無法用yum install asterisk 安裝,找不到sip.conf文件。
2、解決./configure報錯的問題
3、解決啟動后部分模塊拒絕加載的問題
4、解決5060端口不監(jiān)聽的問題
5、解決30秒掛斷的問題,從設(shè)置nat=route到設(shè)置nat=yes
6、解決沒有聲音的問題,開啟rtp監(jiān)聽。
共計用時3天。文章來源地址http://www.zghlxwxcb.cn/news/detail-463773.html
到了這里,關(guān)于阿里云服務(wù)器安裝asterisk開源sip軟交換服務(wù)器的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!