当前位置:网站首页>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
边栏推荐
- Go language foundation ----- 13 ----- file
- Collector in ES (percentile / base)
- Partage de l'expérience du projet: mise en œuvre d'un pass optimisé pour la fusion IR de la couche mindstore
- Lucene introduces NFA
- Go language foundation ----- 06 ----- anonymous fields, fields with the same name
- Technical dry goods | reproduce iccv2021 best paper swing transformer with Shengsi mindspire
- EtherCAT state machine transition (ESM)
- 【开发笔记】基于机智云4G转接板GC211的设备上云APP控制
- Analysis of the problems of the 12th Blue Bridge Cup single chip microcomputer provincial competition
- 技术干货|关于AI Architecture未来的一些思考
猜你喜欢

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

Analysis of the eighth Blue Bridge Cup single chip microcomputer provincial competition

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

论文学习——鄱阳湖星子站水位时间序列相似度研究

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

【LeetCode】3. Merge Two Sorted Lists·合并两个有序链表

Iterm2设置

技术干货 | AlphaFold/ RoseTTAFold开源复现(2)—AlphaFold流程分析和训练构建

PAT甲级 1032 Sharing

VMware network mode - bridge, host only, NAT network
随机推荐
IndexSort
PHP常用排序算法
Technical dry goods Shengsi mindspire lite1.5 feature release, bringing a new end-to-end AI experience
Robots protocol
PAT甲级 1028 List Sorting
Industrial resilience
Beginners use Minio
Go language foundation ------17 ----- channel creation, read-write, security shutdown, multiplexing select
项目经验分享:实现一个昇思MindSpore 图层 IR 融合优化 pass
opensips与对方tls sip trunk对接注意事项
項目經驗分享:實現一個昇思MindSpore 圖層 IR 融合優化 pass
Vertx's responsive MySQL template
PAT甲级 1031 Hello World for U
Technical dry goods Shengsi mindspire innovation model EPP mvsnet high-precision and efficient 3D reconstruction
GoLang之结构体
技术干货|昇思MindSpore NLP模型迁移之Roberta ——情感分析任务
技术干货|昇思MindSpore创新模型EPP-MVSNet-高精高效的三维重建
圖像識別與檢測--筆記
Usage of requests module
【MySQL 13】安装MySQL后第一次修改密码,可以可跳过MySQL密码验证进行登录