When a sim is inserted into an iPhone brought from another country, the IMEI gets listed in the PTA database as non-PTA status, and the PTA system automatically monitors the list of non-PTA phones. After two months, each IMEI is blocked.