Or use TOTP / HOTP
If the idea is to verify, as the second factor, something you 'have' (ie the phone), then a TOTP or HOTP generated number will work, even if you don't have a data connection for the phone.
Quite useful when you are working overseas or when the SMS service is slow (or as per the article, untrusted).