Or there is a simple database lookup way to determine that the number doesn't belong to the local provider:
"Superfast Response Times
As we access the entire mobile number portability (MNP) database in every country where number porting is in operation, Velocity can truly live up to its name, providing answers at lightening speed (typically less than 5ms)"
"Superfast Response Times As we access the entire mobile number portability (MNP) database in every country where number porting is in operation, Velocity can truly live up to its name, providing answers at lightening speed (typically less than 5ms)"
https://tmtid.com/velocity/