提交 d96eb988 authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-2857

上级 d4138959
......@@ -911,7 +911,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_park(switch_core_session_t *session,
switch_ivr_parse_all_events(session);
if (args && switch_channel_has_dtmf(channel)) {
if (switch_channel_has_dtmf(channel)) {
switch_dtmf_t dtmf = { 0 };
if (args && !args->input_callback && !args->buf && !args->dmachine) {
......@@ -921,6 +921,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_park(switch_core_session_t *session,
switch_channel_dequeue_dtmf(channel, &dtmf);
if (args) {
if (args->dmachine) {
char ds[2] = {dtmf.digit, '\0'};
if ((status = switch_ivr_dmachine_feed(args->dmachine, ds, NULL)) != SWITCH_STATUS_SUCCESS) {
......@@ -932,6 +933,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_park(switch_core_session_t *session,
}
}
}
}
if (switch_core_session_dequeue_event(session, &event, SWITCH_FALSE) == SWITCH_STATUS_SUCCESS) {
if (args && args->input_callback) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论