The ceasefire follows three days of border negotiations, announced after a crisis meeting of ASEAN foreign ministers.