]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_voicemail: Add simple mwi update on vm_fsdb_purge api cmd
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Sat, 9 Jul 2011 00:35:09 +0000 (20:35 -0400)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Sat, 9 Jul 2011 00:35:09 +0000 (20:35 -0400)
src/mod/applications/mod_voicemail/mod_voicemail.c

index 8ebc3ae2b07670c6c6baaaf5022b9f14034da302..aff4c470d07cbc3b9c68f9ee1f710061bc07a64f 100644 (file)
@@ -4947,6 +4947,8 @@ SWITCH_STANDARD_API(vm_fsdb_msg_purge_function)
 
        sql = switch_mprintf("SELECT '%q', uuid, username, domain, file_path FROM voicemail_msgs WHERE username = '%q' AND domain = '%q' AND flags = 'delete'", profile_name, id, domain);
        vm_execute_sql_callback(profile, profile->mutex, sql, message_purge_callback, NULL);
+       update_mwi(profile, id, domain, "inbox"); /* TODO Make inbox value configurable */
+
        profile_rwunlock(profile);
 
        stream->write_function(stream, "-OK\n");