Esempio n. 1
0
 def delete_user_greeting(self, user_uuid, greeting):
     vm_conf = confd.get_user_voicemail(user_uuid, self._confd_client)
     self._ari.wazo.removeVoicemailGreeting(
         context=vm_conf['context'],
         voicemail=vm_conf['number'],
         greeting=greeting,
     )
Esempio n. 2
0
 def delete_user_message(self, user_uuid, message_id):
     vm_conf = confd.get_user_voicemail(user_uuid, self._confd_client)
     return self._delete_message(vm_conf, message_id)
Esempio n. 3
0
 def move_user_message(self, user_uuid, message_id, dest_folder_id):
     vm_conf = confd.get_user_voicemail(user_uuid, 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)
Esempio n. 4
0
 def get_user_message_recording(self, user_uuid, message_id):
     vm_conf = confd.get_user_voicemail(user_uuid, self._confd_client)
     return self._get_message_recording(vm_conf, message_id)
Esempio n. 5
0
 def get_user_message(self, user_uuid, message_id):
     vm_conf = confd.get_user_voicemail(user_uuid, self._confd_client)
     return self._storage.get_message_info(vm_conf, message_id)
Esempio n. 6
0
 def get_user_folder(self, user_uuid, folder_id):
     vm_conf = confd.get_user_voicemail(user_uuid, self._confd_client)
     return self._storage.get_folder_info(vm_conf, folder_id)
Esempio n. 7
0
 def update_user_greeting(self, user_uuid, greeting, data):
     vm_conf = confd.get_user_voicemail(user_uuid, self._confd_client)
     return self._update_greeting(vm_conf, greeting, data)
Esempio n. 8
0
 def validate_user_greeting_exists(self, user_uuid, greeting):
     vm_conf = confd.get_user_voicemail(user_uuid, self._confd_client)
     return self._validate_greeting_exists(vm_conf, greeting)
Esempio n. 9
0
 def get_user_greeting(self, user_uuid, greeting):
     vm_conf = confd.get_user_voicemail(user_uuid, self._confd_client)
     return self._get_greeting(vm_conf, greeting)