当前位置:网站首页>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
- IPv4 address
- Use of file class
- pgAdmin 4 v6.11 发布,PostgreSQL 开源图形化管理工具
- VMWare网络模式-桥接,Host-Only,NAT网络
- VMware network mode - bridge, host only, NAT network
- Common operations of JSP
- sharepoint 2007 versions
- Download address collection of various versions of devaexpress
- TCP cumulative acknowledgement and window value update
猜你喜欢

Map interface and method

【开发笔记】基于机智云4G转接板GC211的设备上云APP控制

Take you through the whole process and comprehensively understand the software accidents that belong to testing

Technical dry goods Shengsi mindspire innovation model EPP mvsnet high-precision and efficient 3D reconstruction

Topic | synchronous asynchronous

【MindSpore论文精讲】AAAI长尾问题中训练技巧的总结

Reconnaissance et détection d'images - Notes
![[coppeliasim4.3] C calls UR5 in the remoteapi control scenario](/img/ca/2f72ea3590c358a6c9884aaa1a1c33.png)
[coppeliasim4.3] C calls UR5 in the remoteapi control scenario

Analysis of the problems of the 7th Blue Bridge Cup single chip microcomputer provincial competition

Leetcode 198: 打家劫舍
随机推荐
Rabbit MQ message sending of vertx
Epoll related references
Vertx restful style web router
Docker builds MySQL: the specified path of version 5.7 cannot be mounted.
《指環王:力量之戒》新劇照 力量之戒鑄造者亮相
Some experiences of Arduino soft serial port communication
Various postures of CS without online line
专题 | 同步 异步
Realize the reuse of components with different routing parameters and monitor the changes of routing parameters
Lucene introduces NFA
Leetcode 213: looting II
Vertx's responsive redis client
項目經驗分享:實現一個昇思MindSpore 圖層 IR 融合優化 pass
Jeecg data button permission settings
Analysis of the problems of the 7th Blue Bridge Cup single chip microcomputer provincial competition
II. D3.js draw a simple figure -- circle
Homology policy / cross domain and cross domain solutions /web security attacks CSRF and XSS
项目经验分享:基于昇思MindSpore实现手写汉字识别
Logging log configuration of vertx
Spa single page application