惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Security Latest
Security Latest
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Stack Overflow Blog
Stack Overflow Blog
WordPress大学
WordPress大学
N
Netflix TechBlog - Medium
GbyAI
GbyAI
云风的 BLOG
云风的 BLOG
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
宝玉的分享
宝玉的分享
博客园 - 【当耐特】
C
Cyber Attacks, Cyber Crime and Cyber Security
雷峰网
雷峰网
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
Threat Research - Cisco Blogs
NISL@THU
NISL@THU
Spread Privacy
Spread Privacy
P
Proofpoint News Feed
J
Java Code Geeks
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
MyScale Blog
MyScale Blog
T
Tor Project blog
P
Proofpoint News Feed
C
CERT Recently Published Vulnerability Notes
P
Privacy & Cybersecurity Law Blog
MongoDB | Blog
MongoDB | Blog
Simon Willison's Weblog
Simon Willison's Weblog
C
Cybersecurity and Infrastructure Security Agency CISA
L
LINUX DO - 热门话题
小众软件
小众软件
G
GRAHAM CLULEY
P
Privacy International News Feed
AWS News Blog
AWS News Blog
Know Your Adversary
Know Your Adversary
P
Palo Alto Networks Blog
人人都是产品经理
人人都是产品经理
S
Schneier on Security
Scott Helme
Scott Helme
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
B
Blog RSS Feed
T
The Exploit Database - CXSecurity.com
Recent Announcements
Recent Announcements
E
Exploit-DB.com RSS Feed
C
CXSECURITY Database RSS Feed - CXSecurity.com
U
Unit 42
The Register - Security
The Register - Security
S
Securelist
Martin Fowler
Martin Fowler
Project Zero
Project Zero
大猫的无限游戏
大猫的无限游戏
Cisco Talos Blog
Cisco Talos Blog

博客园 - PerKins.Zhu

基于 UniMRCP 的 ASR 插件开发详解:架构、API 与代码 unimrcp_plugin_demo_recog_engine.c 源码解析 unimrcp_plugin_demo_synth_engine.c 源码解析 UniMRCP 插件开发指南 freeswitch【解决方案】— 使用ffmpeg时,生成时总是提示找不到外部引用 freeswitch模块开发—mod_python3编译安装 freeswitch模块开发—mod_unimrcp 编译及加载(VS2019) freeswitch模块开发【问题排查】—已存在XXX.lob 中定义,重复引入依赖 centos 安装 sngrep freeswitch模块开发【问题排查】—mod_soundtouch 模块变声无效,电流音 freeswitch模块开发【问题排查】—load模块时提示 127错误 vs2019 编译加载 mod_soundtouch 进行变声测试 freeswitch 新模块开发三(VS2019) VS2019 开发freeswitch 问题排查汇总 TLS可信任自签名CA证书配置 debian安装kamailio voip服务监控及运维 debian 编译安装rtpproxy debian 编译安装 opensips
freeswitch【解决方案】— 使用mod_odbc_cdr记录cdr时获取不到b leg 的call-id问题
PerKins.Zhu · 2025-03-21 · via 博客园 - PerKins.Zhu

在U2BUA场景下,dialplan中进行bridge时,当bleg 在未返回有效信令(例如183)之前,通话被主动挂掉,此时mod_odbc_cdr模块是获取不到b leg  invite sip头中的call-id字段的。

解决方案:

  在dialplan配置项中主动指定 bleg的call-id,同时新增一个bleg channel变量leg_sip_call_id,保证bleg 的call-id和leg_sip_call_id一直,传给bleg。同时修改mod_odbc_cdr配置,修改call-id取值,从leg_sip_call_id字段中取值即可。

<!-- aleg中把sip-call-id 字段赋值给 leg_call_id,获取aleg的值--> 
     <action application="set" data="leg_sip_call_id=${sip_call_id}"/>

<!-- 生成bleg的sipheader call-id--> 
      <action application="set" data="tempCallId=${uuid}@fs"/>
<!-- bleg中把tempCallId 传递给bleg,主动指定bleg的sip_call_id 同时复制给bleg通道变量leg_sip_call_id,以便mod_odbc_cdr从该变量中取值--> 
      <action application="bridge" data="{sip_h_Call-ID=${tempCallId},leg_sip_call_id=${tempCallId}}sofia/external/sipp_gw_0/sip:123123123@192.168.1.10:5069"/>