Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
bf6b61f9
提交
bf6b61f9
authored
7月 21, 2018
作者:
Anthony Minessale
提交者:
Muteesa Fred
7月 24, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-11264: [freeswitch-core] Remove old speech handle when asr failure happens #resolve
上级
6d1b8e12
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
7 行增加
和
1 行删除
+7
-1
switch_ivr_async.c
src/switch_ivr_async.c
+7
-1
没有找到文件。
src/switch_ivr_async.c
浏览文件 @
bf6b61f9
...
@@ -86,6 +86,7 @@ struct switch_ivr_dmachine {
...
@@ -86,6 +86,7 @@ struct switch_ivr_dmachine {
uint8_t
pinging
;
uint8_t
pinging
;
};
};
static
switch_status_t
speech_on_dtmf
(
switch_core_session_t
*
session
,
const
switch_dtmf_t
*
dtmf
,
switch_dtmf_direction_t
direction
);
SWITCH_DECLARE
(
switch_status_t
)
switch_ivr_dmachine_last_ping
(
switch_ivr_dmachine_t
*
dmachine
)
SWITCH_DECLARE
(
switch_status_t
)
switch_ivr_dmachine_last_ping
(
switch_ivr_dmachine_t
*
dmachine
)
{
{
...
@@ -4677,7 +4678,12 @@ static switch_bool_t speech_callback(switch_media_bug_t *bug, void *user_data, s
...
@@ -4677,7 +4678,12 @@ static switch_bool_t speech_callback(switch_media_bug_t *bug, void *user_data, s
case
SWITCH_ABC_TYPE_CLOSE
:
case
SWITCH_ABC_TYPE_CLOSE
:
{
{
switch_status_t
st
;
switch_status_t
st
;
switch_core_session_t
*
session
=
switch_core_media_bug_get_session
(
bug
);
switch_channel_t
*
channel
=
switch_core_session_get_channel
(
session
);
switch_channel_set_private
(
channel
,
SWITCH_SPEECH_KEY
,
NULL
);
switch_core_event_hook_remove_recv_dtmf
(
session
,
speech_on_dtmf
);
switch_core_asr_close
(
sth
->
ah
,
&
flags
);
switch_core_asr_close
(
sth
->
ah
,
&
flags
);
if
(
sth
->
mutex
&&
sth
->
cond
&&
sth
->
ready
)
{
if
(
sth
->
mutex
&&
sth
->
cond
&&
sth
->
ready
)
{
if
(
switch_mutex_trylock
(
sth
->
mutex
)
==
SWITCH_STATUS_SUCCESS
)
{
if
(
switch_mutex_trylock
(
sth
->
mutex
)
==
SWITCH_STATUS_SUCCESS
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论