You need to dial 001 first for all international calls made from Thailand.
For example: To call Turkey from Thailand, you should dial: "+66 + 90 + phone number"(90 is the country code of Turkey).