Thailand has released 18 captured Cambodian soldiers, returning them across the border after Bangkok and Phnomh Penh agreed to a ceasefire over the weekend.