Thailand and Cambodia have agreed to an immediate and unconditional ceasefire beginning at midnight, following a successful special meeting hosted and chaired by Malaysian Prime Minister Datuk Seri Anwar Ibrahim.