Answer
Shalit was contacted through an intermediary in the early months of captivity. The Israeli government contacted a mediator, who then communicated with the Hamas organization. Shalit was then able to communicate with his family through this mediator.