Skip to content

Blog

Mobile, landline or VoIP: line types, number portability and carrier lookup

How a VoIP number lookup works: line types from numbering plans, why North America cannot tell mobile from landline, porting, and live carrier lookups.

Updated 2026-11-23

A line type lookup tells you whether a phone number comes from a range opened for mobile, landline, VoIP or another service, as defined by its country's numbering plan, and a live carrier lookup adds which operator serves the number today and whether it was ported. VoIP shows up clearly only where the plan reserves ranges for it, such as 056 in the UK or 09 in France. Everywhere else, and in all of North America, a VoIP number can look like any landline or mobile, so the current carrier is the better clue.

The line types a numbering plan defines

Every national plan reserves ranges for each kind of service. Google's libphonenumber turns those plans into one pattern per type and per country, and the phone API returns the matching type in line_type:

line_type What it is Example
mobile A number on a cellular network +33 6 12 34 56 78
landline A fixed line tied to an exchange area +49 30 123456
fixed_line_or_mobile A range the plan does not split +1 201-555-0123
voip A range reserved for internet telephony +33 9 12 34 56 78
toll_free Free for the caller, paid by the receiver +1 800-234-5678
premium_rate The caller pays extra, part of it to the service +1 900-234-5678
shared_cost Caller and receiver share the cost +34 901 12 34 56
personal_number A number that forwards to the owner's chosen phone +44 70 1234 5678
pager A paging service +44 76 4012 3456
uan Universal access number: one number for an organization's sites +44 55 1234 5678
voicemail Direct access to a voicemail box +49 177 99 1234567
unknown No type matched, usually because the number is invalid

The examples are sample numbers published in libphonenumber's metadata or in fictional ranges. They show formats; nobody answers them.

One country, many ranges

The UK shows how much the first digits carry:

UK prefix Line type Example
01, 02 landline +44 121 234 5678
03, 055 uan +44 55 1234 5678
056 voip +44 56 1234 5678
070 personal_number +44 70 1234 5678
076, most ranges pager +44 76 4012 3456
Other 07 ranges mobile +44 7400 123456
0800, 0808 toll_free +44 800 123 4567
084, 087, 09 premium_rate +44 901 234 5678

Both 070 and 076 start like a mobile number to a human reader. The plan says otherwise. That is why a rule like "07 means mobile" in your own code goes wrong, and why the check should read the whole number against the plan.

North America: one pattern for landline and mobile

In the North American Numbering Plan, behind +1, fixed and mobile numbers are assigned from the same area codes and the same exchanges. libphonenumber describes both with one pattern, so every geographic number in the United States, Canada and the other members of the plan comes back fixed_line_or_mobile. The same happens for some ranges elsewhere, such as libphonenumber's sample numbers for Mexico and India.

This is not a gap in the data. The digits genuinely do not say. To learn whether a North American number is wireless today, you need the network, which means a live lookup.

VoIP numbers: what can and cannot be detected

Situation What a plan-based lookup shows What a live lookup adds
A number from a reserved VoIP range: 056 in the UK, 09 in France, 050 in Japan, 55 in Italy voip The current operator
A VoIP service that hands out geographic numbers landline, or fixed_line_or_mobile under +1 The current operator, which may be an internet telephony provider
A VoIP service that hands out numbers from mobile ranges mobile The current operator
A mobile or landline number ported to a VoIP provider The type of the original range The new operator, and ported: true

So "is this number VoIP?" has a precise answer only in countries with reserved ranges. Elsewhere, the plan describes where the number came from, and the live lookup tells you who serves it now. At the live level, the provider's line type replaces the plan's when the provider reports one, as when a fixed_line_or_mobile US number comes back mobile.

Some carrier data sources go further and split VoIP into fixed services, tied to a physical address like a cable phone line, and non-fixed services, which anyone can obtain online. In the United States, the FCC defines interconnected VoIP in its rules at 47 CFR 9.3. The Qelka API reports a single voip value and does not make that split.

Whether VoIP matters to you depends on the flow. Many real customers use internet telephony at work or at home. VoIP numbers that can be obtained in minutes are also easy to multiply, which matters for one-trial-per-number rules. Decide per flow rather than banning VoIP everywhere.

