Directed phone book entrys

I would like set up a inbound route that only follows IF they are in the phone book - can’t figure how to do this ?