What exactly you want to know?
In india MNP whihc is under testing phase by many operators is applicable intra-cirle and for mobile numbers only. There are different ways to implement MNP. One of the method is all call query. Every call will be queried in database to check if it ported or normal number and accordingly call will be routed.