Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
1f5f9408
提交
1f5f9408
authored
10月 16, 2012
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-4684 please test
上级
faefb066
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
8 行增加
和
3 行删除
+8
-3
sofia_glue.c
src/mod/endpoints/mod_sofia/sofia_glue.c
+8
-3
没有找到文件。
src/mod/endpoints/mod_sofia/sofia_glue.c
浏览文件 @
1f5f9408
...
...
@@ -1831,6 +1831,8 @@ void sofia_glue_tech_patch_sdp(private_object_t *tech_pvt)
tech_pvt
->
video_codec_ms
=
0
;
switch_snprintf
(
vport_buf
,
sizeof
(
vport_buf
),
"%u"
,
tech_pvt
->
adv_sdp_video_port
);
if
(
switch_channel_media_ready
(
tech_pvt
->
channel
)
&&
!
switch_rtp_ready
(
tech_pvt
->
video_rtp_session
))
{
sofia_set_flag
(
tech_pvt
,
TFLAG_VIDEO
);
sofia_set_flag
(
tech_pvt
,
TFLAG_REINVITE
);
sofia_glue_activate_rtp
(
tech_pvt
,
0
);
}
}
...
...
@@ -3240,7 +3242,8 @@ switch_status_t sofia_glue_activate_rtp(private_object_t *tech_pvt, switch_rtp_f
goto
end
;
}
if
(
switch_rtp_ready
(
tech_pvt
->
rtp_session
)
&&
!
sofia_test_flag
(
tech_pvt
,
TFLAG_REINVITE
))
{
if
(
switch_rtp_ready
(
tech_pvt
->
rtp_session
)
&&
(
!
sofia_test_flag
(
tech_pvt
,
TFLAG_VIDEO
)
||
switch_rtp_ready
(
tech_pvt
->
video_rtp_session
))
&&
!
sofia_test_flag
(
tech_pvt
,
TFLAG_REINVITE
))
{
status
=
SWITCH_STATUS_SUCCESS
;
goto
end
;
}
...
...
@@ -3249,6 +3252,7 @@ switch_status_t sofia_glue_activate_rtp(private_object_t *tech_pvt, switch_rtp_f
goto
end
;
}
if
(
myflags
)
{
flags
=
myflags
;
}
else
if
(
!
sofia_test_pflag
(
tech_pvt
->
profile
,
PFLAG_DISABLE_RTP_AUTOADJ
)
&&
...
...
@@ -3659,10 +3663,10 @@ switch_status_t sofia_glue_activate_rtp(private_object_t *tech_pvt, switch_rtp_f
video
:
sofia_glue_check_video_codecs
(
tech_pvt
);
if
(
sofia_test_flag
(
tech_pvt
,
TFLAG_VIDEO
)
&&
tech_pvt
->
video_rm_encoding
&&
tech_pvt
->
remote_sdp_video_port
)
{
/******************************************************************************************/
if
(
tech_pvt
->
video_rtp_session
&&
sofia_test_flag
(
tech_pvt
,
TFLAG_REINVITE
))
{
//const char *ip = switch_channel_get_variable(tech_pvt->channel, SWITCH_LOCAL_MEDIA_IP_VARIABLE);
...
...
@@ -3671,6 +3675,7 @@ switch_status_t sofia_glue_activate_rtp(private_object_t *tech_pvt, switch_rtp_f
switch_port_t
remote_port
=
switch_rtp_get_remote_port
(
tech_pvt
->
video_rtp_session
);
if
(
remote_host
&&
remote_port
&&
!
strcmp
(
remote_host
,
tech_pvt
->
remote_sdp_video_ip
)
&&
remote_port
==
tech_pvt
->
remote_sdp_video_port
)
{
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
tech_pvt
->
session
),
SWITCH_LOG_DEBUG
,
"Video params are unchanged for %s.
\n
"
,
switch_channel_get_name
(
tech_pvt
->
channel
));
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论