Twilio 電話號碼「線路類型」查詢可以告訴服務甚麼
What a phone-number "line type" check can tell a service
Twilio 的 Line Type Intelligence 可識別電話號碼的電訊商及線路類型,回應包括流動國家代碼、流動網絡代碼、電訊商名稱和號碼類型;部分類型不提供電訊商資料。Twilio 表示,VoIP 號碼較常與機械人相關,未必能同樣確認用戶是真實且獨特的用戶。Google 和 Signal 公開説明的是驗證所需條件,沒有提及線路類型篩查,也沒有保證特定號碼必定獲接納。
When a sign-up form asks for a phone number, a developer has a choice about what to do with it. One option is to look up what kind of line it is. This article explains what one such lookup returns and what it is designed for, using the documentation of a provider that sells it, and what two large services say publicly about the numbers they accept.
It does not say how often any service runs such a check, or that a check caused any particular rejection. The sources below don't say that.
Number types
Twilio's Lookup documentation describes a Line Type Intelligence feature that can identify "the carrier and phone line type, such as mobile, landline, fixed VoIP, non-fixed VoIP, toll free, and more." Its list of type values is: landline, mobile, fixedVoip, nonFixedVoip, personal, tollFree, premium, sharedCost, uan, voicemail, pager and unknown.
Three definitions from that page are relevant here:
- landline: "A landline number that generally can't receive SMS messages."
- mobile: "A mobile number that generally can receive SMS messages."
- nonFixedVoip: "A virtual phone number obtained online without requiring a physical device. For example, Google Voice or Enflick."
The page defines fixedVoip as a virtual number "associated with a physical device", with Comcast and Vonage as examples.
What this particular lookup returns
According to the same page, the response includes the mobile country code, the mobile network code, the carrier name and the number type. For several types (personal, tollFree, premium, sharedCost, uan, voicemail, pager, unknown) carrier data is not available and those fields come back null. That describes this lookup's output only. A service may hold other information about a user from other sources, and this article doesn't cover it.
What it is meant for
A Twilio blog post from July 12, 2022 on filtering VoIP numbers before sending a one-time code says: "One benefit of using phone numbers is that they're more likely to be associated with a unique user. However, VoIP numbers are often correlated with bots and don't have the same assurance that you're interacting with a real and unique user." That is the provider's stated reason for offering the check. Whether a given service uses it, and what it does with the result, is up to that service.
What two large services publish
- Google Account Help, "Verify your account", carries the tip "To verify your account, you need a mobile device." It also says that if you choose the call option, "you can also use your home phone number." The page does not describe any screening by line type.
- Signal Support, "Register a phone number", says "The number must be able to receive an insecure SMS or phone call." It offers a verification call if SMS can't be received. It does not discuss line types either.
So the public pages describe what each flow needs, not how a service decides to accept or refuse a number. Neither promises that any particular number will be accepted.
Sources (read Nov 24, 2026)
- Twilio, Line Type Intelligence: https://www.twilio.com/docs/lookup/v2-api/line-type-intelligence
- Twilio blog, How to filter out VoIP numbers before sending an SMS OTP: https://www.twilio.com/en-us/blog/filter-voip-before-otp-verification
- Google Account Help, Verify your account: https://support.google.com/accounts/answer/114129
- Signal Support, Register a phone number: https://support.signal.org/hc/en-us/articles/360007318691-Register-a-phone-number
This article was drafted by an AI assistant at the author's direction and checked against the sources above before publishing. #ABotWroteThis
來源:DEV Community · dev.to