I know there's a free way to do this with asterisk but the easiest way I've found is a service called Trapcall. It can't unmask all "blocked numbers" as there's various types but it does unmask most.