当前位置:网站首页>Precautions for opensips and TLS SIP trunk docking
Precautions for opensips and TLS SIP trunk docking
2022-07-03 07:42:00 【Ann, Dad, Chris】
opensips Is a powerful SBC, It supports a variety of underlying protocols ; Such as udp,tcp, And based on tcp Of tls,ws,wss etc. .
Based on tls Of sip trunk When docking , The following points need to be noted :
- If it is outbound( Outbound ), Basically, there is no need to configure proto_tls.so,tls_mgm.so Equal module , Just reference ; If it is inbound( Breathe in ), Certificate needs to be configured ,tls Version of ( Suggest tls1_2)
- On exhalation , stay request URI It's better to add parameters ==;transport=tls==
$ru=$ru+";transport=tls
- opensips Sent on tls news , There will be 100ms Of tcp Overtime , This seems to be hardcode Of , So the site and each other sip trunk The network delay of should not exceed this value , If it exceeds, it will fail , The direct manifestation is opensips return 500 Service Error, The log will contain the following :
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
Reference resources Problem connection , But it doesn't seem to work according to its modification
- Before docking , You need to configure firewalls on both sides ; At the same time, you need to verify whether the other party's certificate is valid ; The certificate verification method is as follows
openssl s_client -host pstn.twilio.com -port 5061 -msg -state -showcerts -tls1_2
边栏推荐
- EtherCAT state machine transition (ESM)
- yarn link 是如何帮助开发者对 NPM 包进行 debug 的?
- Go language foundation ----- 01 ----- go language features
- 技术干货|昇思MindSpore NLP模型迁移之LUKE模型——阅读理解任务
- 【CoppeliaSim4.3】C#调用 remoteApi控制场景中UR5
- Enter three times and guess a number
- What did the DFS phase do
- Analysis of the eighth Blue Bridge Cup single chip microcomputer provincial competition
- Common operations of JSP
- 华为S5700交换机初始化和配置SSH和TELNET远程登录方法
猜你喜欢

【LeetCode】2. Valid Parentheses·有效的括号

How long is the fastest time you can develop data API? One minute is enough for me

技术干货|AI框架动静态图统一的思考

Project experience sharing: Based on mindspore, the acoustic model is realized by using dfcnn and CTC loss function

EtherCAT state machine transition (ESM)

项目经验分享:实现一个昇思MindSpore 图层 IR 融合优化 pass

Technical dry goods | alphafold/ rosettafold open source reproduction (2) - alphafold process analysis and training Construction

技术干货|昇思MindSpore NLP模型迁移之Bert模型—文本匹配任务(二):训练和评估

Partage de l'expérience du projet: mise en œuvre d'un pass optimisé pour la fusion IR de la couche mindstore

Leetcode 213: 打家劫舍 II
随机推荐
Analysis of the problems of the 12th Blue Bridge Cup single chip microcomputer provincial competition
Lucene introduces NFA
Harmonyos third training notes
PHP常用排序算法
Unity XR实现交互(抓取,移动旋转,传送,射击)-Pico
Go language foundation ----- 06 ----- anonymous fields, fields with the same name
技术干货|关于AI Architecture未来的一些思考
Comparison of advantages and disadvantages between most complete SQL and NoSQL
Go language foundation ----- 19 ----- context usage principle, interface, derived context (the multiplexing of select can be better understood here)
基于RNA的新型癌症疗法介绍
项目经验分享:实现一个昇思MindSpore 图层 IR 融合优化 pass
lucene scorer
图像识别与检测--笔记
华为交换机基础配置(telnet/ssh登录)
Implementation of breadth first in aggregation in ES
The babbage industrial policy forum
【CoppeliaSim4.3】C#调用 remoteApi控制场景中UR5
Vertx's responsive MySQL template
c语言指针的概念
Traversal in Lucene