ANI, short for automatic number identification, is the caller's phone number as the phone network delivers it with an inbound call. Your phone system has it before anyone answers, so it can look up the caller's account, choose a queue or show the agent who is on the line. DNIS is the other half of the pair: the number the caller dialed.
| Identifier | What it tells you | Where it comes from | What a call center does with it |
|---|---|---|---|
| ANI | Which line is calling, by its billing number | The caller's phone company, sent with the call | Finds the caller's record, routes known callers, confirms the callback number |
| Caller ID | The number shown as the caller, sometimes with a name | The caller's phone company; the caller can block it | Shows the agent who is calling; usually the same number as ANI |
| DNIS | Which of your numbers the caller dialed | Your phone company, from the number dialed | Routes by line: brand, location, language or campaign |
On a contact center platform you'll usually see one calling-number field, labeled ANI, customer number or From, holding the number your carrier passed. That's the number every rule below reads.
What does ANI mean in a call center?
In a call center, ANI means the network telling your phone system which number placed the call. The FCC defines ANI as "the delivery of the calling party's billing number by a local exchange carrier to any interconnecting carrier for billing or routing purposes, and to the subsequent delivery of such number to end users" (47 CFR 64.1600). The definition names both jobs, and call centers use it for the second one.
Gans, Koole and Mandelbaum's review of call center operations describes the routing use. Computer telephony integration "takes the ANI and uses it to query a customer database," and if a customer record has the same ANI, "routing information from that customer's record is returned" (Gans, Koole and Mandelbaum, 2003). Your platform may label it differently. In Amazon Connect Customer (AWS's current name for Amazon Connect), the customer number on an inbound call is "the number from which the customer placed the call" (contact attributes). Twilio passes it as From (TwiML request parameters).
ANI can also carry two information digits that say what kind of line placed the call. NANPA, which administers North American numbering, says these ANI II digits "identify the type of originating station": 00 for an ordinary line, 27 for a payphone, 29 for a prison or inmate line, and 61 to 63 for wireless calls (ANI II digits). If your carrier passes them, you can flag or route those calls, so ask whether yours does.
Is ANI the same as caller ID?
ANI and caller ID usually carry the same number, but they're separate fields and can differ. Caller ID is the calling party number, which the FCC defines as "the subscriber line number or the directory number" in the call setup message. ANI is the billing number. The gap shows up on calls from business phone systems and on blocked numbers.
Calls from inside another business are the common case. A company's phone system may send its main number rather than the caller's own line. The FCC's delivery rules exempt a call where "a Private Branch Exchange or Centrex system does not pass end user CPN" (47 CFR 64.1601), and NANPA notes that without a feature called AIOD, "the billing number for a PBX is the same as the PBX Directory Number." For an account lookup, that means many employees of one customer arrive as one number, or as a number that matches nobody.
Blocked numbers are the other case. Under the same FCC rule, carriers treat *67 dialed first as "a caller's request that the CPN not be passed on an interstate call," and *82 as a request to pass it. There's one exception: the terminating carrier honors the block "unless the call is made to a called party that subscribes to an ANI or charge number based service and the call is paid for by the called party," as with a toll-free line. On a local number, a blocked call may reach your platform as text instead of a number. Twilio warns you may get "a string that contains anonymous, unknown, or other descriptions."
ANI vs DNIS: what's the difference?
ANI tells you who is calling and DNIS tells you which of your numbers they called. Amazon Connect Customer keeps the two side by side: the customer number, which is where the call came from, and the system number, "the number the customer dialed to call your contact center" (contact attributes). In routing terms, ANI sorts calls by caller and DNIS sorts them by line.
A center that publishes one number per brand, language or campaign can greet and route each caller before the menu plays, because the number dialed already answers part of the question. The Gans paper gives the example of a Spanish-speaking caller identified through the DNIS of "a special 1-800 number," through the ANI matched to a customer record, or through a menu choice. Our call routing guide compares routing on the number dialed with the other routing types and what splitting queues costs, so the focus here is on keeping both numbers accurate.
Forwarding is where DNIS gets lost. When a call forwards from one of your numbers to another, the number dialed can become the forwarding number, and the original travels in a separate field only if the carrier passes it. On SIP calls, one such field is the Diversion header, which lets the receiving system "identify from whom the call was diverted and why" (RFC 5806). Twilio's ForwardedFrom parameter "depends on the caller's carrier including information when forwarding. Not all carriers support passing this information." If several published numbers forward into one line, test that you can still tell them apart before you route on them.
What can a call center do with ANI?
A call center uses ANI to find out who is calling before anyone says hello. Once the number matches a record, the call can go straight to the team that knows the customer, with the account already open. ANI is good for finding a record. It's a poor way to prove identity, because a caller's number can be faked.
The everyday uses:
- Open the caller's record when the agent answers, or before an AI agent speaks, so nobody asks for an account number the system already has.
- Route a known caller by what the record says: a stored language, a customer tier, an open case or an appointment this week.
- Confirm the callback number instead of asking for it: "Is the number you're calling from the best one to reach you?"
- Spot repeat callers. A second call from the same number on the same day is worth flagging, since the first call may not have settled anything.
Don't let a number match unlock an account by itself. The FCC defines spoofing as when "a caller deliberately falsifies the information transmitted to your caller ID display to disguise their identity." Its consumer guidance warns that voicemail services set to allow access from your own number can be broken into by someone who spoofs that number (caller ID spoofing). STIR/SHAKEN helps: it lets the receiving phone company "verify that a call is in fact from the number displayed on caller ID" on IP networks (caller ID authentication). It still verifies the line, not the person holding the phone. Use the match to find the record, then confirm identity with something the caller knows or has before anyone discusses or changes the account.
Read your carrier terms before you reuse captured numbers. FCC rules require the contract or tariff that delivers ANI to allow its use for "billing and collection, routing, screening, and completion" of the caller's call, and to bar reusing or selling the number without notifying the caller and getting their consent (47 CFR 64.1602).
How should you set up ANI lookups and routing rules?
Write every ANI rule with two outcomes: what happens on a match, and what happens when the number is missing, withheld or matches nobody. Build and test the second path as carefully as the first: a rule tested only with known numbers looks fine until someone who isn't in your system calls. Fill in this worksheet for each rule before it goes live.
| Rule | On a match | On no match or a withheld number | How to test it |
|---|---|---|---|
| Account lookup on the caller's number | Open the record for whoever answers, person or AI agent | Ask for one identifying detail, such as an account number or name, and look it up that way | Call from a phone that isn't in your records |
| Open case or appointment this week | Send the call to the team that owns the case, ahead of new callers | Normal queue | Call from a number with an open case |
| Language stored on the record | Skip the language menu and use the stored language | Play the language menu | Call from a record set to Spanish |
| Same number called earlier today | Tell the agent it's a repeat call and what the last call was about | Nothing changes | Call twice from the same phone |
| Several matches for one number | Ask the caller which account, or let the agent pick | Not applicable | Call from a number shared by two records |
| Number arrives as anonymous, unknown or blank | Not applicable | Normal queue, and ask for an identifying detail | Dial *67 first, on each published number |
Track one figure per line once the rules are live: the share of calls whose number found a record. When it falls on one line, check what changed upstream first: a new forwarding rule, or a carrier or phone system sending your main number in place of the caller's.
How do you test ANI and DNIS before you rely on them?
Test from outside phones, because a call from an internal extension may not take the carrier's path or show the caller ID a customer's call would. Place each call below on every published number and write down what your platform logged as the calling number and the dialed number. That record is what you compare against when a lookup fails in production.
- A mobile phone that isn't in your records. The call should take the no-match path from the worksheet.
- A phone that is in your records. Check that the right record opens and the call reaches the right queue.
- The same phone with *67 dialed first. Note whether your local and toll-free numbers each receive the number or a placeholder.
- A desk phone inside another business, or your own office. Note whether you get the caller's line or the company's main number.
- Each number that forwards into another. Check that the dialed number still tells you which one the caller used.
- Each transfer that enters your center from another system, including an AI agent's handoff to your team. Note which caller ID your agents see.
The transfer test matters most for lookups. When another system transfers a caller to you, it decides which number your phone sees. On Amazon Connect Customer, the Transfer to phone number block passes "the caller ID of the caller" unless you set a custom caller ID (Transfer to phone number). If a transfer arrives showing the sending system's number, every lookup on it fails. The rest of the path is covered in call center call flow examples and IVR testing, and the ACD guide covers where transferred callers should queue.
How Telvana uses the caller's number
Telvana's AI agents look callers up during the call. In the example agent in our guided prompt docs, the backend rule reads: "Find the caller's record by the number they're calling from. If none matches, create one with the pet's name." That's the worksheet's first row, with its no-match path written in.
Your phone system sends calls to an agent's own number from a menu option, an overflow or after-hours rule, or the number on its own, so check which calling number arrives on each path you use. That's the number the lookup reads. When the agent transfers a caller to your team, the Transfer Caller ID setting decides which number your phone shows, the caller's or the agent's (connecting your phone system). Choose the caller's number if your ACD looks callers up on arrival. The transfer is an ordinary call with no summary passed along first; the transcript and summary are in the portal once the call ends. Pricing starts at $399 a month, based on call volume, plus a one-time setup fee (pricing).
Frequently asked questions
What does ANI stand for in a call center?
ANI stands for automatic number identification. It's the calling number the phone network delivers with an inbound call, defined by the FCC as the calling party's billing number. Call centers use it to look up the caller's record and route the call before anyone answers.
Is ANI the same as caller ID?
Usually the number is the same, but the fields differ. Caller ID is the calling party number, which a caller can block with *67. ANI is the billing number. They can differ on calls from business phone systems, which may send their main number, and on calls to toll-free numbers, which can receive ANI when caller ID is blocked.
What is DNIS in a call center?
DNIS, the dialed number identification service, tells your phone system which of your numbers the caller dialed. Call centers use it to route by line: a separate number per brand, location, language or campaign lets the system choose the greeting and queue before the caller presses anything.
Can a caller block ANI?
A caller can block caller ID with *67 on interstate calls, and carriers must honor it. The FCC's rule makes an exception when the business pays for the call through an ANI-based service, as with a toll-free number. On ordinary local numbers, a blocked call may arrive as "anonymous" or "unknown."
What does *82 do on a phone?
*82 asks the carrier to send your number on a call when your line blocks caller ID by default. Under the FCC's rule, carriers that offer line blocking "will recognize *82 as a caller's request that the CPN be passed on an interstate call." *67 does the opposite for a single call.
Can ANI be spoofed?
Yes. The number that arrives can be falsified, which the FCC calls spoofing, and STIR/SHAKEN only lets carriers vouch for the line, not the person on it. Use ANI to find a caller's record, then verify identity with a question or a one-time code before discussing or changing the account.
Bring the lookups your team does by hand
Book a demo and bring the three questions your agents ask at the start of every call. We'll show you which ones an AI agent can answer from the caller's number and the tools you connect, and you can hear it handle a call.