Number porting moves a phone number you already have from one carrier to another. Almost nobody learns how it works until a business changes carriers and someone has to do it. This guide is for the sysadmin or developer who just became that someone. By the end you will know what happens between carriers during a US port, how to move local and toll-free numbers to a Twilio Elastic SIP Trunk in waves, and where ports usually go wrong.

It assumes the trunk and PBX already exist. If they do not, Build Your Own PBX with Twilio and Asterisk covers the trunk, TLS, SRTP and Asterisk setup.

Last verified: December 2026 against Twilio’s porting, Elastic SIP Trunking and Lookup v2 documentation, 47 CFR 52.35, FCC consumer guidance, Somos documentation and the 3CX trunk options page. Twilio’s porting console is partly in public beta; labels change.

Why You Might Switch Carriers

A port is work, and there is no fallback once a number moves, so businesses switch for concrete reasons:

  • Billing you can’t trust. A requested change (fewer minutes, a removed number) can go unapplied for months without anyone noticing when the invoice is one bundled line.
  • Paying for capacity you don’t use. Legacy business voice is often a fixed block of minutes plus a fixed number of SIP call paths (concurrent calls), with per-number charges on top. An elastic trunk bills per minute. Twilio’s Elastic SIP Trunking pricing page advertises no contracts and no channel limits, and its limits page lists concurrent calls as unlimited (dependent on carrier support) once you have an approved Business Profile.
  • Contract renewals. The end of a term contract is the natural time to move, before it renews.
  • Getting rid of on-premises voice. Calls that arrive through a circuit or SD-WAN box tie the phone system to one building. Numbers on a cloud trunk can terminate on a PBX anywhere, including a cloud server.

Compare cost with real usage, not list prices: price a few months of the old carrier’s call detail records on the new one, including per-number and emergency address fees.

How It Works

Local number portability (LNP) is the US rule that lets a customer keep a number when changing carriers. The carrier you are moving to is the gaining (or winning) carrier. The one you are leaving is the losing carrier. You start a port by asking the gaining carrier, which sends the request. The FCC’s advice is to contact the new company first and not to cancel the old service.

The terms you will see in every rejection email:

  • LOA (Letter of Authorization): a signed statement that you authorize the gaining carrier to move the numbers. The name and service address on it must match the losing carrier’s records.
  • CSR (Customer Service Record): the losing carrier’s official record of your account (account number, authorized name, service address, numbers). Your request is checked against it field by field.
  • BTN (Billing Telephone Number): the main number the account is billed under. If you port the BTN but leave other numbers behind, pick one of the remaining numbers to become the account’s new BTN.
  • LSR (Local Service Request): the formal port order the gaining carrier sends the losing carrier.
  • FOC (Firm Order Commitment, also called Firm Order Confirmation): the losing carrier’s confirmation of the order, with the port date.
  • NPAC (Number Portability Administration Center): the national database that maps every ported number to a Location Routing Number, a 10-digit number that identifies the switch now serving it. iconectiv runs it.
  • Port-out PIN or passcode: an extra secret some carriers require on the request, most mobile carriers among them.

The losing carrier compares the LSR to the CSR and either rejects it or returns an FOC. On the FOC date the gaining carrier activates the port in the NPAC, the NPAC pushes the new routing to every carrier, and the losing carrier removes its own.

Port flows: local numbers go from gaining carrier to losing carrier as an LSR, then FOC or rejection, then NPAC activation; toll-free numbers go through a RespOrg change, release, and reroute Local numbers move through the NPAC. Toll-free numbers move through a RespOrg change in the Somos TFN Registry, in two phases.

Simple and non-simple ports. Under 47 CFR 52.35, a simple port must complete within one business day and a non-simple port within four business days, unless the customer or new provider asks for longer. A simple port involves an account for a single line, with no unbundled network elements, no complex switch features and no reseller. A business with many numbers on one account is almost never a simple port. The clock starts when the losing carrier receives a complete and accurate LSR, so it does not cover the gaining carrier’s own steps. Twilio quotes 5 to 15 days for a typical port, and up to four weeks or longer if the losing carrier rejects it.

Toll-free numbers work differently. They do not go through the NPAC. Each toll-free number is managed by a RespOrg (Responsible Organization) in the TFN Registry, the toll-free database administered by Somos. Porting one means a RespOrg change: the gaining RespOrg submits it with your LOA, the controlling RespOrg releases the number, and the gaining carrier reroutes it. Twilio quotes 1 to 4 weeks, and says the losing carrier usually keeps carrying calls for about 10 days after release.

