Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
5a0f43d9
提交
5a0f43d9
authored
6月 21, 2013
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
make sure sip-hold works on webrtc
上级
76177e61
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
60 行增加
和
3 行删除
+60
-3
switch_core_media.c
src/switch_core_media.c
+57
-1
switch_rtp.c
src/switch_rtp.c
+3
-2
没有找到文件。
src/switch_core_media.c
浏览文件 @
5a0f43d9
...
@@ -1934,7 +1934,7 @@ static void check_ice(switch_media_handle_t *smh, switch_media_type_t type, sdp_
...
@@ -1934,7 +1934,7 @@ static void check_ice(switch_media_handle_t *smh, switch_media_type_t type, sdp_
sdp_attribute_t
*
attr
;
sdp_attribute_t
*
attr
;
int
i
=
0
,
got_rtcp_mux
=
0
;
int
i
=
0
,
got_rtcp_mux
=
0
;
if
(
engine
->
ice_in
.
chosen
[
0
]
&&
engine
->
ice_in
.
chosen
[
1
])
{
if
(
engine
->
ice_in
.
chosen
[
0
]
&&
engine
->
ice_in
.
chosen
[
1
]
&&
!
switch_channel_test_flag
(
smh
->
session
->
channel
,
CF_REINVITE
)
)
{
return
;
return
;
}
}
...
@@ -2175,6 +2175,62 @@ static void check_ice(switch_media_handle_t *smh, switch_media_type_t type, sdp_
...
@@ -2175,6 +2175,62 @@ static void check_ice(switch_media_handle_t *smh, switch_media_type_t type, sdp_
engine
->
rtcp_mux
=
-
1
;
engine
->
rtcp_mux
=
-
1
;
}
}
if
(
switch_channel_test_flag
(
smh
->
session
->
channel
,
CF_REINVITE
))
{
if
(
switch_rtp_ready
(
engine
->
rtp_session
)
&&
engine
->
ice_in
.
cands
[
engine
->
ice_in
.
chosen
[
0
]][
0
].
ready
)
{
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
smh
->
session
),
SWITCH_LOG_INFO
,
"RE-Activating %s ICE
\n
"
,
type2str
(
type
));
switch_rtp_activate_ice
(
engine
->
rtp_session
,
engine
->
ice_in
.
ufrag
,
engine
->
ice_out
.
ufrag
,
engine
->
ice_out
.
pwd
,
engine
->
ice_in
.
pwd
,
IPR_RTP
,
#ifdef GOOGLE_ICE
ICE_GOOGLE_JINGLE
,
NULL
#else
switch_channel_direction
(
smh
->
session
->
channel
)
==
SWITCH_CALL_DIRECTION_OUTBOUND
?
ICE_VANILLA
:
(
ICE_VANILLA
|
ICE_CONTROLLED
),
&
engine
->
ice_in
#endif
);
}
if
(
engine
->
ice_in
.
cands
[
engine
->
ice_in
.
chosen
[
1
]][
1
].
ready
)
{
if
(
!
strcmp
(
engine
->
ice_in
.
cands
[
engine
->
ice_in
.
chosen
[
1
]][
1
].
con_addr
,
engine
->
ice_in
.
cands
[
engine
->
ice_in
.
chosen
[
0
]][
0
].
con_addr
)
&&
engine
->
ice_in
.
cands
[
engine
->
ice_in
.
chosen
[
1
]][
1
].
con_port
==
engine
->
ice_in
.
cands
[
engine
->
ice_in
.
chosen
[
0
]][
0
].
con_port
)
{
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
smh
->
session
),
SWITCH_LOG_INFO
,
"Skipping %s RTCP ICE (Same as RTP)
\n
"
,
type2str
(
type
));
}
else
{
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
smh
->
session
),
SWITCH_LOG_INFO
,
"Activating %s RTCP ICE
\n
"
,
type2str
(
type
));
switch_rtp_activate_ice
(
engine
->
rtp_session
,
engine
->
ice_in
.
ufrag
,
engine
->
ice_out
.
ufrag
,
engine
->
ice_out
.
pwd
,
engine
->
ice_in
.
pwd
,
IPR_RTCP
,
#ifdef GOOGLE_ICE
ICE_GOOGLE_JINGLE
,
NULL
#else
switch_channel_direction
(
smh
->
session
->
channel
)
==
SWITCH_CALL_DIRECTION_OUTBOUND
?
ICE_VANILLA
:
(
ICE_VANILLA
|
ICE_CONTROLLED
),
&
engine
->
ice_in
#endif
);
}
}
}
}
}
#ifdef _MSC_VER
#ifdef _MSC_VER
#pragma warning(pop)
#pragma warning(pop)
...
...
src/switch_rtp.c
浏览文件 @
5a0f43d9
...
@@ -876,7 +876,7 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d
...
@@ -876,7 +876,7 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d
if
(
!
zstr
(
username
))
{
if
(
!
zstr
(
username
))
{
if
(
!
strcmp
(
username
,
ice
->
user_ice
))
{
if
(
!
strcmp
(
username
,
ice
->
user_ice
))
{
ok
=
1
;
ok
=
1
;
}
else
if
(
!
strcmp
(
username
,
rtp_session
->
rtcp_ice
.
user_ice
))
{
}
else
if
(
!
zstr
(
rtp_session
->
rtcp_ice
.
user_ice
)
&&
!
strcmp
(
username
,
rtp_session
->
rtcp_ice
.
user_ice
))
{
ice
=
&
rtp_session
->
rtcp_ice
;
ice
=
&
rtp_session
->
rtcp_ice
;
ok
=
1
;
ok
=
1
;
}
}
...
@@ -891,7 +891,7 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d
...
@@ -891,7 +891,7 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d
char
*
host
=
NULL
;
char
*
host
=
NULL
;
ice
->
missed_count
++
;
ice
->
missed_count
++
;
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
rtp_session
->
session
),
SWITCH_LOG_CRIT
,
"missed %d
\n
"
,
ice
->
missed_count
);
//
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(rtp_session->session), SWITCH_LOG_CRIT, "missed %d\n", ice->missed_count);
if
(
elapsed
>
20000
&&
pri
)
{
if
(
elapsed
>
20000
&&
pri
)
{
int
i
,
j
;
int
i
,
j
;
...
@@ -971,6 +971,7 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d
...
@@ -971,6 +971,7 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d
if
(
ice
->
missed_count
>
5
)
{
if
(
ice
->
missed_count
>
5
)
{
ice
->
rready
=
0
;
ice
->
rready
=
0
;
ok
=
1
;
}
}
if
(
ok
)
{
if
(
ok
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论