Nearly 2,000 boat people from Myanmar and Bangladesh have been rescued or swum to shore in Malaysia and Indonesia.