Skip to main content

Phone Numbers

A phone number (DID, direct inward dial) is a number that outside callers dial to reach your organization. Each DID has one routing destination: an extension, ring group, queue, IVR menu, business-hours schedule, conference room, AI assistant or AI load balancer.

Purpose​

Use this module to:

  • add the numbers your organization owns;
  • route each number to a destination;
  • turn a number on or off;
  • use a number as the caller ID for outbound calls (see below).

Prerequisites​

  • The number is provisioned in Cloudonix and points at your OPBX instance. See Cloudonix Setup.
  • The destination exists and is active. Creating a DID is refused if its destination is inactive, missing, or belongs to another organization.

Permissions​

ActionOwnerPBX AdminPBX UserReporter
See Phone Numbers in the sidebarYesYesNoYes (read-only page)
List and view numbers through the APIYesYesYesYes
CreateYesYesNoNo
Edit routing or statusYesYesNoNo
DeleteYesYesNoNo

Number format​

The number must be in E.164 format: a plus sign, a first digit from 1 to 9, then 1 to 14 more digits. For example +14155551234. Maximum 20 characters.

The Enable non-E.164 Phone Numbers option accepts digits, + and # only. Use it for internal or special-use numbers that are not valid E.164.

The number must be unique across all organizations. A number that another organization already has is refused with "This phone number is already registered."

Numbers cannot be changed

The number is fixed after creation. To change it, delete the DID and create a new one. The delete is refused while the number is used elsewhere (see Delete).

Fields​

