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

fix parsing of dtmf string

上级 f08b9676
...@@ -1435,7 +1435,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_send_dtmf_string(switch_core ...@@ -1435,7 +1435,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_send_dtmf_string(switch_core
dur = switch_core_default_dtmf_duration(0) / 8; dur = switch_core_default_dtmf_duration(0) / 8;
if ((p = strchr(argv[i], '@'))) { if ((p = strchr(argv[i], '@'))) {
*p++ = '\0'; *p++ = '\0';
if ((dur = atoi(p)) > 50) { if ((dur = atoi(p)) > (int)switch_core_min_dtmf_duration(0) / 8) {
dtmf.duration = dur * 8; dtmf.duration = dur * 8;
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论