Passengers in non-connecting flights should pass through immigration to collect their luggage and check-in for the next flight, in this case, a Transit visa is required. But if you are going to connect to another flight without any plan to leave the airport, you don't have to take the visa.