The government says up to 2,000 prisoners will be freed, after the Islamist group proposed a truce.