def _delete_incall_association(line_extension): incall = incall_dao.find_by_extension_id(line_extension.extension_id) incall_dao.delete(incall) extension_dao.dissociate_extension(line_extension.extension_id)
def test_dissociate_extension(self): extension_row = self.add_extension(type='user', typeval='1234') extension_dao.dissociate_extension(extension_row.id) self.assert_extension_not_associated(extension_row.id)
def remove_exten_and_context(extension): line_dao.dissociate_extension(extension) extension_dao.dissociate_extension(extension.id)