Skip to main content
From phone line to agent: a call comes in on a phone line, reaches a trunk from your carrier (Claro), lands on the number +1 809 555 0123 and goes to the Front desk agent. From phone line to agent: a call comes in on a phone line, reaches a trunk from your carrier (Claro), lands on the number +1 809 555 0123 and goes to the Front desk agent. A number is a phone number that rings in your workspace. It belongs to a trunk, which is your connection to the carrier, and it points at one destination: an Autopilot agent, a stream or a SIP agent. This page shows how to add a number and how to change where it sends calls. A carrier sends calls for +1 809 555 0123 to the Claro trunk, which hands them to the number. The number points at one destination: here the Autopilot agent Front desk; it could instead be a stream (your WebSocket server) or a SIP agent (sip:maria@acme.sip.fonoster.com). A carrier sends calls for +1 809 555 0123 to the Claro trunk, which hands them to the number. The number points at one destination: here the Autopilot agent Front desk; it could instead be a stream (your WebSocket server) or a SIP agent (sip:maria@acme.sip.fonoster.com).

Two ways to get a number

Fonoster doesn’t sell numbers. You bring a number you already have from a carrier, in one of two ways: Both end up the same in your workspace: a number on a trunk. Everything below works for either.
If you only want to try your agent, you don’t need a number. Call it from your browser with Talk to agent. See the Quickstart.

Before you begin

You need:
  • A trunk in your workspace. Connect a SIP trunk shows how to create one.
  • An Autopilot agent, a stream or a SIP agent to send calls to.

Add a number

Add the number in E.164 format (+ then country code and number, no spaces), such as +18095550123, and set its country correctly. Fonoster matches an incoming call to the number when your carrier sends it that way, without the +, in the country’s national form (8095550123) or in its international form (0118095550123, the country’s international prefix first). Fonoster works out the national and international forms from the number’s country. If your carrier sends something else for the number, such as a label like 01234, add it to the number as an alias. Fonoster matches only the numbers of the trunk the call arrives on, and turns down a call that matches none of them.
The New number drawer in the dashboard: Name Support desk, Agent selected under When this number is called, send it to, the Front desk agent checked, Trunk Claro, Aliases 01234, 5678, number +1 809 555 0123 in Santo Domingo, and the note that routing lives on the number.The New number drawer in the dashboard: Name Support desk, Agent selected under When this number is called, send it to, the Front desk agent checked, Trunk Claro, Aliases 01234, 5678, number +1 809 555 0123 in Santo Domingo, and the note that routing lives on the number.
  1. Go to Numbers and choose Add number.
  2. Under Number, enter +18095550123.
  3. Under Name, enter a name you’ll recognize, such as Support desk.
  4. Under When this number is called, send it to, choose Autopilot agent, Stream or SIP agent, then pick one from the list.
  5. Under Trunk, choose the trunk the number belongs to.
  6. Optional: under Aliases, enter what your carrier sends instead of the number, such as 01234. Separate several with commas.
  7. Enter the City and choose the Country.
  8. Choose Save.
The number shows up in the list with its destination under Routes to.

Choose where calls go

A number sends every call to one destination: Set appRef or agentAor, not both. A number with neither doesn’t take calls. One agent or stream can answer as many numbers as you like. To move a number to a different destination, change it on the number:
Go to Numbers, open the number, pick the new destination under When this number is called, send it to, and choose Save.
You can change a number’s name, trunk, aliases and destination. With the SDK, aliases replaces the number’s aliases and clearAliases: true removes them all; an update without either keeps them. To change the number itself, its city or its country, remove it and add it again.

Check it

List your numbers to see each one’s trunk and destination:
Then call the number from any phone. Your agent or stream answers, or the SIP agent’s phone rings. The call shows up under Calls in the dashboard. To check the outbound path from the dashboard, go to Numbers, open the number’s menu and choose Test call. Enter your phone number in E.164 format, such as +18095550100, and choose Call. Fonoster calls you from this number through its trunk, and the drawer shows each status: calling, ringing, answered, ended. When you answer, the number’s agent or app takes the call. Hang up your phone to end it; closing the drawer doesn’t. Only numbers routed to an agent or an app can be tested this way. For a number routed to a SIP agent, call the number from a phone. A test call is an outbound call, so the trunk must send calls out, and your carrier charges it. If the number doesn’t ring:
  • Check what your carrier sends for the number. Fonoster matches it in E.164, without the +, or in the national or international form of the number’s country; for anything else, add an alias.
  • Check that the number is on the trunk your carrier sends the call to. A number on another trunk doesn’t ring.
  • Check that the trunk’s inbound settings match your carrier. See Connect a SIP trunk.

Remove a number

Go to Numbers, open the number and choose Remove number, or run fonoster sipnet:numbers:delete <ref>. Calls to the number stop reaching Fonoster. The number stays with your carrier. For every command and method, see Numbers in the CLI reference and the Node SDK reference.

Next steps

Link a Twilio number

The fastest way to a real number.

Link a WhatsApp Business number

Answer the calls WhatsApp users make to your business.

Connect a SIP trunk

Bring any carrier that speaks SIP.

Make outbound calls

Call people from one of your numbers.

SIP agents

Ring a softphone or desk phone instead of an application.