mod_voicemail: Add simple mwi update on vm_fsdb_purge api cmd

This commit is contained in:
Marc Olivier Chouinard 2011-07-08 20:35:09 -04:00
parent fae0b7b313
commit c06e8fdf49
1 changed files with 2 additions and 0 deletions

View 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); 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); 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); profile_rwunlock(profile);
stream->write_function(stream, "-OK\n"); stream->write_function(stream, "-OK\n");