http = $http; } /** * Reject a ringing incoming call (the callId from the call.received event). * 404 when the call is not found or no longer ringing. Requires an * OPERATOR-level key. * * @return array */ public function rejectCall(string $sessionId, string $callId): array { return $this->http->request('POST', "/api/sessions/{$this->http->encodeSegment($sessionId)}/calls/{$this->http->encodeSegment($callId)}/reject"); } }