Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
aea22cd4
提交
aea22cd4
authored
9月 08, 2011
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add RTP_BUG_ACCEPT_ANY_PACKETS to disable dropping invalid packets for interop with Oracle CCA
上级
f2099bf9
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
19 行增加
和
1 行删除
+19
-1
switch_types.h
src/include/switch_types.h
+10
-0
sofia_glue.c
src/mod/endpoints/mod_sofia/sofia_glue.c
+8
-0
switch_rtp.c
src/switch_rtp.c
+1
-1
没有找到文件。
src/include/switch_types.h
浏览文件 @
aea22cd4
...
...
@@ -680,6 +680,16 @@ typedef enum {
This flag will treat every dtmf as if it were 50ms and queue it on recipt of the leading packet rather than at the end.
*/
RTP_BUG_ACCEPT_ANY_PACKETS
=
(
1
<<
7
)
/*
Oracle's Contact Center Anywhere (CCA) likes to use a single RTP socket to send all its outbound audio.
This messes up our ability to auto adjust to NATTED RTP and causes us to ignore its audio packets.
This flag will allow compatibility with this dying product.
*/
}
switch_rtp_bug_flag_t
;
#ifdef _MSC_VER
...
...
src/mod/endpoints/mod_sofia/sofia_glue.c
浏览文件 @
aea22cd4
...
...
@@ -6553,6 +6553,14 @@ void sofia_glue_parse_rtp_bugs(switch_rtp_bug_flag_t *flag_pole, const char *str
if
(
switch_stristr
(
"~IGNORE_DTMF_DURATION"
,
str
))
{
*
flag_pole
&=
~
RTP_BUG_IGNORE_DTMF_DURATION
;
}
if
(
switch_stristr
(
"ACCEPT_ANY_PACKETS"
,
str
))
{
*
flag_pole
|=
RTP_BUG_ACCEPT_ANY_PACKETS
;
}
if
(
switch_stristr
(
"~ACCEPT_ANY_PACKETS"
,
str
))
{
*
flag_pole
&=
~
RTP_BUG_ACCEPT_ANY_PACKETS
;
}
}
char
*
sofia_glue_gen_contact_str
(
sofia_profile_t
*
profile
,
sip_t
const
*
sip
,
sofia_dispatch_event_t
*
de
,
sofia_nat_parse_t
*
np
)
...
...
src/switch_rtp.c
浏览文件 @
aea22cd4
...
...
@@ -3135,7 +3135,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
goto
recvfrom
;
}
}
else
if
(
!
switch_cmp_addr
(
rtp_session
->
from_addr
,
rtp_session
->
remote_addr
))
{
}
else
if
(
!
(
rtp_session
->
rtp_bugs
&
RTP_BUG_ACCEPT_ANY_PACKETS
)
&&
!
switch_cmp_addr
(
rtp_session
->
from_addr
,
rtp_session
->
remote_addr
))
{
goto
recvfrom
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论