Skip to main content

Connect a phone number and test a call

The telephone side has two objects. A SIP trunk describes the connection to your carrier or SIP provider. A route binds that trunk to an agent and a bot pool, decides which calls the agent answers, and can reject matching calls. Create the trunk first, then the route, then place a test call.

Create an inbound SIP trunk​

Open SIP Trunks and choose New trunk. Select Inbound only for a number that callers dial, Outbound only for a line the tenant uses to call out, or Inbound + outbound for a trunk that does both. The direction is fixed after creation, because it changes how the underlying connection is provisioned.

Before you test, point the outbound proxy of your PBX, SBC, or SIP host to platform.voxtronics.net. Use UDP or TCP port 22344, or TLS port 22345, and use the tenant SIP domain as the SIP domain in the URI. The SIP Trunks page shows the proxy endpoints and the tenant SIP domain. SIP compatibility and proxy setup explains the device fields, supported codecs, and encryption.

For an inbound trunk, enter the numbers that the provider will send to Voxtronics. Separate them with commas or new lines, and use at least three digits for each one. The list is optional: leave it empty to accept any called number, in which case the route filters decide which calls reach the agent. Enter the numbers exactly as the provider sends them, including the leading + and country code.

An inbound trunk must have at least one allowed source address or an auth username and password; the Console refuses to save a trunk with neither. Allowed addresses accept single IP addresses and IPv4 CIDR blocks. Allowed numbers are an optional caller-number allow-list and ignore formatting. The auth username and password are the credentials the provider expects for SIP authentication; the password is write-only, so leave it blank when editing a trunk to keep the stored value. A SIP domain is optional and is used when Voxtronics builds a transfer destination; set it when your provider requires a specific domain for referred calls.

Media encryption is set on the trunk, separately for inbound and outbound. It can be disabled, allowed, or required; choose Required only when the provider supports encrypted media and you want unencrypted calls to fail.

Create an inbound route​

Open Routes and choose New route. Select Inbound: SIP trunk to agent, choose the destination agent, and choose the source trunk you just created. Set Action to Route to agent unless matching calls should be rejected. The route is the bridge between the telephone connection and the conversation.

The caller and called patterns narrow which calls this route accepts. * matches anything, x matches one digit, and [2-9] matches a digit range; a literal number matches only that number. Leaving both at * accepts every call on the trunk. Use the called pattern when one trunk carries several numbers and different agents should answer different ones, and the caller pattern for trusted lines, test numbers, or blocking a source before it reaches an agent.

Routes are evaluated in the order shown in the list. The first active route whose caller and called patterns both match decides the call, so keep specific routes above broad routes and use the arrows to change precedence. A reject route blocks matching traffic where it appears in the order.

The ringing timeout ends a call that is not answered within 1 to 60 seconds; the default is 30. Media encryption is not configured here: it belongs to the trunk and must match the provider. The bot pool is the set of bots allowed to serve this route. Leave it empty to allow any online bot, or select specific bots to keep a route on a dedicated pool. A restricted pool that is entirely offline will reject calls even if other bots are free.

Recording and DTMF detection are optional route capabilities and are off by default. Recording also requires the tenant switch in Settings → General; both switches must be on before a route records.

Set the route active and confirm that the agent has an active pipeline and at least one bot in its pool is online. A disabled route takes no calls, and a route whose agent is disabled cannot run a conversation.

Place the test call​

Dial the number through the carrier or SIP provider. The call should appear on Calls within a few seconds, first as provisioning and then as active when the bot joins. If the caller hears the welcome message, the agent, pipeline, provider credentials, bot, trunk, and route are all working together.

If the call is rejected before it connects, open the call record and read the failure message. No bot was available means every bot in the pool is offline, disabled, or already at its concurrency limit. The agent has no pipeline configuration or a message about missing providers or credentials means the agent's pipeline is incomplete. The tenant does not have enough credits means the wallet cannot cover admission, and the Credits page explains how to add more. No active route matched or The SIP trunk is not configured points to the route or trunk; The route rejected this call means a reject route matched. A SIP failure usually points to the trunk: check the inbound numbers, the provider address, authentication, and media encryption with the carrier.

If the call connects but the caller hears nothing, check the pipeline modality and its providers first. A cascaded pipeline needs all three services, and a speech-to-speech pipeline needs its realtime provider. A provider configuration with the wrong credential or an unsupported model reaches the call as a provider error. The Calls page shows the AI telemetry for the session when it is available, including the services that ran and the error they reported.

Test an outbound call​

Outbound calling needs an outbound trunk and an active outbound route for the same agent. Create the trunk with Outbound only or Inbound + outbound, enter the address of the provider's SIP endpoint, the numbers the tenant may present as caller ID, the destination country, and the transport the provider expects. The SIP domain override is optional and is used for transfer destinations when the provider requires a particular domain rather than the address host.

Create a route with Outbound: agent to SIP trunk, select the source agent and the destination trunk, and set the caller and called patterns. The destination and caller ID must both match the route's patterns; leave them at * to let the agent call any destination the trunk permits. Set Action to Route to agent for a route that places calls, or Reject call to block matching destinations while keeping the source agent. Then open Agents → Agents, choose New outbound call, select the agent, and enter the destination. If no route matches, the attempt is recorded as rejected. The call record shows the selected route, trunk, and caller ID, and the same credit and capacity rules apply as for an inbound call.

Test with a number you control before opening outbound calling to users. Outbound routes are matched in list order, so a broad route above a specific route can capture calls that you intended for the more specific route. Keep specific routes above broad routes, use reject routes deliberately, and disable test routes when they are no longer needed.