Skip to content

VAPI-3458 Feature/inbound accept decline#15

Merged
smoghe-bw merged 4 commits into
mainfrom
feature/inbound-accept-decline
Jul 22, 2026
Merged

VAPI-3458 Feature/inbound accept decline#15
smoghe-bw merged 4 commits into
mainfrom
feature/inbound-accept-decline

Conversation

@smoghe-bw

Copy link
Copy Markdown
Contributor

No description provided.

smoghe-bw and others added 4 commits July 15, 2026 15:09
Reworks the inbound-call flow onto the new gateway/SDK paradigm: the gateway
rides its accept decision and caller identity on the subscribe sdpOffer that
adds a call's track, and the SDK surfaces it as RtcStream.autoAccepted /
from / fromType on onStreamAvailable. There is no separate streamAvailable RPC
to correlate, so the two-phase ref juggling from the old branch is gone.

- App: onStreamAvailable connects straight through when s.autoAccepted, else
  stashes the stream and prompts. Accept is purely client-side (play the stream
  the gateway already bridged); decline ends the call via hangupConnection.
  onStreamUnavailable clears all inbound state.
- EndpointHandler: auto-accept toggle (a connect-time setMediaPreferences option),
  disabled once the endpoint exists; passes autoAccept into connect().
- IncomingCall: small presentational component + scss showing caller identity
  and Accept/Decline actions.
- package.json: bump bandwidth-rtc to ^0.6.0 for the reworked SDK.

There are no acceptStream/declineStream RPCs: accept needs no gateway signal and
decline reuses the existing hangup path, so no gateway change is required.

NOTE: bandwidth-rtc 0.6.0 is not yet published (this rides SDK PR #5). Test
locally via `npm link bandwidth-rtc`; regenerate package-lock.json once the SDK
release is cut.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@smoghe-bw smoghe-bw changed the title Feature/inbound accept decline VAPI-3458 Feature/inbound accept decline Jul 20, 2026
@smoghe-bw
smoghe-bw merged commit 7de8b2a into main Jul 22, 2026
@smoghe-bw
smoghe-bw deleted the feature/inbound-accept-decline branch July 22, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants