当前位置:网站首页>opensips与对方tls sip trunk对接注意事项
opensips与对方tls sip trunk对接注意事项
2022-07-03 07:34:00 【安安爸Chris】
opensips是一个强大的SBC,它支持多种底层协议; 如udp,tcp,以及基于tcp的tls,ws,wss等。
在与基于tls的sip trunk对接时,需要注意以下几点:
- 如果是outbound(外呼),基本可以不用配置proto_tls.so,tls_mgm.so等模块,只需要引用即可;如果是inbound(呼入),需要配置证书,tls的版本(建议tls1_2)
- 呼出时,在request URI最好加上参数==;transport=tls==
$ru=$ru+";transport=tls
- opensips发送在tls消息,会有100ms的tcp超时,这个好像是hardcode的,所以站点与对方的sip trunk的网络时延不要超过这个值,如果超过会失败,直接表现是opensips回500 Service Error,日志中会有如下:
Jun 21 13:49:16 [38] INFO:core:probe_max_sock_buff: using snd buffer of 416 kb
Jun 21 13:49:16 [38] INFO:core:init_sock_keepalive: TCP keepalive enabled on socket 5
Jun 21 13:49:16 [38] ERROR:proto_tls:tls_blocking_write: TLS send timeout (100)
Jun 21 13:49:16 [38] ERROR:proto_tls:proto_tls_send: failed to send
Jun 21 13:49:16 [38] ERROR:tm:msg_send: send() to 1.1.1.2:5061 for proto tls/3 failed
Jun 21 13:49:16 [38] ERROR:tm:t_forward_nonack: sending request failed
参考问题连接,但是好像按照它的修改不起作用
- 在对接前,需要配置好两边的防火墙;同时需要验证一下对方的证书是否有效;证书验证方法如下
openssl s_client -host pstn.twilio.com -port 5061 -msg -state -showcerts -tls1_2
边栏推荐
- Lucene skip table
- Download address collection of various versions of devaexpress
- Chapter VI - Containers
- Introduction of buffer flow
- The concept of C language pointer
- Jeecg menu path display problem
- Homology policy / cross domain and cross domain solutions /web security attacks CSRF and XSS
- URL programming
- 项目经验分享:基于昇思MindSpore,使用DFCNN和CTC损失函数的声学模型实现
- Technology dry goods | luxe model for the migration of mindspore NLP model -- reading comprehension task
猜你喜欢
Technical dry goods | alphafold/ rosettafold open source reproduction (2) - alphafold process analysis and training Construction
The concept of C language pointer
项目经验分享:基于昇思MindSpore实现手写汉字识别
HCIA notes
Technical dry goods Shengsi mindspire elementary course online: from basic concepts to practical operation, 1 hour to start!
Application of pigeon nest principle in Lucene minshouldmatchsumscorer
Analysis of the problems of the 7th Blue Bridge Cup single chip microcomputer provincial competition
Leetcode 213: looting II
Technology dry goods | luxe model for the migration of mindspore NLP model -- reading comprehension task
PdfWriter. GetInstance throws system Nullreferenceexception [en] pdfwriter GetInstance throws System. NullRef
随机推荐
《指環王:力量之戒》新劇照 力量之戒鑄造者亮相
Le Seigneur des anneaux: l'anneau du pouvoir
VMWare网络模式-桥接,Host-Only,NAT网络
IndexSort
为什么说数据服务化是下一代数据中台的方向?
Download address collection of various versions of devaexpress
Arduino 软串口通信 的几点体会
New stills of Lord of the rings: the ring of strength: the caster of the ring of strength appears
项目经验分享:基于昇思MindSpore实现手写汉字识别
Epoll related references
The concept of C language pointer
Industrial resilience
Leetcode 198: house raiding
论文学习——鄱阳湖星子站水位时间序列相似度研究
【MindSpore论文精讲】AAAI长尾问题中训练技巧的总结
TCP cumulative acknowledgement and window value update
Sent by mqtt client server of vertx
技术干货|百行代码写BERT,昇思MindSpore能力大赏
PgSQL converts string to double type (to_number())
技术干货|昇思MindSpore初级课程上线:从基本概念到实操,1小时上手!