#5537: fix(voice-call): hang up rejected inbound calls
channel: voice-call
Cluster:
Voice Call Enhancements and Fixes
## Summary
Adds an optional `rejectHangup` config setting for the voice-call plugin. When enabled, rejected inbound calls are actively terminated via `hangupCall()` instead of silently returning (letting the carrier timeout).
**Default behavior unchanged** - `rejectHangup: false` preserves the current silent-return behavior.
## Changes
- Add `voiceCall.rejectHangup` config option (default: `false`)
- Make `HangupCallInput.callId` optional for provider-only hangups
- Only call `hangupCall()` when `rejectHangup` is enabled
## Why `callId` can be optional
Verified that no provider implementation uses `callId` in `hangupCall()`:
| Provider | Uses `callId`? | What it uses |
|----------|---------------|--------------|
| Twilio | No | `providerCallId` only |
| Telnyx | No | `providerCallId` only |
| Plivo | No | `providerCallId` only |
| Mock | No | No-op |
All providers only need `providerCallId` to make the hangup API call.
## Config example
```yaml
voiceCall:
rejectHangup: true # Actively hang up rejected calls
```
## Test plan
- [x] `pnpm build` passes
- [x] `pnpm lint` passes
- [x] Voice-call tests pass (26 tests)
🤖 Generated with [Claude Code](https://claude.ai/code)
Most Similar PRs
#22285: Voice-call: add onCallEnded lifecycle callback
by MegaPhoenix92 · 2026-02-21
62.2%
#4325: fix(voice-call): verify call status with provider before loading st...
by garnetlyx · 2026-01-30
61.5%
#6702: fix(voice-call): mark calls as ended when media stream disconnects
by johngnip · 2026-02-01
59.4%
#14011: fix(voice-call): Telnyx inbound call support - missing direction/fr...
by mcwigglesmcgee · 2026-02-11
57.9%
#19073: feat(voice-call): streaming TTS, barge-in, silence filler, hangup, ...
by odrobnik · 2026-02-17
57.1%
#6128: Fail closed when Telnyx webhook public key is missing (voice-call p...
by yueyueL · 2026-02-01
56.6%
#21566: feat(voice-call): bridge call transcripts to main agent session
by MegaPhoenix92 · 2026-02-20
56.1%
#16617: fix(voice-call): preserve Telnyx inbound event direction metadata
by harshang03 · 2026-02-14
55.8%
#18852: fix: Voice-call state persistence is fire-and-forget, causing silen...
by coygeek · 2026-02-17
55.6%
#20058: feat(voice-call): add Twilio non-US region support (region/edge con...
by giumex · 2026-02-18
54.9%