How do I unlock my AT&T iPhone 5?

HI i have an iphone 5
bought in america with a career at&t
but now its in pakistan
thus it does not support the local networks
it gets de activated when i do this
can u tell me a way to unlock it for free
its jailbroken
but i ddont kno how
Thread title edited for clarity...

If you are not an AT&T customer you will need to find a third party unlocking service to unlock it for you.
AT&T has removed 3rd party unlocking capabilities, so unfortunately, the only way to unlock an iPhone that is locked to AT&T under contract is to submit their carrier unlock form you can find on their website. The phone cannot be under contract to unlock it though...it also has to be past the 14 day return window.

Original thread: https://forums.imore.com/threads/how-do-i-unlock-my-at-t-iphone-5.269684/