You can travel upto 38 weeks as my wife travel in 5 month without any problem but after 38 weeks you need a medical certificate from your doctor. while seating in the airplane try to take a pillow and do some walk after some interval. drink plenty of fluid.