An agreement has been signed between Indonesia, Malaysia and the Philippines to launch a trilateral maritime patrol to tackle international crime.