URGENT — webhook returned 422; WebSocket/answer handshake failing (Call ID 04992d02...)
Hi Vapi Engineering,
This is urgent and needs to be fixed as a permanent change.
Problem: Telnyx reports our webhook https://api.vapi.ai/telnyx/inbound_call returned HTTP 422 on a production call (Call Session ID: 04992d02-9ec0-11f0-9583-02420aef32a0, time 2025-10-01 12:13 UTC). Because of that, Telnyx's
Please perform the following permanent fixes now:
1) Make the
2) Ensure full support for Telnyx's answer
We need confirmation once these changes are deployed. This is blocking a customer demo. Call Session ID and Telnyx connection ID are included below.
Call Session ID: 04992d02-9ec0-11f0-9583-02420aef32a0
Telnyx Connection ID: 2782442782319445746
Webhook URL: https://api.vapi.ai/telnyx/inbound_call
Please escalate to engineering and reply ASAP with ETA.
Thanks,
Constantine.
This is urgent and needs to be fixed as a permanent change.
Problem: Telnyx reports our webhook https://api.vapi.ai/telnyx/inbound_call returned HTTP 422 on a production call (Call Session ID: 04992d02-9ec0-11f0-9583-02420aef32a0, time 2025-10-01 12:13 UTC). Because of that, Telnyx's
answer to open the bidirectional WebSocket/RTP audio stream failed, and inbound caller audio never reached the assistant.Please perform the following permanent fixes now:
1) Make the
call.initiated webhook handler return HTTP 200 OK immediately for Telnyx events (do not block Telnyx with synchronous validation). Validate payloads asynchronously instead.2) Ensure full support for Telnyx's answer
WebSocket audio handshake:
- Accept/handle WebSocket audio in bidirectional mode.
- Support **Opus / 48000 Hz** as primary codec and **PCMU/8000** as fallback.
- Properly map payload types and do correct resampling if needed.
3) Add logging to capture the Telnyx webhook request+response (headers+body) and the answer failure stack trace.
4) Save the first 10–30 seconds of inbound audio that Vapi receives for each failed call for debugging.
5) Confirm format Telnyx will send (WebSocket with audio/opus` frames or SIP/RTP). If Telnyx uses WebSocket, confirm Vapi’s WebSocket URL and accepted content-types.We need confirmation once these changes are deployed. This is blocking a customer demo. Call Session ID and Telnyx connection ID are included below.
Call Session ID: 04992d02-9ec0-11f0-9583-02420aef32a0
Telnyx Connection ID: 2782442782319445746
Webhook URL: https://api.vapi.ai/telnyx/inbound_call
Please escalate to engineering and reply ASAP with ETA.
Thanks,
Constantine.