Phone & SIP Setup
Configure phone numbers and SIP credentials for voice assistant
Overview
To use the voice assistant, you need a SIP-compatible phone number connected to Happ. This page covers the complete setup process.
For the full API reference, see api.happ.tools/reference.
Step 1: Get SIP Credentials
Contact one of the supported telephony providers to get:
- Phone number — Your SIP phone number
- SIP login — Authentication username
- SIP password — Authentication password
- Telephony URL — SIP server address
Step 2: Add Phone to Happ
Via Dashboard
- Go to Phones in the sidebar
- Click Add Phone
- Fill in:
- Phone Number — Your SIP phone number
- SIP Login — Authentication username
- SIP Password — Authentication password
- Provider URL — SIP server address
- Codec — A-law (default) or μ-law
- Comment — Optional label for identification
- Click Save
Via API
POST /api/phones
X-Access-Token: happ_your_token_here
Content-Type: application/json
{
"phoneNumber": "+380501234567",
"sipLogin": "your-sip-login",
"password": "your-sip-password",
"telephonyUrl": "sip.provider.com",
"codec": "alaw",
"comment": "Main office line"
}Step 3: Link Phone to Assistant
Assign the phone number to an AI assistant:
Via Dashboard
- In the phone settings, select an Assistant from the dropdown
- Click Save
Via API
PATCH /api/phones/{phoneId}
X-Access-Token: happ_your_token_here
Content-Type: application/json
{
"assistantId": "your-assistant-uuid"
}A phone can be linked to only one assistant at a time. To change the assistant, update the assistantId.
Step 4: Add Telephony Provider Integration
- Go to Integrations > Add Integration
- Select your provider (Binotel, Ringostat, Phonet, or Unitalk)
- Enter provider-specific credentials
- Activate the integration
Step 5: Configure Voice Settings on Assistant
Go to your assistant's settings and configure:
- Voice — Choose from 30 built-in voices or ElevenLabs voices
- Audio format — Input and output audio format (default: PCM 8000)
- Eagerness — Response speed (Eager, Normal, Patient)
- Turn after silence — Seconds of silence before assistant speaks (default: 7)
- Soft timeout — Max wait for user response. -1 = unlimited
See Assistants > Voice Settings for details.
Step 6: Test
- Call your connected phone number from any phone
- You should hear the assistant's first message greeting
- Speak naturally and verify the AI responds
- Test any tools configured for the assistant
Managing Phones
Listing
GET /api/phones
X-Access-Token: happ_your_token_hereUpdating
PATCH /api/phones/{phoneId}
X-Access-Token: happ_your_token_here
Content-Type: application/json
{
"comment": "Updated label",
"codec": "ulaw"
}Deleting
DELETE /api/phones/{phoneId}
X-Access-Token: happ_your_token_hereTroubleshooting
| Problem | Solution |
|---|---|
| No audio | Verify SIP credentials and provider URL |
| Choppy audio | Check network quality. Try the other codec (alaw vs ulaw) |
| Slow responses | Reduce streaming latency. Set eagerness to "eager" |
| No connection | Verify the telephony provider integration is active |
| Wrong voice | Check the voice setting in assistant configuration |