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