> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # reject > Rejects an inbound call, preventing media negotiation. ```ts reject(): void ``` Declines an inbound call before it is answered. The caller-side rings stop, no media is negotiated, and the call instance transitions to `disconnected`. Call `reject` only on inbound calls in the `ringing` state; calling it after `answer` has no effect — use [`hangup`](/docs/browser-sdk/v4/reference/webrtc-call/hangup) instead to end a connected call. ## **Returns** `void` ## **Examples** ### Reject from a UI button ```ts declineButton.addEventListener('click', () => { call.reject(); }); ``` ### Auto-reject calls during do-not-disturb ```ts incomingCall.status$.subscribe((status) => { if (status === 'ringing' && userIsBusy()) { incomingCall.reject(); } }); ``` ## **See** * [`answer`](/docs/browser-sdk/v4/reference/webrtc-call/answer) to accept the call instead. * [`hangup`](/docs/browser-sdk/v4/reference/webrtc-call/hangup) to end a call that's already connected. * [`answered$`](/docs/browser-sdk/v4/reference/webrtc-call/answered\$) emits `false` after rejection. > Rejects an inbound call, preventing media negotiation.