Unlocking An iPhone 5 Under AT&T Carrier. Here's The Answer.
You contact customer care at AT&T and they will send you an email to unlock the device. That’s what T-Mobile did for my phone. AT&T also has an unlock portal to do it easily online: https://www.att.com/deviceunlock/#/