Number portability just means that the owner of the number can change. When an ownership change happens, the new owner knows they are the current owner, and can reject calls entering their network claiming to come from that number. Likewise, the former owner knows they no longer own it, and can accept calls from it.