One can Ambien or such sleeping pills from many countries in Asia, India too.
My suggestion is not to take Ambien. It gives 4 hours of sleep, and can cause numerous problems.
Personally prefer an anxiolytic ... anxiety reducing drugs like ALPROLOZAM or Alprax.
A 0.025mg tablet with a couple glasses of wine is adequate for 3-6 hours good sleep on most flight.