提交 8a87e41e authored 作者: joshebosh's avatar joshebosh 提交者: Andrey Volk

FS-10900 [mod_commands] uuid_recv_dtmf is showing -ERR no reply

上级 c796723d
...@@ -6295,7 +6295,12 @@ SWITCH_STANDARD_API(uuid_send_dtmf_function) ...@@ -6295,7 +6295,12 @@ SWITCH_STANDARD_API(uuid_send_dtmf_function)
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
} }
switch_core_session_send_dtmf_string(psession, (const char *) dtmf_data); if (switch_core_session_send_dtmf_string(psession, (const char *) dtmf_data) == SWITCH_STATUS_SUCCESS) {
stream->write_function(stream, "+OK %s sent DTMF %s.\n", uuid, dtmf_data);
} else {
stream->write_function(stream, "-ERR Operation failed\n");
}
goto done; goto done;
usage: usage:
...@@ -6343,7 +6348,12 @@ SWITCH_STANDARD_API(uuid_recv_dtmf_function) ...@@ -6343,7 +6348,12 @@ SWITCH_STANDARD_API(uuid_recv_dtmf_function)
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
} }
switch_channel_queue_dtmf_string(switch_core_session_get_channel(psession), dtmf_data); if (switch_channel_queue_dtmf_string(switch_core_session_get_channel(psession), dtmf_data) == SWITCH_STATUS_SUCCESS) {
stream->write_function(stream, "+OK %s received DTMF %s.\n", uuid, dtmf_data);
} else {
stream->write_function(stream, "-ERR Operation failed\n");
}
goto done; goto done;
usage: usage:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论