Both sides agree to stop their conflict which has led to a humanitarian crisis and warnings of a famine.