The US president says the countries discussed a "total resolution of our hostilities" in the Middle East over the last two days.