I gave that solution a try but unfortunately I could not make it work correctly.
I enabled Do Not Disturb and, under Calls, message, and conversations, for Calls I selected 'Contacts only', and for Messages I selected 'Contacts only'. I had a contact call me and text me.
The call sound came...