Try to insert some other sim card and still if it throws in the same error, your phone is still locked to T-mobile network. I suggest you can approach unBBlock.com and specify the country,locked network of Blackberry 8520.Based on the availability you can get the permanent unlock service along with free instructions.