You have to call your carrier and ask for them to unlock it.
Hi there and welcome! what carrier is it locked to?
Yes, apple sells the unlocked also. But my question is how to unlock a activated AT&T iphone 4S IOS 5.01 JB?ATT wont no but you can buy them factory unlocked in the us now