提交 03b92c9b authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-4251 --resolve just a silly oversight in the code specific to this use case, thanks

上级 09bef08b
......@@ -1469,6 +1469,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_send_dtmf_string(switch_core
switch_assert(session != NULL);
if (zstr(dtmf_string)) {
return SWITCH_STATUS_FALSE;
}
if (*dtmf_string == '~') {
dtmf_string++;
dtmf.flags = 0;
......@@ -1478,9 +1482,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_send_dtmf_string(switch_core
return SWITCH_STATUS_FALSE;
}
if (zstr(dtmf_string)) {
return SWITCH_STATUS_FALSE;
}
if (strlen(dtmf_string) > 99) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Attempt to send very large dtmf string ignored!\n");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论