Field (page label)RequiredLimitMeaning
Phone NumberYesE.164 (or digits, +, # with Enable non-E.164 Phone Numbers), max 20 charactersThe number callers dial
Route calls toYesSee the table belowWhat kind of destination the call goes to
DestinationYesPick one existing, active itemThe item itself
StatusYesActive or Inactive (the page shows Active or Disabled). Default: ActiveWhether the number is used for routing. Changed from the list, not in the dialog
Friendly nameNoUp to 255 characters. API only: the dialog has no field for itA label, for example "Main line". The list shows it under the number

Routing types​

Route calls to (page label)API valueRoutes toTypical use
PBX User ExtensionextensionOne extensionDirect line
Ring Groupring_groupA ring groupDepartment coverage
Call Queuecall_queueA call queueSupport or sales line that needs waiting and statistics
IVR Menuivr_menuA menuMain company number with "press 1 for…"
Business Hoursbusiness_hoursA business-hours scheduleOpen and closed handling
Conferenceconference_roomA conference roomDedicated conference line
AI Assistantai_assistantAn AI assistantAutomated answering
AI Load Balancerai_load_balancerAn AI load balancerHigh-volume AI answering

Each destination must be active. A destination that is inactive, deleted, or belongs to another organization is refused, for example "The selected extension must be active. Extension 1011 is currently inactive."

Workflows​

Add a phone number and route it​

Who can do this: Owner and PBX Admin. Other roles do not see Add Phone Number.

  1. Open Phone Numbers in the sidebar.
  2. Click Add Phone Number.
  3. Enter the Phone Number in E.164 format, for example +12025550123. Tick Enable non-E.164 Phone Numbers only for a number that is not E.164.
  4. Under Routing Configuration, choose Route calls to, then the Destination.
  5. Click Create.
Add Phone Number dialog with a valid E.164 number, routing type Call Queue and the queue picker open

Result: the toast "Phone number added successfully" appears and the number is listed as Active. A wrong number shows "Phone number must be in E.164 format (+12125551234)" under the field; a missing destination shows "Please select a destination".

A new number must be fully routed. Disconnect ("Destination unavailable") is not offered when you add a number.

Phone Numbers list with the demo numbers, one Unprovisioned, and the Unprovisioned filter button

Change a number's routing​

Who can do this: Owner and PBX Admin.

  1. In the Phone Numbers list, click the number or its row. The Edit Phone Number dialog opens with the current routing type and destination selected; the number is read-only ("Phone number cannot be changed after creation").
  2. Change Route calls to or the Destination.
  3. Click Update.
Edit Phone Number dialog for +12025550100 with the read-only number, Route calls to Business Hours and Main Office Hours as the Destination

Result: the toast "Phone number updated successfully" appears and the list shows the new routing type and destination.

Disconnect a number (mark it Unprovisioned)​

Who can do this: Owner and PBX Admin.

Use it when a number is provisioned but not yet in service.

  1. Open the number as in Change a number's routing.
  2. In Route calls to, choose Disconnect. The Destination box explains: "No destination (unprovisioned). Callers hear "Destination doesn't exist". Choose a type to provision this route."
  3. Click Update.

Result: the route is stored as "Destination unavailable". The edit dialog title shows the Unprovisioned badge and the Unprovisioned filter lists the number. Callers hear "Destination doesn't exist" and the call ends. To bring the number back into service, choose a routing type and destination again.

Edit dialog for the unprovisioned number +12025550105, with the Unprovisioned badge in the title and Destination unavailable selected

Enable or disable a number​

Who can do this: Owner and PBX Admin. Other roles see the badge, but it is not clickable (its tooltip reads "Only Owners and PBX Admins can change the status"), and the server refuses the change through the API.

  1. In the Phone Numbers list, find the number.
  2. Click its Status badge (Active or Disabled, tooltip "Click to toggle status").

Result: the badge switches and the toast "Phone number updated successfully" appears.

StatusMeaning
ActiveCalls to the number are routed to its destination
Disabled (inactive)The number is not used for routing

Disable a number while it is being ported, to block calls temporarily, or while it is reserved.

Find a phone number​

Who can do this: every role that sees the page.

  1. Type in Search phone numbers....
  2. Narrow the list with the routing-type filter (All Types, Extension, Ring Group, Business Hours, Conference Room), the status filter (All Status, Active, Disabled) or the Unprovisioned button.
  3. Click Clear to reset the filters, or the refresh icon to reload.

Set the Default Outbound Caller ID selector​

Who can do this: Owner and PBX Admin. Other roles see the selector disabled.

The page header has a Default Outbound Caller ID selector with None (Unknown) and the active numbers.

  1. Open Phone Numbers in the sidebar.
  2. In Default Outbound Caller ID, choose a number or None (Unknown).

Result: the toast "Default outbound caller ID updated" appears.

note

This selector stores the organization-wide default caller ID (GET and PUT /v1/phone-numbers/default-caller-id). Outbound calls present it when neither the calling extension nor the matched outbound whitelist rule has a caller ID of its own. Only an active number of your organization counts; otherwise the call presents Unknown. See the Outbound Calling Overview.

Phone Numbers page header with the Default Outbound Caller ID selector open, showing None (Unknown) ticked and the demo numbers

Delete​

Delete a phone number​

Who can do this: Owner and PBX Admin.

  1. In the Phone Numbers list, click the trash icon in the number's Actions column.
  2. In the Delete Phone Number dialog, click Delete.
Delete Phone Number dialog asking to delete +1 (202) 555-0105, with the Cancel and Delete buttons

Result: the toast "Phone number deleted successfully" appears and the number leaves the list.

The delete is refused while the number is assigned as configuration somewhere else:

  • the default caller ID of an extension;
  • the caller ID of an outbound whitelist rule;
  • a caller-ID pool of an auto-dialer campaign;
  • a scope of an inbound blacklist.

The refusal opens the Cannot delete: still in use dialog, which lists each place. Remove those assignments, then delete the number. Call history (call logs, CDRs, blocked-call logs) never blocks a delete.

Cannot delete: still in use dialog for a phone number, listing extensions that use it as default caller ID and outbound whitelist entries

Using a number as an outbound caller ID​

Besides receiving calls, an active number can be shown as the caller ID on outbound calls. Assign it as the default caller ID on an extension, on an outbound whitelist rule, or as the organization-wide Default Outbound Caller ID above.

Only active numbers owned by your organization can be used this way. When the chosen number is not usable, outbound calls fall through to the next caller ID in the precedence order. See the Outbound Calling Overview.

Key data fields​

did_numbers​

ColumnNotes
idPrimary key
organization_idTenant scope
phone_numberString up to 20 characters. Unique across all organizations. Cannot be changed
friendly_nameOptional label, up to 255 characters
routing_typeextension, ring_group, call_queue, ivr_menu, business_hours, conference_room, ai_assistant, ai_load_balancer or unavailable
routing_configJSON with the target id, for example {"extension_id": 12}
statusactive or inactive
MethodEndpointPurpose
GET/v1/phone-numbersList. Filters: search, routing_type, status, unprovisioned=1
POST/v1/phone-numbersCreate. Rejects "Destination unavailable"
GET/v1/phone-numbers/{phoneNumber}One number
PUT/v1/phone-numbers/{phoneNumber}Update routing, status or friendly name. The number itself is refused if sent ("Phone number cannot be changed after creation.")
GET, PUT/v1/phone-numbers/default-caller-idOrganization default outbound caller ID, used after the extension's and the whitelist rule's caller ID
DELETE/v1/phone-numbers/{phoneNumber}Delete. Returns 409 with the list of uses when in use

See the OPBX REST API reference for full schemas.

Best practices​

  • Label each number with its purpose (Sales, Support, Main).
  • Keep the same routing pattern for similar numbers.
  • Test each number after you change its routing.