One-way audio (caller can hear AI but AI cannot hear caller, or vice versa)
One-way audio (caller can hear AI but AI cannot hear caller, or vice versa)
One-way audio almost always means the RTP media stream is blocked or arriving at the wrong
address. The SIP signalling completed (you got a
200 OK) but the media path is broken.Checklist:-
NAT traversal — Is your PBX behind NAT? The
ContactandViaheaders in your SIPINVITEmust contain your public IP, not a private192.168.x.xaddress. Configureexternip(Asterisk) orext-rtp-ip/ext-sip-ip(FreeSWITCH) to your public IP. -
Firewall — RTP ports — The Humain gateway sends RTP from the range
10000–20000 UDP. Your firewall must allow inbound UDP on the ports listed in the SDPm=audioline, and outbound UDP tosip.humain.aion the same range. -
Codec mismatch — If both sides claim to support a codec but disagree on the payload
type number, media is silently discarded. Capture the SDP exchange with
sngrepand verify thea=rtpmaplines match. -
SRTP key mismatch — If you negotiated SRTP, verify the
a=cryptoattribute in the SDP answer is being applied. A key mismatch results in silent media on one or both sides.
AI does not respond (call connects but the AI is silent)
AI does not respond (call connects but the AI is silent)
The call connected and audio is flowing but the AI never speaks. This typically means the
session was not opened before the SIP
INVITE, or the session was already closed.Checklist:-
Session opened before INVITE — The Humain SIP gateway maps an incoming
INVITEto an open session using the SIP user part (thesession_id). If you dialsip:hk_sess_XYZ@sip.humain.aibut the sessionhk_sess_XYZwas never opened, the gateway rejects or drops the call. EnsurePOST /v1/sessionssucceeds and returns thesession_idbefore you trigger theDialor transfer. -
Credential error — Check your server logs for a
401 UnauthorizedorUNAUTHENTICATEDerror from the Humain API. The session will not open with an invalid or revoked credential. -
Session already ended — If the session was accidentally closed (e.g., a timeout or a
prior error path that called
/end), the gateway will reject audio. Open a fresh session. -
Wrong session mode — Sessions opened with
mode: "text"ormode: "voice"(WebRTC) will not accept SIP audio. Always open sessions withmode: "voip"for SIP integrations.
Poor transcription quality (AI misunderstands caller)
Poor transcription quality (AI misunderstands caller)
Transcription quality is a function of audio bandwidth, background noise, and codec choice.Quick wins (in order of impact):
- Switch to G.722 — If you are using G.711 (8 kHz), upgrade to G.722 (16 kHz). The wider audio bandwidth significantly improves Gemini Live’s transcription accuracy, especially for accented speech and proper nouns. See the codec guide for configuration examples.
- Check for echo — Echo from a badly configured analogue gateway or ATA degrades transcription accuracy. Enable Acoustic Echo Cancellation (AEC) on your ATA or softphone.
-
Check packet loss — High packet loss fragments speech. Run a quick MOS test:
If packet loss exceeds 1%, investigate your network path.
- Avoid transcoding chains — G.729 → G.711 → Opus involves two lossy conversions. Use a single codec end-to-end where possible.
- Kiosk language setting — Verify the kiosk is configured for the correct language in the admin panel (Kiosk → Voice settings → Language). A kiosk set to English will produce high error rates on Spanish input regardless of audio quality.
SIP registration fails (trunk shows 'unregistered' or 408 timeout)
SIP registration fails (trunk shows 'unregistered' or 408 timeout)
The SIP trunk cannot register with
sip.humain.ai. This is almost always a network or
credential issue.Checklist:-
DNS resolution — Verify
sip.humain.airesolves from your server:If DNS fails, check your server’s resolver configuration. -
Firewall — SIP port — Port
5061 TCP(TLS) must be open outbound tosip.humain.ai. Test with: -
TLS certificate — The Humain gateway uses a publicly trusted TLS certificate. If your
PBX has a misconfigured CA bundle it may reject the handshake. On Asterisk:
-
Credential format — The SIP
usernameandpasswordmust both be set to your fullhk_live_…token. Using only the prefix or a truncated token will cause403 Forbidden. -
Clock skew — Some SIP implementations include a
Dateheader. If your server clock is more than 60 seconds off UTC, authentication may fail. Runtimedatectlto verify.
Call drops after 30–60 seconds (session timeout)
Call drops after 30–60 seconds (session timeout)
If every call drops at a predictable time boundary, the session is being abandoned by the
server before the call ends.Causes:Disable problematic SIP ALG on your router/firewall if it is rewriting SIP packets.
SIP ALGs on consumer routers are a frequent source of intermittent call drops and one-way
audio.
-
Session inactivity timeout — Humain sessions in
voipmode time out after 30 minutes of inactivity (no audio received). If your PBX holds a call on mute for longer than this, the session closes and the gateway drops the RTP stream. Solution: implement a periodic comfort noise or re-INVITEto keep the media path active. -
PBX session timer (RFC 4028) — Some PBXes enable SIP Session Timers by default and
will send a re-
INVITEevery 30 or 90 seconds to refresh the session. Ensure the Humain gateway’s200 OKto the re-INVITEis not being blocked by a firewall or ALG. - NAT mapping expiry — Consumer-grade NAT devices expire UDP mappings after 30–60 seconds of silence. Enable SIP keep-alives (OPTIONS ping) on your PBX, or switch to TCP/TLS transport which maintains a persistent connection.
Capturing a SIP trace
For issues not covered above, capture a full SIP trace and share it with support@humain.ai:- The SIP trace (
.pcaporsngrepexport) - Your PBX type and version
- The codec configured on the trunk
- The session_id of a failed call (from your server logs)