Number portability: why the range type goes stale

Number portability lets a subscriber change operator and keep the number. In the United States, wireless number portability took effect in November 2003, including ports between landline and wireless carriers. In the European Union, Article 106 of the European Electronic Communications Code guarantees it. Many other countries run similar schemes.

Two consequences follow for lookups:

  • The range type describes the origin. A landline ported to a mobile operator keeps the type of its original range in plan data.
  • The prefix stops pointing to the network. Calls and messages need another way to find the right operator. In the United States and Canada, the Number Portability Administration Center (NPAC) records each ported number against a Location Routing Number (LRN), a ten-digit number identifying the switch that now serves it. Other countries use central databases or let operators query each other.

A live lookup reads from sources of this kind at the time of the request, which is why it sees ports and a plan-based check cannot.

Range holder versus current carrier

Basic level Live level
Question answered Which operator received this block of numbers? Which operator serves this number now?
Source libphonenumber's carrier prefix table An upstream number-lookup provider
carrier.source numbering_plan live
ported null true or false
carrier.mcc, carrier.mnc null Returned for mobile networks
Landlines No carrier name The serving operator
Credits 1 3

The prefix table names range holders for mobile, pager and landline-or-mobile ranges, and coverage varies by country. Under +1, it covers Caribbean countries and US territories but holds no entries for numbers in the US states or Canada. A difference in names between the two levels is not always a port: operators merge and rebrand, and virtual operators run on host networks. Only ported says whether the number changed hands.

MCC and MNC

ITU-T E.212 defines the mobile country code (MCC, three digits) and the mobile network code (MNC, two or three digits). Together they identify a mobile network for roaming partners and SMS hubs, and they open the IMSI on every SIM card. MCCs are not calling codes: the United States uses MCCs 310 to 316 while its calling code is 1. They describe mobile networks only, so they stay empty for fixed lines.

Look up line type and carrier with the API

A basic check returns the line type and the range holder from the plan:

curl https://api.qelka.com/v1/phone \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"phone": "+14155550123"}'

The response has line_type: "fixed_line_or_mobile" and carrier.source: "numbering_plan". Ask for the network with "level": "live":

curl https://api.qelka.com/v1/phone \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"phone": "+14155550123", "level": "live"}'
{
  "id": "lkp_01M84BPZ037KMC9XHB5N9T5H0K",
  "object": "phone",
  "input": "+14155550123",
  "valid": true,
  "status": "valid",
  "e164": "+14155550123",
  "national": "(415) 555-0123",
  "country": { "code": "US", "name": "United States", "calling_code": "1" },
  "region": "California",
  "timezones": ["America/Los_Angeles"],
  "line_type": "mobile",
  "carrier": { "name": "Example Wireless", "mcc": "310", "mnc": "000", "source": "live" },
  "ported": false,
  "credits_used": 3,
  "cached": false
}

Values are illustrative. The live answer replaced fixed_line_or_mobile with mobile and named the serving network.

In JavaScript, a function that runs the cheap check first and pays for the live one only when the plan cannot decide:

const API = 'https://api.qelka.com/v1'

