It all depends on your nationality. There are certain nationalities that qualify for transit visa on arrival.Recently, a relative of mine who is a US national, got one at the at the airport. I guess there is small fee involved.