Overview
VoIP mode lets you connect a PSTN phone line or SIP trunk to the Humain AI. Unlike WebRTC, there is no browser or special client library required — your PBX or VoIP adapter handles the telephony; Humain handles the AI.VoIP mode is configured in the admin panel under Kiosk → Voice settings → VoIP / SIP.
Contact support@humain.ai to enable the SIP endpoint for your
workspace.
Integration paths
SIP trunk (PBX)
Configure your PBX (Asterisk, FreeSWITCH, 3CX, or any SIP-compatible system) to route
calls to the Humain SIP endpoint. Best for high-volume call centres with existing
telephony infrastructure.
Asterisk / FreePBX
Write a dialplan and AGI script for full control over call flow, DTMF handling, and
mid-call transfers. Or use the FreePBX GUI module for zero-code setup.
Twilio / Vonage / Telnyx
Route cloud telephony calls to a Humain Kiosk session via webhooks and the provider’s
audio streaming API. Lets you add SMS fallback, recording, and call analytics.
Mobile app (SIP client)
Embed a SIP stack (PJSIP, linphone) in your iOS/Android app. The app registers against
the Humain SIP endpoint and calls are handled like any other SIP call.
Session flow
A VoIP session still uses the Device API. Your server-side integration (PBX dialplan, Twilio webhook, etc.) calls the Humain API to open and close sessions. The audio bridge is handled transparently.Configuration checklist
1
Enable VoIP for your kiosk
In the admin panel, open your kiosk and navigate to Voice settings → VoIP / SIP.
Toggle VoIP on and note the assigned SIP URI (e.g.
sip:kiosk-abc123@sip.humain.ai).2
Configure your telephony layer
Point your PBX, ATA, or CPaaS at the Humain SIP endpoint. Use the SIP URI from the
previous step. TLS and SRTP are required — plain SIP is not supported.
3
Open sessions programmatically
When an inbound call arrives, your server-side webhook calls
POST /v1/sessions with
mode: "voip" before accepting the SIP INVITE.4
Close sessions on hang-up
When the caller hangs up, call
POST {agent_url}/v1/sessions/{sid}/end (the agent_url
from the open response, not necessarily the host you called to open the session) to flush
usage data.Supported codecs
For best transcription accuracy, prefer G.722 (wideband) or Opus over G.711 narrowband.
Gemini Live — the model that handles live voice, including VoIP calls — performs
significantly better at 16 kHz+ audio.