Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
8a7f38c6
提交
8a7f38c6
authored
7月 20, 2010
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FSCORE-636
上级
7431fbe9
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
10 行增加
和
12 行删除
+10
-12
switch_channel.c
src/switch_channel.c
+10
-12
没有找到文件。
src/switch_channel.c
浏览文件 @
8a7f38c6
...
...
@@ -3033,8 +3033,8 @@ SWITCH_DECLARE(switch_status_t) switch_channel_set_timestamps(switch_channel_t *
switch_caller_profile_t
*
caller_profile
,
*
ocp
;
switch_app_log_t
*
app_log
,
*
ap
;
char
*
last_app
=
NULL
,
*
last_arg
=
NULL
;
char
start
[
80
]
=
""
,
resurrect
[
80
]
=
""
,
answer
[
80
]
=
""
,
progress
[
80
]
=
""
,
progress_media
[
80
]
=
""
,
end
[
80
]
=
""
,
tmp
[
80
]
=
""
,
profile_start
[
80
]
=
""
;
char
start
[
80
]
=
""
,
resurrect
[
80
]
=
""
,
answer
[
80
]
=
""
,
progress
[
80
]
=
""
,
progress_media
[
80
]
=
""
,
end
[
80
]
=
""
,
tmp
[
80
]
=
""
,
profile_start
[
80
]
=
""
;
int32_t
duration
=
0
,
legbillsec
=
0
,
billsec
=
0
,
mduration
=
0
,
billmsec
=
0
,
legbillmsec
=
0
,
progressmsec
=
0
,
progress_mediamsec
=
0
;
int32_t
answersec
=
0
,
answermsec
=
0
;
switch_time_t
answerusec
=
0
;
...
...
@@ -3114,7 +3114,7 @@ SWITCH_DECLARE(switch_status_t) switch_channel_set_timestamps(switch_channel_t *
if
(
caller_profile
->
times
->
resurrected
)
{
switch_time_exp_lt
(
&
tm
,
caller_profile
->
times
->
resurrected
);
switch_strftime_nocheck
(
answer
,
&
retsize
,
sizeof
(
resurrect
),
fmt
,
&
tm
);
switch_strftime_nocheck
(
resurrect
,
&
retsize
,
sizeof
(
resurrect
),
fmt
,
&
tm
);
switch_channel_set_variable
(
channel
,
"resurrect_stamp"
,
resurrect
);
}
...
...
@@ -3136,13 +3136,13 @@ SWITCH_DECLARE(switch_status_t) switch_channel_set_timestamps(switch_channel_t *
tt_created
=
(
time_t
)
(
caller_profile
->
times
->
created
/
1000000
);
mtt_created
=
(
time_t
)
(
caller_profile
->
times
->
created
/
1000
);
tt_prof_created
=
(
time_t
)
(
caller_profile
->
times
->
profile_created
/
1000000
);
mtt_prof_created
=
(
time_t
)
(
caller_profile
->
times
->
profile_created
/
1000
);
switch_snprintf
(
tmp
,
sizeof
(
tmp
),
"%"
TIME_T_FMT
,
tt_created
);
switch_channel_set_variable
(
channel
,
"start_epoch"
,
tmp
);
switch_snprintf
(
tmp
,
sizeof
(
tmp
),
"%"
SWITCH_TIME_T_FMT
,
caller_profile
->
times
->
created
);
switch_channel_set_variable
(
channel
,
"start_uepoch"
,
tmp
);
tt_prof_created
=
(
time_t
)
(
caller_profile
->
times
->
profile_created
/
1000000
);
mtt_prof_created
=
(
time_t
)
(
caller_profile
->
times
->
profile_created
/
1000
);
switch_snprintf
(
tmp
,
sizeof
(
tmp
),
"%"
TIME_T_FMT
,
tt_prof_created
);
switch_channel_set_variable
(
channel
,
"profile_start_epoch"
,
tmp
);
switch_snprintf
(
tmp
,
sizeof
(
tmp
),
"%"
SWITCH_TIME_T_FMT
,
caller_profile
->
times
->
profile_created
);
...
...
@@ -3176,7 +3176,6 @@ SWITCH_DECLARE(switch_status_t) switch_channel_set_timestamps(switch_channel_t *
switch_snprintf
(
tmp
,
sizeof
(
tmp
),
"%"
SWITCH_TIME_T_FMT
,
caller_profile
->
times
->
progress_media
);
switch_channel_set_variable
(
channel
,
"progress_media_uepoch"
,
tmp
);
tt_hungup
=
(
time_t
)
(
caller_profile
->
times
->
hungup
/
1000000
);
mtt_hungup
=
(
time_t
)
(
caller_profile
->
times
->
hungup
/
1000
);
switch_snprintf
(
tmp
,
sizeof
(
tmp
),
"%"
TIME_T_FMT
,
tt_hungup
);
...
...
@@ -3184,9 +3183,9 @@ SWITCH_DECLARE(switch_status_t) switch_channel_set_timestamps(switch_channel_t *
switch_snprintf
(
tmp
,
sizeof
(
tmp
),
"%"
SWITCH_TIME_T_FMT
,
caller_profile
->
times
->
hungup
);
switch_channel_set_variable
(
channel
,
"end_uepoch"
,
tmp
);
uduration
=
caller_profile
->
times
->
hungup
-
caller_profile
->
times
->
created
;
duration
=
(
int32_t
)
(
tt_hungup
-
tt_created
);
mduration
=
(
int32_t
)
(
mtt_hungup
-
mtt_created
);
uduration
=
caller_profile
->
times
->
hungup
-
caller_profile
->
times
->
created
;
if
(
caller_profile
->
times
->
answered
)
{
billsec
=
(
int32_t
)
(
tt_hungup
-
tt_answered
);
...
...
@@ -3214,7 +3213,6 @@ SWITCH_DECLARE(switch_status_t) switch_channel_set_timestamps(switch_channel_t *
progress_mediausec
=
caller_profile
->
times
->
progress_media
-
caller_profile
->
times
->
created
;
}
}
switch_channel_set_variable
(
channel
,
"last_app"
,
last_app
);
...
...
@@ -3227,13 +3225,13 @@ SWITCH_DECLARE(switch_status_t) switch_channel_set_timestamps(switch_channel_t *
switch_snprintf
(
tmp
,
sizeof
(
tmp
),
"%d"
,
billsec
);
switch_channel_set_variable
(
channel
,
"billsec"
,
tmp
);
switch_snprintf
(
tmp
,
sizeof
(
tmp
),
"%
"
SWITCH_TIME_T_FMT
,
progresssec
);
switch_snprintf
(
tmp
,
sizeof
(
tmp
),
"%
d"
,
progresssec
);
switch_channel_set_variable
(
channel
,
"progresssec"
,
tmp
);
switch_snprintf
(
tmp
,
sizeof
(
tmp
),
"%
"
SWITCH_TIME_T_FMT
,
answersec
);
switch_snprintf
(
tmp
,
sizeof
(
tmp
),
"%
d"
,
answersec
);
switch_channel_set_variable
(
channel
,
"answersec"
,
tmp
);
switch_snprintf
(
tmp
,
sizeof
(
tmp
),
"%
"
SWITCH_TIME_T_FMT
,
progress_mediasec
);
switch_snprintf
(
tmp
,
sizeof
(
tmp
),
"%
d"
,
progress_mediasec
);
switch_channel_set_variable
(
channel
,
"progress_mediasec"
,
tmp
);
switch_snprintf
(
tmp
,
sizeof
(
tmp
),
"%d"
,
legbillsec
);
...
...
@@ -3251,7 +3249,7 @@ SWITCH_DECLARE(switch_status_t) switch_channel_set_timestamps(switch_channel_t *
switch_snprintf
(
tmp
,
sizeof
(
tmp
),
"%d"
,
answermsec
);
switch_channel_set_variable
(
channel
,
"answermsec"
,
tmp
);
switch_snprintf
(
tmp
,
sizeof
(
tmp
),
"%d"
,
progressmsec
);
switch_snprintf
(
tmp
,
sizeof
(
tmp
),
"%d"
,
progress
_media
msec
);
switch_channel_set_variable
(
channel
,
"progress_mediamsec"
,
tmp
);
switch_snprintf
(
tmp
,
sizeof
(
tmp
),
"%d"
,
legbillmsec
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论