Interface CallService
-
- All Implemented Interfaces:
public interface CallService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
CallService.WithRawResponse
A view of CallService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract CallService.WithRawResponse
withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method. abstract CallService
withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied. Unit
accept(String callId, CallAcceptParams params)
Accept an incoming SIP call and configure the realtime session that will handle it. Unit
accept(String callId, CallAcceptParams params, RequestOptions requestOptions)
Unit
accept(CallAcceptParams params)
abstract Unit
accept(CallAcceptParams params, RequestOptions requestOptions)
Unit
hangup(String callId)
End an active Realtime API call, whether it was initiated over SIP or WebRTC. Unit
hangup(String callId, CallHangupParams params, RequestOptions requestOptions)
Unit
hangup(String callId, CallHangupParams params)
abstract Unit
hangup(CallHangupParams params, RequestOptions requestOptions)
Unit
hangup(CallHangupParams params)
Unit
hangup(String callId, RequestOptions requestOptions)
Unit
refer(String callId, CallReferParams params)
Transfer an active SIP call to a new destination using the SIP REFER verb. Unit
refer(String callId, CallReferParams params, RequestOptions requestOptions)
Unit
refer(CallReferParams params)
abstract Unit
refer(CallReferParams params, RequestOptions requestOptions)
Unit
reject(String callId)
Decline an incoming SIP call by returning a SIP status code to the caller. Unit
reject(String callId, CallRejectParams params, RequestOptions requestOptions)
Unit
reject(String callId, CallRejectParams params)
abstract Unit
reject(CallRejectParams params, RequestOptions requestOptions)
Unit
reject(CallRejectParams params)
Unit
reject(String callId, RequestOptions requestOptions)
-
-
Method Detail
-
withRawResponse
abstract CallService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract CallService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
accept
Unit accept(String callId, CallAcceptParams params)
Accept an incoming SIP call and configure the realtime session that will handle it.
-
accept
Unit accept(String callId, CallAcceptParams params, RequestOptions requestOptions)
-
accept
Unit accept(CallAcceptParams params)
-
accept
abstract Unit accept(CallAcceptParams params, RequestOptions requestOptions)
-
hangup
Unit hangup(String callId)
End an active Realtime API call, whether it was initiated over SIP or WebRTC.
-
hangup
Unit hangup(String callId, CallHangupParams params, RequestOptions requestOptions)
-
hangup
Unit hangup(String callId, CallHangupParams params)
-
hangup
abstract Unit hangup(CallHangupParams params, RequestOptions requestOptions)
-
hangup
Unit hangup(CallHangupParams params)
-
hangup
Unit hangup(String callId, RequestOptions requestOptions)
-
refer
Unit refer(String callId, CallReferParams params)
Transfer an active SIP call to a new destination using the SIP REFER verb.
-
refer
Unit refer(String callId, CallReferParams params, RequestOptions requestOptions)
-
refer
Unit refer(CallReferParams params)
-
refer
abstract Unit refer(CallReferParams params, RequestOptions requestOptions)
-
reject
Unit reject(String callId)
Decline an incoming SIP call by returning a SIP status code to the caller.
-
reject
Unit reject(String callId, CallRejectParams params, RequestOptions requestOptions)
-
reject
Unit reject(String callId, CallRejectParams params)
-
reject
abstract Unit reject(CallRejectParams params, RequestOptions requestOptions)
-
reject
Unit reject(CallRejectParams params)
-
reject
Unit reject(String callId, RequestOptions requestOptions)
-
-
-
-