In the question Encouraging class participation there are some answers how to encourage class participation in general.
Sometimes, there are some smaller lectures (in particular in graduate courses) or you have smaller exercise groups where you know most of the students, sometimes even by name or from other courses.
What are the (dis)advantages of asking questions directly to specific students? E.g., you can ask: "[Student's name], you should remember that from last year's lecture where we done something similar in the proof of Theorem X." or "[Student's name], I've seen that you solved a similar problem very well in your homework. Can you explain to the other students how to start?".