Porting rights are not contract rights. The FCC says your old company cannot refuse to port your number even if you owe an outstanding balance or a termination fee. You may still owe both under your contract. Check your contract’s notice period and notices clause (who must receive the notice, and in what form) before you plan dates.

Prerequisites

  • A Twilio account upgraded from trial, with an approved Primary Customer Profile (Business Profile) in Trust Hub. Without one, Twilio limits concurrent calls, you cannot raise CPS (calls per second) yourself in the Console, and outbound calls to +1 numbers fail. Twilio says review can take up to seven business days, so submit it first.
  • An Elastic SIP Trunk and PBX trunk built and tested end to end with a Twilio-purchased test number (inbound, outbound, DTMF, transfers, voicemail), and the PBX trunk’s simultaneous call limit known.
  • A complete number inventory (Step 1) and the CSR for every account the numbers live on (Step 2).
  • An E911 address plan: the street address, validated against the 911 database, for every number that can dial out.
  • curl and jq installed on the machine you run the API commands from.
  • A recent bill from the losing carrier as a PDF, dated within the last 30 days, showing the account number, name and address.
  • Example values used below: numbers +15555550100 through +15555550199, trunk SID <TRUNK_SID>.

Step 1: Inventory Every Number and Plan Waves

A number list from a bill tells you what you pay for, not what each number does. For each number, record:

  • Every account and BTN it sits on with the losing carrier (there may be more than one account).
  • What it actually does: the PBX inbound rule it hits, whether it is used as outbound caller ID anywhere, whether it is a fax line, alarm line, elevator phone or a number printed on invoices.
  • Who answers it and when.

Confirm the function by calling the number and checking the PBX inbound routing, not by trusting a label on a spreadsheet. Misjudging a number from its label is an easy way to port a critical line in the wrong wave.

Then check which carrier currently holds each local number. Twilio’s Lookup v2 Line Type Intelligence package returns a carrier_name; it is a paid package (basic Lookup is free) and returns no carrier for toll-free numbers. Put one E.164 number per line in numbers.txt and create an API key in the Console:

Copied!
export TWILIO_ACCOUNT_SID=<ACCOUNT_SID>
export TWILIO_API_KEY=<API_KEY_SID>
export TWILIO_API_SECRET=<API_KEY_SECRET>

while read -r num; do
  curl -s -G "https://lookups.twilio.com/v2/PhoneNumbers/${num/+/%2B}" \
    --data-urlencode "Fields=line_type_intelligence" \
    -u "$TWILIO_API_KEY:$TWILIO_API_SECRET" \
  | jq -r '[.phone_number, .line_type_intelligence.type, .line_type_intelligence.carrier_name] | @tsv'
done < numbers.txt
Copied!
+15555550100    landline    <CARRIER_NAME>
+15555550101    landline    <CARRIER_NAME>

If numbers you thought were on one account show different carrier names, they may sit on different underlying carrier records, and that changes what the port request needs.

Now group the numbers into waves. Port the lowest-risk numbers first (internal DIDs, direct lines), then the next tier, and the numbers customers call last. The first wave shows how the losing carrier behaves, at the cost of a few direct lines if it goes wrong. Keep each wave a real group: Twilio advises against splitting a bulk order (50 or more numbers) into small pieces, and losing carriers often process requests for the same account one at a time, so don’t submit overlapping orders against one account. If the BTN is in an early wave, decide which remaining number becomes the new BTN.

Step 2: Get the Customer Service Record

Twilio names incorrect name or address information as the most common reason for a rejected port. Get the CSR before you submit, not after the first rejection.

Ask the losing carrier’s porting department (not general support) for the CSR “for porting purposes,” per account. From it, copy exactly:

  • Account number (and any sub-account numbers).
  • BTN.
  • Authorized name, spelled as the carrier has it.
  • Service address: the physical address where service is provided, not a billing or correspondence address. PO boxes are rejected.
  • Whether a port-out PIN is set.

Also ask whether any service orders are pending on the account. A pending order (a plan change, a line removal) can block a port until it completes.

Step 3: Submit the Port in the Twilio Console

