On older versions of Android I made the default ringtone silent, then manually switched everyone on my contact list to a real ringtone. Not ideal, but it worked. On recent versions of Android you can now get the same effect with an always-on 'do not disturb' mode which only allows notifications...