ICall
Interface that may be used for call operations like answer, reject, hang up and mid-call operations like hold, start/stop video and others.
Methods
Answer
void
Answer( callSettings)
Answer the incoming call.
Parameters
callSettings:
Call settings with additional call parameters, such as preferred video codec, custom data, extra headers etc.
Returns
type:
void
Hangup
void
Hangup(IDictionary<string,string>
headers)
Terminate the call. Call should be either established or outgoing progressing.
Parameters
headers:
IDictionary<string,string>
Optional set of headers to be sent. Names must begin with "X-" to be processed by SDK.
Returns
type:
void
Hold
void
Hold(bool
hold, Action<Error?>
completion)
Hold or unhold the call.
Parameters
hold:
bool
True if the call should be put on hold, false for unhold.
completion:
Action<Error?>
System.Action
to handle the result of the operation.
Returns
type:
void
ReceiveVideo
void
ReceiveVideo(Action<Error?>
completion)
Start receive video if video receive was disabled before. Stop receiving video during the call is not supported.
Parameters
completion:
Action<Error?>
System.Action
to handle the result of the operation.
Returns
type:
void
Reject
void
Reject( rejectMode, IDictionary<string,string>
headers)
Reject the incoming call.
Parameters
rejectMode:
Specify mode of call rejection.
headers:
IDictionary<string,string>
Optional set of headers to be sent. Names must begin with "X-" to be processed by SDK.
Returns
type:
void
SendAudio
void
SendAudio(bool
sendAudio)
Enable or disable audio transfer from microphone into the call.
Parameters
sendAudio:
bool
True if audio should be sent, false otherwise.
Returns
type:
void
SendDTMF
void
SendDTMF(string
dtmf)
Send DTMF within the call.
Parameters
dtmf:
string
DTMFs.
Returns
type:
void
SendInfo
void
SendInfo(string
body, string
mimeType, IDictionary<string,string>
headers)
Send INFO message within the call.
Parameters
body:
string
Custom string data.
mimeType:
string
MIME type of info.
headers:
IDictionary<string,string>
Optional set of headers to be sent. Names must begin with "X-" to be processed by SDK.
Returns
type:
void
SendMessage
void
SendMessage(string
message)
Send a message within the call. Implemented atop SIP INFO for communication between call endpoint and the Voximplant cloud, and is separated from Voximplant messaging API.
Parameters
message:
string
Message text.
Returns
type:
void
SendVideo
void
SendVideo(bool
sendVideo, Action<Error?>
completion)
Start or stop sending video for the call.
Parameters
sendVideo:
bool
True if video should be sent, false otherwise.
completion:
Action<Error?>
System.Action
to handle the result of the operation.
Returns
type:
void
SetVideoSource
void
SetVideoSource(Camera
camera, double
fps)
Use
Parameters
camera:
Camera
Unity camera.
fps:
double
Video frame rate.
Returns
type:
void
SetVideoSource
void
SetVideoSource(Camera
camera, int
width, int
height, double
fps)
Use
Parameters
camera:
Camera
Unity camera.
width:
int
Video frame width.
height:
int
Video frame height
fps:
double
Video frame rate.
Returns
type:
void
Start
void
Start()
Start outgoing call.
Returns
type:
void
Props
CallId
string
CallId { get; }
The identifier for the call.
Returns
type:
string
Duration
ulong
Duration { get; }
The call duration.
Returns
type:
ulong
Endpoints
IReadOnlyCollection<IEndpoint>
Endpoints { get; }
A collection of the endpoints associated with the call.
Returns
type:
IReadOnlyCollection<IEndpoint>
LocalVideoStreams
IReadOnlyCollection<IVideoStream>
LocalVideoStreams { get; }
The local video streams associated with the call.
Returns
type:
IReadOnlyCollection<IVideoStream>