Twilio has two Console flows. The newer Port & Host > Port-in US Local flow (public beta since September 2025) handles US local numbers only, up to 50 per request during the beta, includes a portability check that tells you if a PIN is needed, lets you pick a port date, and generates a digital LOA that the authorized person signs by email within 30 days. The original Port a Number flow takes local and toll-free numbers together, up to 1,000 per request, and has you upload a signed LOA and a billing document.

For either flow:

  1. Enter the business name and the service address exactly as they appear on the CSR.
  2. Paste the numbers for this wave only.
  3. Enter the account number, BTN and PIN if one exists.
  4. Attach the LOA (if the flow asks for an upload) and the bill PDF. Check the file size limit the form shows before you scan a 40-page bill.
  5. Submit, and keep the request ID or ticket number.

Twilio says to expect its own approval within about 24 hours for a complete request; its carrier partner then contacts the losing carrier.

Step 4: Put the Numbers on the Trunk Before Port Day

Calls arrive at Twilio the moment a port completes, and fail if the number is not on your trunk. Twilio says you can configure numbers at any point in the porting process, and recommends having everything tested at least 48 hours before the port date.

In the Console, open the trunk’s Numbers tab and associate each number, or configure the number from its Port In Request page. If a number already appears under Active Numbers, you can do it with the API. Look up its PN SID, then attach it:

Copied!
PN_SID=$(curl -s -G "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/IncomingPhoneNumbers.json" \
  --data-urlencode "PhoneNumber=+15555550100" \
  -u "$TWILIO_API_KEY:$TWILIO_API_SECRET" | jq -r '.incoming_phone_numbers[0].sid')
echo "$PN_SID"

curl -s -X POST "https://trunking.twilio.com/v1/Trunks/<TRUNK_SID>/PhoneNumbers" \
  --data-urlencode "PhoneNumberSid=$PN_SID" \
  -u "$TWILIO_API_KEY:$TWILIO_API_SECRET" | jq -r '.phone_number, .trunk_sid'

If the first command prints null, the number is not on the account yet; stop there instead of sending the POST.

The Twilio CLI equivalent is twilio api:trunking:v1:trunks:phone-numbers:create --trunk-sid <TRUNK_SID> --phone-number-sid <PN_SID>.

On the PBX side, create the inbound rule for each number now, in the format the trunk will deliver. Twilio sends the dialed number in E.164 (+15555550100). Either match that in the PBX, or normalize it in one place. If an Asterisk proxy sits between the PBX and Twilio, ${EXTEN:2} turns +15555550100 into 5555550100. Pick one format and use it everywhere.

Step 5: Handle Rejections

When the losing carrier rejects a number, the request goes to Action Required. Read the rejection reason, fix the data, and resubmit, or cancel the rejected numbers and let the rest continue. Twilio’s best practices say to reply with corrected information within 5 business days or the provisioning partner may cancel the port for inactivity, and Twilio says a rejection can add two to four weeks.

The reason you see is usually a short code. Ask Twilio support for the raw reject remarks and which carrier entity rejected the order, then compare every field against the CSR again. When every number fails together with the same reason, suspect an account-level field (account number, BTN, name, service address) or the wrong account record, not the numbers. The common “Inactive” case is in Troubleshooting.

Step 6: Run the Port Day Checklist

Before the FOC date:

  • Every number in the wave is on the trunk and has a PBX inbound rule.
  • The PBX trunk’s simultaneous call limit is at least your real peak concurrency for every number that will be on the trunk after this wave, within your PBX license limit.
  • Someone can make test calls from an outside mobile phone right after the port.
  • The old carrier’s service stays up. Twilio says to keep it at least 10 days past the scheduled port date.

On the day, watch the trunk. On an Asterisk proxy:

Copied!
sudo asterisk -rx "core show channels count"
Copied!
24 active channels
12 active calls
318 calls processed

A proxy shows two channels per call, one per leg. Compare active calls with the PBX’s trunk limit, then call every ported number from outside.

Step 7: Move Outbound Routes and Caller ID

Porting moves inbound calls only. After each wave, point outbound routes for those users at the Twilio trunk and set their caller ID.

Twilio requires the caller ID on Elastic SIP Trunking calls to be a Twilio number on the account (or a verified caller ID), in E.164. A number that has not finished porting is not yet a Twilio number, so Twilio rejects calls from a user whose caller ID is still at the old carrier (its trunking troubleshooting guide covers this under 403 Invalid Caller ID). Move a user’s outbound route only after their caller ID number has ported.

