]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
vm_read should mark messages as read, but not saved
authorMichael Jerris <mike@jerris.com>
Fri, 20 Jan 2012 01:42:28 +0000 (20:42 -0500)
committerMichael Jerris <mike@jerris.com>
Fri, 20 Jan 2012 01:42:28 +0000 (20:42 -0500)
src/mod/applications/mod_voicemail/mod_voicemail.c

index e63a8db2011cfffdf7ba9eddd9f4381248d525be..b02397909592d4d6ce0e62e204c144f60e057235 100644 (file)
@@ -4495,9 +4495,9 @@ SWITCH_STANDARD_API(voicemail_read_api_function)
                
                if (mread) {
                        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 {
-                               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{
                        if (uuid) {