Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
dc5c28e1
提交
dc5c28e1
authored
3月 10, 2008
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
git-svn-id:
http://svn.freeswitch.org/svn/freeswitch/trunk@7853
d0543943-73ff-0310-b7d9-9358b9ac24b2
上级
975fec22
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
33 行增加
和
2 行删除
+33
-2
mod_sofia.c
src/mod/endpoints/mod_sofia/mod_sofia.c
+3
-1
switch_core_io.c
src/switch_core_io.c
+30
-1
没有找到文件。
src/mod/endpoints/mod_sofia/mod_sofia.c
浏览文件 @
dc5c28e1
...
...
@@ -636,7 +636,9 @@ static switch_status_t sofia_kill_channel(switch_core_session_t *session, int si
{
private_object_t
*
tech_pvt
=
switch_core_session_get_private
(
session
);
switch_assert
(
tech_pvt
!=
NULL
);
if
(
!
tech_pvt
)
{
return
SWITCH_STATUS_FALSE
;
}
switch
(
sig
)
{
case
SWITCH_SIG_BREAK
:
...
...
src/switch_core_io.c
浏览文件 @
dc5c28e1
...
...
@@ -40,6 +40,11 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_video_frame(switch_cor
switch_io_event_hook_video_write_frame_t
*
ptr
;
switch_status_t
status
=
SWITCH_STATUS_FALSE
;
switch_io_flag_t
flags
=
0
;
if
(
switch_channel_get_state
(
session
->
channel
)
>=
CS_HANGUP
)
{
return
SWITCH_STATUS_FALSE
;
}
if
(
session
->
endpoint_interface
->
io_routines
->
write_video_frame
)
{
if
((
status
=
session
->
endpoint_interface
->
io_routines
->
write_video_frame
(
session
,
frame
,
timeout
,
flags
,
stream_id
))
==
SWITCH_STATUS_SUCCESS
)
{
for
(
ptr
=
session
->
event_hooks
.
video_write_frame
;
ptr
;
ptr
=
ptr
->
next
)
{
...
...
@@ -57,6 +62,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_video_frame(switch_core
switch_status_t
status
=
SWITCH_STATUS_FALSE
;
switch_io_event_hook_video_read_frame_t
*
ptr
;
if
(
switch_channel_get_state
(
session
->
channel
)
>=
CS_HANGUP
)
{
return
SWITCH_STATUS_FALSE
;
}
if
(
session
->
endpoint_interface
->
io_routines
->
read_video_frame
)
{
if
((
status
=
session
->
endpoint_interface
->
io_routines
->
read_video_frame
(
session
,
frame
,
timeout
,
SWITCH_IO_FLAG_NOOP
,
stream_id
))
==
SWITCH_STATUS_SUCCESS
)
{
...
...
@@ -97,6 +106,11 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi
unsigned
int
flag
=
0
;
top
:
if
(
switch_channel_get_state
(
session
->
channel
)
>=
CS_HANGUP
)
{
return
SWITCH_STATUS_FALSE
;
}
status
=
SWITCH_STATUS_FALSE
;
need_codec
=
perfect
=
0
;
...
...
@@ -466,6 +480,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_frame(switch_core_sess
switch_assert
(
session
!=
NULL
);
switch_assert
(
frame
!=
NULL
);
if
(
switch_channel_get_state
(
session
->
channel
)
>=
CS_HANGUP
)
{
return
SWITCH_STATUS_FALSE
;
}
if
(
switch_channel_test_flag
(
session
->
channel
,
CF_HOLD
))
{
return
SWITCH_STATUS_SUCCESS
;
...
...
@@ -917,6 +934,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_recv_dtmf(switch_core_sessio
switch_status_t
status
;
switch_dtmf_t
new_dtmf
;
if
(
switch_channel_get_state
(
session
->
channel
)
>=
CS_HANGUP
)
{
return
SWITCH_STATUS_FALSE
;
}
switch_assert
(
dtmf
);
new_dtmf
=
*
dtmf
;
...
...
@@ -943,6 +964,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_send_dtmf(switch_core_sessio
switch_status_t
status
=
SWITCH_STATUS_FALSE
;
switch_dtmf_t
new_dtmf
;
if
(
switch_channel_get_state
(
session
->
channel
)
>=
CS_HANGUP
)
{
return
SWITCH_STATUS_FALSE
;
}
switch_assert
(
dtmf
);
new_dtmf
=
*
dtmf
;
...
...
@@ -983,9 +1008,13 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_send_dtmf_string(switch_core
int
i
,
argc
;
char
*
argv
[
256
];
switch_assert
(
session
!=
NULL
);
if
(
switch_channel_get_state
(
session
->
channel
)
>=
CS_HANGUP
)
{
return
SWITCH_STATUS_FALSE
;
}
if
(
switch_strlen_zero
(
dtmf_string
))
{
return
SWITCH_STATUS_FALSE
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论