Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
4307bee1
提交
4307bee1
authored
4月 11, 2012
作者:
Ken Rice
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-4100 --resolve
上级
40c255b4
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
+7
-7
switch_rtp.c
src/switch_rtp.c
+7
-7
没有找到文件。
src/switch_rtp.c
浏览文件 @
4307bee1
...
@@ -669,7 +669,7 @@ SWITCH_STANDARD_SCHED_FUNC(zrtp_cache_save_callback)
...
@@ -669,7 +669,7 @@ SWITCH_STANDARD_SCHED_FUNC(zrtp_cache_save_callback)
zrtp_status_t
status
=
zrtp_status_ok
;
zrtp_status_t
status
=
zrtp_status_ok
;
status
=
zrtp_def_cache_store
(
zrtp_global
);
status
=
zrtp_def_cache_store
(
zrtp_global
);
switch_log_printf
(
SWITCH_CHANNEL_
SESSION_LOG
(
session
)
,
SWITCH_LOG_DEBUG
,
"Saving ZRTP cache: %s
\n
"
,
zrtp_status_ok
==
status
?
"OK"
:
"FAIL"
);
switch_log_printf
(
SWITCH_CHANNEL_
LOG
,
SWITCH_LOG_DEBUG
,
"Saving ZRTP cache: %s
\n
"
,
zrtp_status_ok
==
status
?
"OK"
:
"FAIL"
);
task
->
runtime
=
switch_epoch_time_now
(
NULL
)
+
900
;
task
->
runtime
=
switch_epoch_time_now
(
NULL
)
+
900
;
}
}
...
@@ -828,7 +828,7 @@ static void zrtp_event_callback(zrtp_stream_t *stream, unsigned event)
...
@@ -828,7 +828,7 @@ static void zrtp_event_callback(zrtp_stream_t *stream, unsigned event)
static
void
zrtp_logger
(
int
level
,
const
char
*
data
,
int
len
,
int
offset
)
static
void
zrtp_logger
(
int
level
,
const
char
*
data
,
int
len
,
int
offset
)
{
{
switch_log_printf
(
SWITCH_CHANNEL_
SESSION_LOG
(
session
)
,
SWITCH_LOG_DEBUG
,
"%s"
,
data
);
switch_log_printf
(
SWITCH_CHANNEL_
LOG
,
SWITCH_LOG_DEBUG
,
"%s"
,
data
);
}
}
#endif
#endif
...
@@ -869,7 +869,7 @@ SWITCH_DECLARE(void) switch_rtp_init(switch_memory_pool_t *pool)
...
@@ -869,7 +869,7 @@ SWITCH_DECLARE(void) switch_rtp_init(switch_memory_pool_t *pool)
}
else
{
}
else
{
switch_core_set_variable
(
"zrtp_enabled"
,
NULL
);
switch_core_set_variable
(
"zrtp_enabled"
,
NULL
);
zrtp_on
=
0
;
zrtp_on
=
0
;
switch_log_printf
(
SWITCH_CHANNEL_
SESSION_LOG
(
session
)
,
SWITCH_LOG_CRIT
,
"ZRTP init failed!
\n
"
);
switch_log_printf
(
SWITCH_CHANNEL_
LOG
,
SWITCH_LOG_CRIT
,
"ZRTP init failed!
\n
"
);
}
}
}
}
...
@@ -4080,12 +4080,12 @@ static int rtp_common_write(switch_rtp_t *rtp_session,
...
@@ -4080,12 +4080,12 @@ static int rtp_common_write(switch_rtp_t *rtp_session,
case
zrtp_status_ok
:
case
zrtp_status_ok
:
break
;
break
;
case
zrtp_status_drop
:
case
zrtp_status_drop
:
switch_log_printf
(
SWITCH_CHANNEL_
SESSION_LOG
(
session
)
,
SWITCH_LOG_ERROR
,
"Error: zRTP protection drop with code %d
\n
"
,
stat
);
switch_log_printf
(
SWITCH_CHANNEL_
LOG
,
SWITCH_LOG_ERROR
,
"Error: zRTP protection drop with code %d
\n
"
,
stat
);
ret
=
(
int
)
bytes
;
ret
=
(
int
)
bytes
;
goto
end
;
goto
end
;
break
;
break
;
case
zrtp_status_fail
:
case
zrtp_status_fail
:
switch_log_printf
(
SWITCH_CHANNEL_
SESSION_LOG
(
session
)
,
SWITCH_LOG_ERROR
,
"Error: zRTP protection fail with code %d
\n
"
,
stat
);
switch_log_printf
(
SWITCH_CHANNEL_
LOG
,
SWITCH_LOG_ERROR
,
"Error: zRTP protection fail with code %d
\n
"
,
stat
);
break
;
break
;
default
:
default
:
break
;
break
;
...
@@ -4412,12 +4412,12 @@ SWITCH_DECLARE(int) switch_rtp_write_manual(switch_rtp_t *rtp_session,
...
@@ -4412,12 +4412,12 @@ SWITCH_DECLARE(int) switch_rtp_write_manual(switch_rtp_t *rtp_session,
case
zrtp_status_ok
:
case
zrtp_status_ok
:
break
;
break
;
case
zrtp_status_drop
:
case
zrtp_status_drop
:
switch_log_printf
(
SWITCH_CHANNEL_
SESSION_LOG
(
session
)
,
SWITCH_LOG_ERROR
,
"Error: zRTP protection drop with code %d
\n
"
,
stat
);
switch_log_printf
(
SWITCH_CHANNEL_
LOG
,
SWITCH_LOG_ERROR
,
"Error: zRTP protection drop with code %d
\n
"
,
stat
);
ret
=
(
int
)
bytes
;
ret
=
(
int
)
bytes
;
goto
end
;
goto
end
;
break
;
break
;
case
zrtp_status_fail
:
case
zrtp_status_fail
:
switch_log_printf
(
SWITCH_CHANNEL_
SESSION_LOG
(
session
)
,
SWITCH_LOG_ERROR
,
"Error: zRTP protection fail with code %d
\n
"
,
stat
);
switch_log_printf
(
SWITCH_CHANNEL_
LOG
,
SWITCH_LOG_ERROR
,
"Error: zRTP protection fail with code %d
\n
"
,
stat
);
break
;
break
;
default
:
default
:
break
;
break
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论