当前位置:网站首页>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
边栏推荐
- Responsive MySQL of vertx
- What did the DFS phase do
- VMWare网络模式-桥接,Host-Only,NAT网络
- Leetcode 213: looting II
- Leetcode 198: house raiding
- 1. E-commerce tool cefsharp autojs MySQL Alibaba cloud react C RPA automated script, open source log
- 圖像識別與檢測--筆記
- Analysis of the problems of the 7th Blue Bridge Cup single chip microcomputer provincial competition
- Technology dry goods | luxe model for the migration of mindspore NLP model -- reading comprehension task
- Jeecg data button permission settings
猜你喜欢

Common methods of file class

FileInputStream and fileoutputstream

C code production YUV420 planar format file

技术干货|昇思MindSpore Lite1.5 特性发布,带来全新端侧AI体验

Use of file class

The concept of C language pointer

Why is data service the direction of the next generation data center?

Leetcode 213: looting II

Use of other streams
![PdfWriter. GetInstance throws system Nullreferenceexception [en] pdfwriter GetInstance throws System. NullRef](/img/65/1f28071fc15e76abb37f1b128e1d90.jpg)
PdfWriter. GetInstance throws system Nullreferenceexception [en] pdfwriter GetInstance throws System. NullRef
随机推荐
技术干货|昇思MindSpore创新模型EPP-MVSNet-高精高效的三维重建
技术干货|关于AI Architecture未来的一些思考
Hisat2 - stringtie - deseq2 pipeline for bulk RNA seq
Pgadmin 4 v6.11 release, PostgreSQL open source graphical management tool
圖像識別與檢測--筆記
Map interface and method
Understanding of class
【MySQL 13】安装MySQL后第一次修改密码,可以可跳过MySQL密码验证进行登录
Responsive MySQL of vertx
Jeecg data button permission settings
截图工具Snipaste
《指环王:力量之戒》新剧照 力量之戒铸造者亮相
Docker builds MySQL: the specified path of version 5.7 cannot be mounted.
专题 | 同步 异步
The concept of C language pointer
Beginners use Minio
Collector in ES (percentile / base)
JS monitors empty objects and empty references
最全SQL与NoSQL优缺点对比
Analysis of the problems of the 10th Blue Bridge Cup single chip microcomputer provincial competition