def delete_greeting(self, voicemail_id, greeting): vm_conf = confd.get_voicemail(voicemail_id, self._confd_client) self._ari.wazo.removeVoicemailGreeting( context=vm_conf['context'], voicemail=vm_conf['number'], greeting=greeting, )
def delete_message(self, voicemail_id, message_id): vm_conf = confd.get_voicemail(voicemail_id, self._confd_client) return self._delete_message(vm_conf, message_id)
def move_message(self, voicemail_id, message_id, dest_folder_id): vm_conf = confd.get_voicemail(voicemail_id, self._confd_client) dest_folder = self._storage.get_folder_by_id(dest_folder_id) message_info = self._storage.get_message_info(vm_conf, message_id) self._move_message(vm_conf, message_info, dest_folder)
def get_message_recording(self, voicemail_id, message_id): vm_conf = confd.get_voicemail(voicemail_id, self._confd_client) return self._get_message_recording(vm_conf, message_id)
def get_message(self, voicemail_id, message_id): vm_conf = confd.get_voicemail(voicemail_id, self._confd_client) return self._storage.get_message_info(vm_conf, message_id)
def get_folder(self, voicemail_id, folder_id): vm_conf = confd.get_voicemail(voicemail_id, self._confd_client) return self._storage.get_folder_info(vm_conf, folder_id)
def update_greeting(self, voicemail_id, greeting, data): vm_conf = confd.get_voicemail(voicemail_id, self._confd_client) return self._update_greeting(vm_conf, greeting, data)
def validate_greeting_exists(self, voicemail_id, greeting): vm_conf = confd.get_voicemail(voicemail_id, self._confd_client) return self._validate_greeting_exists(vm_conf, greeting)
def get_greeting(self, voicemail_id, greeting): vm_conf = confd.get_voicemail(voicemail_id, self._confd_client) return self._get_greeting(vm_conf, greeting)