ChannelsVoicePhone Numbers

Phone numbers

Buy a number, bring your own or connect your phone system, and test first on demo numbers.

Your callers reach Octocom through a phone number you buy from Octocom, a number you already own, or your own phone system over SIP. Before any of that, you can test a voice AI on shared demo numbers.

A phone line is where Octocom receives calls. Each line belongs to a business and has its own call routing. There are three kinds:

KindHow callers reach itHow to get one
Test lineCall a demo number and enter the line's access codeAdd Voice Agent in the dashboard, or create_phone_line without an address
Phone numberCall the numberBuy one or bring your own
SIP addressYour phone system sends the call over SIPcreate_phone_line with a SIP user as address

The dashboard lists call lines under Settings -> Voice & SMS -> Phone numbers. Through Copilot or MCP, use:

What you want to seeTool
All connected phone numbers, including SMS-only numberslist_phone_numbers
Call lines, answering rules, voice AI settings and SIP/test accesslist_phone_lines
Live number inventory on your own Twilio account, including unused numberslist_twilio_phone_numbers

Octocom-provided numbers are managed by Octocom. You see their number, business and Octocom capabilities, without needing an underlying carrier account. Your own Twilio numbers remain on your account, and you can additionally inspect and change their provider routing. Custom Twilio tools cannot inspect or change Octocom-provided accounts or numbers.

A phone number and a phone line are different resources: a number can be connected for SMS without a voice line. SIP and shared test lines are call-routing resources rather than purchased numbers.

An inbound call's conversation records the line it reached in the octocom:phoneLineAddress metadata: its E.164 number or SIP user. Use it in Python or the REST API's metadataKey/metadataValue filters to tell apart lines of one business, such as a number per customer segment. Shared test lines have no address, so it is left out.

Demo numbers

Every test line has an access code (8 digits for new lines). To call it, dial any of these numbers, then enter the code followed by #:

  • +1 659-250-4864
  • +34 960 321 974
  • +44 7360 275518

Any demo number works with any access code. Add Voice Agent in Settings -> Voice & SMS -> Voice agents creates a voice agent with its own test line; its code is in the Demo access codes column. With Copilot or MCP, create a line without an address.

Test lines are for trying a voice AI before it answers a real number. Callers hear a prompt for the code first.

Buy a number

This purchases an Octocom-provided number. Octocom manages the carrier configuration; no Twilio account or credentials are needed.

Open Settings -> Voice & SMS -> Phone numbers and click Purchase number. Pick the voice agent that should answer, accept the terms and click Purchase. The number answers immediately with a copy of that voice agent's settings.

  • US numbers only. Octocom picks an available number; you can't choose it.
  • One purchased number per business, ever. A released number still counts. Contact your account manager for more numbers.
  • For calls, not SMS. A purchased number answers inbound calls, is used for your agents' calls and can be a campaign caller ID. It can't be used for SMS.
  • You need a voice agent first. Create one with Add Voice Agent.
  • Organization admins only. Buying a number needs the Buy phone numbers permission, which managers don't have. A custom role can also be given it.

With Copilot or MCP, use purchase_phone_number with the voice AI settings the number should answer with. Buying is paid, so only do it when you mean to. release_phone_number gives a purchased number up for good; the business can't buy another one itself.

Bring your own number

To answer calls to a number you already have, choose one of these:

OptionHow it works
Forward your callsForward calls from your number to a number that already answers on Octocom, such as a purchased number. Whether Octocom sees the original caller's number depends on how your carrier forwards the call, so test it with a call.
Use a Twilio numberConnect your own account with Copilot, list its live numbers, inspect their routing and connect the selected numbers for voice and/or SMS. See Your own Twilio account. A number at another carrier can be ported to your Twilio account first.
Use SIPYour phone system sends calls to Octocom's SIP domain. See SIP.

For your own Twilio number, connect_twilio_phone_number configures the provider webhook and creates or updates the Octocom voice line together. create_phone_line by itself saves only Octocom call routing; it does not configure the provider. Forwarded calls reach the target Octocom number, whose line controls answering. Connected custom accounts are listed in Settings -> Voice & SMS -> Your Twilio accounts.

Buying or porting numbers into your own Twilio account happens in Twilio. These management tools connect existing numbers; they do not purchase custom-account numbers or submit carrier registrations.

Getting a number in another country needs documents that vary by country: see Requirements by country.

SIP

Your phone system, PBX or carrier can send calls to Octocom over SIP, without a phone number in between.

  1. Create a SIP line with create_phone_line and a SIP user as address, such as support. A SIP user is letters, digits, ., _ and -, up to 64 characters, and can't be digits only. Each SIP user can belong to only one line across Octocom, so pick a distinctive one, such as your brand name.
  2. Get the SIP credentials from your account manager.
  3. Send calls to sip:<SIP user>@octocom.sip.twilio.com, for example sip:support@octocom.sip.twilio.com, authenticating with those credentials.

If your system can only dial numbers, send sip:<number>@octocom.sip.twilio.com instead: it reaches the line whose address is that E.164 number.

Pass the caller's number in the SIP From header, or in a custom X-Customer-Number header when From carries your system's own identity. A call without one, such as sip:anonymous@..., is still answered, but its customer has no phone number: agents can't call or text them back, and the AI isn't told a number.

Pass your own call ID in a custom X- header to link the conversation to your system, for example X-Contact-ID: 329363639. Apart from X-Customer-Number, Octocom keeps each custom header as conversation metadata named sip: plus the lowercased header name, such as sip:x-contact-id. Find the conversation with the REST API's metadataKey and metadataValue filters, or read it from Python. This is how you match an anonymous caller. Headers whose name mentions auth, token, JWT, secret, password, key, signature, cookie or session are never stored, nor values longer than 256 characters, and at most 20 headers are kept per call.

SIP lines are routed with Copilot or MCP (update_phone_line), not in the dashboard's Edit routing.

Caller IDs for campaigns

A campaign calls from one of the business's own numbers:

  • A number of yours on a connected Twilio account can be a campaign caller ID. The call goes out through that account.
  • The demo numbers are available as caller IDs for test campaigns when the business has a test line.
  • A purchased number can be a campaign caller ID. The call goes out through Octocom's account.

Marketing calls (telemarketing) must come from a number on your own Twilio account. See Outbound calling compliance.

get_campaign_resources lists the caller IDs a business can use. In the dashboard, they're the options under Phone number when you create a campaign.

When your agents call customers from the help desk, Octocom uses the business's purchased number if it has one. See Phone calls in the help desk.

Manage an existing number

Ask Copilot to list connected numbers, inspect a custom number's effective routing, or change who answers its calls. For Octocom-provided numbers, manage answering and voice settings through Octocom; provider configuration stays managed by Octocom.

For custom numbers, use get_twilio_phone_number to distinguish a live provider route from an Octocom business mapping, then connect_twilio_phone_number to connect selected channels. See SMS for human/AI replies and receiving controls. Connecting SMS alone preserves call routing.

Use release_phone_number only to give up an Octocom-purchased number permanently. delete_phone_line removes Octocom call routing for an eligible custom/SIP/test line; it does not release a customer-owned number or restore its old provider webhook. Use disconnect_twilio_phone_number to remove selected custom-number SMS or voice connections without releasing the number. Shared Messaging Service routing is preserved, as explained in Your own Twilio account. Removing a saved custom account is refused while configurations still reference it. These operations do not automatically migrate or reroute existing SMS conversations.

On this page