Step 8: Register E911, CNAM and SHAKEN/STIR

These are per-number settings at Twilio. Set them on every ported number; do not assume anything from the old carrier’s setup applies.

E911. Add an emergency address on the trunk’s Numbers tab or the number’s page. It must match the Master Street Address Guide, which can differ from the postal address. A number without a registered address still reaches 911 through a national call center, for a per-call fee. List the status of every number:

Copied!
curl -s -G "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/IncomingPhoneNumbers.json" \
  --data-urlencode "PageSize=1000" \
  -u "$TWILIO_API_KEY:$TWILIO_API_SECRET" \
| jq -r '.incoming_phone_numbers[] | [.phone_number, (.trunk_sid // "NO TRUNK"), .emergency_address_status] | @tsv'

Anything other than registered needs fixing before the old carrier is cancelled.

CNAM (the caller name the called party sees). Register it in Trust Hub for US local numbers assigned to your Business Profile; it takes 48 to 72 hours to spread after approval. Toll-free CNAM goes through Twilio Support.

SHAKEN/STIR (the attestation that you own the number you are calling from). Twilio signs with A only when the number is assigned to an approved Business Profile and SHAKEN/STIR Trust Product. Assign each ported number after it lands.

Step 9: Cancel the Old Carrier Last

Cancel only after every number is ported, verified in production, and its E911 address is registered. Before you send anything:

  1. Reconcile the full inventory against completed port orders. Any number not in a completed order is disconnected with the account, and a disconnected number cannot be ported.
  2. Check whether other services (internet, SD-WAN, fax lines) ride on the account or on ported numbers.
  3. Send the cancellation the way your contract’s notices clause requires, with the required notice period. Keep proof of delivery.

Do not send it on a date picked months in advance and hope the ports finished.

Verify

For each wave:

  • The Console shows the port request Completed and each number on the trunk.
  • An outside call to every number reaches the right destination, and Twilio’s call logs show the inbound call.
  • An outbound call from each moved user shows the right caller ID. Since November 17, 2026, Twilio puts the attestation level for outbound trunk calls in an X-Twilio-VerStat header on its SIP responses (for example TN-Validation-Passed-A), so a SIP trace on the PBX or proxy shows it.
  • The E911 listing above shows registered for every number.
  • Toll-free numbers work from more than one carrier’s phones.

Troubleshooting

Active numbers rejected as “Inactive”: The losing carrier’s porting desk looked for the numbers under the account, BTN, name and address on your request and did not find them active there. Common causes: the numbers sit under a different account, BTN or carrier record than the one on your bill, the name or service address differs from the CSR, or a pending order has locked the account. Fix: get the CSR for every account, run the Step 1 Lookup loop, get the raw reject remarks from Twilio, correct the request and resubmit. If rejections repeat, ask Twilio to escalate with its carrier partner before resubmitting.

Calls from some numbers never reach Twilio: The numbers are not in any completed port order, or are still pending. Easy to miss when the inventory came from one bill and some numbers sit on a second account. Fix: check each number’s status in the Console and add missing numbers to a new order.

Busy signals right after a port, and the PBX reports no available outbound lines or trunks: The PBX’s per-trunk simultaneous call limit is still sized for an earlier, smaller wave. In 3CX this is Number of SIM Calls under Voice & Chat > SIP Trunk > Options; once it is reached, 3CX blocks new outbound calls and rejects new inbound calls with 600 Busy Everywhere. Fix: raise it to <PEAK_CONCURRENT_CALLS>, within your license’s simultaneous call limit. Twilio lists trunk concurrency as unlimited (subject to carrier support) once your Business Profile is approved; without one, calls over Twilio’s lower limit are rejected with 503 Trunk concurrent call limit exceeded.

Calls land on the PBX’s default route: The DID format the trunk delivers (+15555550100) does not match the inbound rule (5555550100). Fix: match the delivered format or normalize it in one place (Step 4).

Outbound caller ID rejected or labeled spam: A 403 Invalid Caller ID points at a caller ID that is not a Twilio number or verified caller ID on the account, usually because it has not ported yet. A spam label often comes from low attestation or no reputation registration. Fix: move caller IDs only after they port, assign numbers to your Business Profile and SHAKEN/STIR Trust Product, register CNAM, and consider Twilio’s Voice Integrity registration.

Sources and further reading