Baskin, like in his efforts to release Schalit in 2011, worked in a "system" or a "secret channel," as he described in his post, that allowed him to develop communication with those Hamas is holding.
Source: Jerusalem Post
Full Article: Schalit deal mediator says he reached agreement with Hamas to release remaining hostages