async function lookup(phone, level) {
  const response = await fetch(`${API}/phone`, {
    method: 'POST',
    headers: {
      Authorization: `Bearer ${process.env.API_KEY}`,
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({ phone, level }),
    signal: AbortSignal.timeout(8000),
  })
  if (!response.ok) return null
  return response.json()
}

export async function smsChannel(phone) {
  const basic = await lookup(phone, 'basic')
  if (!basic || !basic.valid) return { send: false, reason: 'invalid' }
  if (basic.line_type === 'mobile') return { send: true, lineType: 'mobile' }
  if (basic.line_type === 'voip') return { send: true, lineType: 'voip', unconfirmed: true }
  if (basic.line_type !== 'fixed_line_or_mobile') return { send: false, reason: basic.line_type }

  const live = await lookup(phone, 'live')
  if (!live) return { send: true, lineType: 'fixed_line_or_mobile', unconfirmed: true }
  return { send: live.line_type !== 'landline', lineType: live.line_type, carrier: live.carrier.name, ported: live.ported }
}

A failed live lookup returns 502 upstream_unavailable and is not billed, so the function falls back to sending and watching delivery reports. A live lookup sends the number to the lookup provider; the basic level never sends it outside. Results are cached for 7 days; send "fresh": true when a routing or fraud decision depends on today's network.

What to do with each line type

line_type SMS or one-time code Signup form Calls
mobile Send Accept Call
fixed_line_or_mobile Send and watch delivery, or run a live lookup first Accept Call
landline Do not text Accept if calls work for you Call
voip Decide per flow: fine for notices, weigh abuse risk for codes Accept or flag Call
toll_free, shared_cost, uan Do not send Flag: a business line, not a person Call
premium_rate Never send Refuse Never call back unprompted
personal_number, pager, voicemail Do not send Ask for another number Usually not useful
unknown Do not send Ask for a correction Fix the number first

Refusing premium-rate, shared-cost and unknown numbers before any code goes out is one of the cheapest defenses against SMS pumping, where bots trigger codes to expensive routes and the attacker earns a share. Stopping fake signups combines it with email and IP checks.

A note for US callers

In the United States, the Telephone Consumer Protection Act (47 U.S.C. 227) puts stricter consent rules on autodialed or prerecorded calls and texts to wireless numbers. That is one reason US teams want to know whether a number is wireless, and porting is why the range type is not enough for that question. Numbers also get reassigned to new subscribers after disconnection; the FCC's Reassigned Numbers Database, available since 2021, lets callers check whether a number was permanently disconnected after a given date. This is context, not legal advice.

Where to go next

The free line type lookup and carrier lookup show both levels for any number, and the phone number lookup shows everything at once. Every value of line_type is in the phone API reference, and the phone validation API page covers pricing. To check numbers before you look at their type, read phone number validation, and to store them, E.164 format.

Frequently asked questions

How can I tell if a phone number is VoIP?
Look up its line type. Where a country reserves ranges for internet telephony, such as 056 in the UK, 09 in France, 050 in Japan or 55 in Italy, the numbering plan labels the number VoIP. Elsewhere, VoIP services hand out ordinary geographic or mobile numbers that look like any other. A live carrier lookup then tells you which operator serves the number today, which can point to an internet telephony provider.
Can you detect VoIP numbers in the United States?
Not from the number alone. The North American Numbering Plan has no ranges reserved for VoIP, and landline and mobile numbers share the same area codes, so a plan-based check returns landline or mobile for every geographic US number. A live lookup adds the operator currently serving the number. When that operator is an internet telephony provider, you have your answer; the digits never tell you.
Why does a US number show landline or mobile?
Because the US plan does not separate them. In the North American Numbering Plan, fixed and mobile numbers come from the same area codes and exchanges, so libphonenumber describes both with one pattern and reports fixed line or mobile. The same is true for Canada and the other members of the plan. A live lookup at the current carrier usually settles whether a given number is wireless.
What does ported mean in a phone number lookup?
It means the number has moved away from the operator its range was originally assigned to. Number portability lets subscribers change operator and keep their number, so the first digits stop pointing at the right network. A live lookup compares the serving operator with the range holder and reports ported as true or false. A plan-based lookup cannot see porting, so it returns null for that field.
Does a carrier lookup show the owner's name?
No. A carrier lookup tells you which network serves a number, and at the live level whether it was ported and its mobile network codes. It does not return the name or address of the subscriber. The Qelka API never returns the person or company behind a number, at either level. Caller name services are a separate kind of data with their own rules.
Can VoIP numbers receive SMS verification codes?
Some can and some cannot: it depends on the service behind the number. Many internet telephony services support text messages, others are voice only. VoIP numbers that can be obtained online in minutes are also easy to multiply, which is why some products refuse them for verification while others accept them. Decide per flow, and watch delivery reports rather than assuming either way.
How much does a live carrier lookup cost?
With Qelka, a live lookup costs 3 credits and a basic numbering plan check 1 credit. The basic check already returns the line type and the original carrier of the range; the live level adds the current carrier, mobile network codes and porting status. A live lookup whose provider fails returns HTTP 502 and is not billed. Results are cached for 7 days.

Put this check in your product

Get an API key in under a minute. 100 free credits every month, no card required.