Truce will also include swap of 1,000 prisoners of war from each country, US president says.