Egypt has been trying for months to mediate an Israeli-Palestinian deal that would include a truce , an exchange of prisoners and an opening of Gaza 's border crossings .