Tonedocs

Inbound calls

What happens when somebody rings a number you own.

Inbound needs no API call. Bind an agent to a number and it answers:

curl "$TONE_API/v1/numbers/$NUMBER" -X PATCH \
  -H "Authorization: Bearer $TONE_KEY" -H 'content-type: application/json' \
  -d "{\"agentId\":\"$AGENT\"}"

The call appears in your call log with direction: "inbound" and initiator: "inbound", and fires the same webhooks as any other call.

Four things that differ from outbound

A draft agent will not answer. Outbound will happily dial with a draft; inbound refuses. Publish before you expect your line to work.

Inbound always uses the live version, even while a campaign elsewhere is running on an older one.

The pre-dial gate does not run. Calling windows and Do-Not-Call protect a recipient from a call they did not ask for. Answering is not placing, and refusing to answer your own published line at 21:01 would be absurd. No compliance_checks rows are written for inbound calls.

The opening line and voicemail handling are stripped. An opening line reads "calling from X about Y" and would greet someone who rang you; voicemail detection is a callee-side judgement that would hang up on a real person.

When a call is refused

Some inbound calls are turned away before anyone answers. When the reason is something on your side, the call is recorded as a missed call: an inbound call that ended failed, billed nothing, with an endReason saying why, and your call.initiated, call.failed and call.completed webhooks fire as for any other call. Look for them in the call log, or filter your webhooks on endReason starting refused_.

ReasonendReasonFix
The number has no agent boundrefused_no_agentBind one
The bound agent is a draftrefused_agent_not_liveGo live
Insufficient balancerefused_insufficient_balanceTop up
At your concurrency limitrefused_capacitySee below
Your SIP trunk is pending or disabledrefused_trunk_inactiveActivate it
Your SIP trunk is at its own limitrefused_trunk_at_capacityRaise the trunk's maxConcurrent
A BYO number has no media endpointrefused_no_endpointConfigure one

A number that is suspended, a number we do not recognise, and a call that reached us the wrong way are refused without a record, because there is nothing on your side to fix. At most 20 missed calls per minute are recorded for one organization; past that a refusal is only logged.

A slot is kept for callers. Inbound and outbound share your concurrency limit, so when you have a live number an agent answers, your own dials and campaigns stop one call short of it and an inbound call can take the last one (see Limits). A caller is refused refused_capacity only when inbound calls (and any dashboard test calls) already fill your limit. Ask us to raise your limit if your inbound traffic needs more than one line at a time while campaigns run.

Environment comes from the number

An inbound call presents no credential of yours, so there is no key to read an environment from. It is taken from the number instead: a number allocated in test mode produces test calls.

Was this page helpful?

On this page