The two sides agree to swap prisoners and remains of about 6,000 soldiers killed in combat but are at odds over a truce.