#16617: fix(voice-call): preserve Telnyx inbound event direction metadata
channel: voice-call
stale
size: M
Cluster:
Voice Call Enhancements and Fixes
## Describe your changes
- Preserve Telnyx `call.initiated` metadata (`direction`, `from`, `to`) during webhook normalization instead of dropping those fields.
- Normalize provider direction aliases in a shared helper and reuse it across Telnyx, Twilio, and Plivo providers for consistent event semantics.
- Add endpoint-based fallback direction inference in call event processing so inbound calls are still identified when providers omit an explicit direction value.
## Screenshot or video (only for visual changes)
- N/A
## GitHub Issue Link (if applicable)
- https://github.com/openclaw/openclaw/issues/16601
## Testing Plan
- Explanation of why no additional tests are needed:
- Added focused unit coverage for Telnyx webhook parsing and inbound direction inference paths in the call manager.
- Unit Tests (JS and/or Python):
- `pnpm test -- extensions/voice-call/src/providers/telnyx.test.ts extensions/voice-call/src/manager/events.test.ts extensions/voice-call/src/providers/twilio.test.ts extensions/voice-call/src/providers/plivo.test.ts`
- E2E Tests:
- Not run (provider integrations require external telephony services).
- Any manual testing needed?:
- Optional: place an inbound Telnyx call and confirm `call.initiated` creates an inbound call record.
---
**Contribution License Agreement**
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.
Most Similar PRs
#14011: fix(voice-call): Telnyx inbound call support - missing direction/fr...
by mcwigglesmcgee · 2026-02-11
81.5%
#16811: Fix Telnyx inbound calls silently dropped — normalizeEvent missing ...
by Clawborn · 2026-02-15
79.3%
#7652: fix(voice-call): fix Telnyx transcription (STT) not working
by tturnerdev · 2026-02-03
67.6%
#8251: fix(voice-call): remove redundant transcript from extraSystemPrompt
by geodeterra · 2026-02-03
62.6%
#6128: Fail closed when Telnyx webhook public key is missing (voice-call p...
by yueyueL · 2026-02-01
62.2%
#18852: fix: Voice-call state persistence is fire-and-forget, causing silen...
by coygeek · 2026-02-17
61.3%
#4325: fix(voice-call): verify call status with provider before loading st...
by garnetlyx · 2026-01-30
60.5%
#8297: fix(voice-call): prevent empty TwiML for non-in-progress outbound c...
by vishaltandale00 · 2026-02-03
60.2%
#18204: feat(memory): add native Telnyx embedding provider
by aisling404 · 2026-02-16
60.1%
#6702: fix(voice-call): mark calls as ended when media stream disconnects
by johngnip · 2026-02-01
60.1%