提交 693f2986 authored 作者: Michael Jerris's avatar Michael Jerris

vm_read should mark messages as read, but not saved

上级 256d67c7
...@@ -4495,9 +4495,9 @@ SWITCH_STANDARD_API(voicemail_read_api_function) ...@@ -4495,9 +4495,9 @@ SWITCH_STANDARD_API(voicemail_read_api_function)
if (mread) { if (mread) {
if (uuid) { if (uuid) {
sql = switch_mprintf("update voicemail_msgs set read_epoch=%ld,flags='save' where uuid='%q'", (long) switch_epoch_time_now(NULL), uuid); sql = switch_mprintf("update voicemail_msgs set read_epoch=%ld where uuid='%q'", (long) switch_epoch_time_now(NULL), uuid);
} else { } else {
sql = switch_mprintf("update voicemail_msgs set read_epoch=%ld,flags='save' where domain='%q'", (long) switch_epoch_time_now(NULL), domain); sql = switch_mprintf("update voicemail_msgs set read_epoch=%ld where domain='%q'", (long) switch_epoch_time_now(NULL), domain);
} }
} else{ } else{
if (uuid) { if (uuid) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论