Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.blackbox.dasha.ai/llms.txt

Use this file to discover all available pages before exploring further.

Connect phone numbers to receive inbound calls and make outbound calls. Use the Twilio integration for automatic setup, or manually configure SIP credentials from any provider. What you’ll learn: How to add phone numbers via Twilio or manual SIP configuration, link numbers to agents, and manage your telephony setup.

Two ways to add phone numbers

MethodSetup timeBest for
Twilio integration2 minutesQuick setup, automatic SIP trunk configuration
Manual SIP credentials5-10 minutesAny SIP provider (Telnyx, Bandwidth, Vonage, etc.)

Option 1: Twilio integration

Connect your Twilio account and import phone numbers with automatic SIP trunk configuration.

Step 1: Create Twilio provider

  1. Navigate to Phone Numbers in the sidebar
  2. Click Add ProviderTwilio
  3. Enter your Twilio Account SID and Auth Token
  4. Click Connect
This automatically:
  • Creates a SIP trunk in your Twilio account
  • Generates SIP credentials for authentication
  • Stores everything securely in your organization

Step 2: Import phone numbers

  1. In your Twilio provider, click Import Numbers
  2. Select the phone numbers you want to use
  3. Click Import Selected
See Link phone numbers to agents below.

Option 2: Manual SIP credentials

Configure SIP credentials from any provider (Telnyx, Bandwidth, Vonage, or others).

Step 1: Create SIP credentials

  1. Navigate to Phone NumbersCredentials tab
  2. Click Add Credentials
  3. Enter your SIP provider details:
    • Server: SIP server address (e.g., sip.telnyx.com)
    • Auth User: Your SIP username
    • Password: Your SIP password
    • Transport: UDP, TCP, or TLS
  4. Click Save

Step 2: Add phone numbers

  1. Navigate to Phone NumbersNumbers tab
  2. Click Add Number
  3. Enter the phone number and select credentials
  4. Enable Registration if your provider requires it
  5. Click Save
See Link phone numbers to agents below.
After adding phone numbers, link them to agents for inbound routing or outbound calling.

For inbound calls

Link a phone number to an agent so incoming calls route to that agent:
  1. Go to Phone NumbersNumbers tab
  2. Click on a phone number
  3. Select an agent from the Inbound Agent dropdown
  4. Click Save

For outbound calls

Set a phone number as an agent’s outbound caller ID:
  1. Go to Agents → Select agent → Edit
  2. In the Outbound Phone Number section, select a number
  3. Click Save Agent

SIP credentials reference

FieldRequiredDescription
serverYesSIP server hostname with optional port (e.g., sip.provider.com:5060)
authUserNoAuthentication username
authPasswordNoAuthentication password
domainNoSIP domain for authentication realm
transportNoProtocol: udp (default), tcp, or tls
descriptionNoHuman-readable label
cpsLimitNoMax calls per second through this trunk
cpsKeyNoShared rate limit key across multiple credentials

Phone number reference

FieldRequiredDescription
phoneNumberYesPhone number (E.164 format recommended)
credentialsIdYesSIP credentials to use for this number
displayNameNoCaller ID display name
descriptionNoHuman-readable label
registrationNoEnable SIP registration (default: false)

Check what’s using a phone number

Before modifying or deleting, see which agents use a phone number:
const affected = await fetch(
  `https://blackbox.dasha.ai/api/v1/sip-phone-numbers/${phoneNumberId}/affected-agents`,
  { headers: { 'Authorization': 'Bearer YOUR_API_KEY' } }
).then(r => r.json());

console.log('Inbound agent:', affected.inboundAgent);
console.log('Outbound agents:', affected.outboundAgents);

Troubleshooting

Registration failing

SymptomFix
Status shows “Not registered”Check credentials are correct; verify provider requires registration
401 UnauthorizedVerify authUser and authPassword match provider exactly
Timeout errorsCheck server address and port; try different transport

Inbound calls not connecting

SymptomFix
Calls go to voicemailVerify phone number is linked to an agent
404 Not FoundCheck the phone number exists and registration succeeded
Agent doesn’t answerVerify agent is enabled and has valid configuration

Outbound calls failing

SymptomFix
”No outbound config”Link a phone number to the agent for outbound
Authentication errorsVerify SIP credentials are correct
Invalid caller IDEnsure phone number is verified with your provider

Next steps

Inbound Calls

Handle incoming calls

Outbound Calls

Make outbound calls via API

Caller ID

Configure display names

SIP Configuration

Advanced SIP settings