Package com.flashphoner.fpwcsapi.session
Class Call
java.lang.Object
com.flashphoner.fpwcsapi.session.Call
SIP call
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCall(CallObject callObject, Session session) Construct a new call based on CallObjectCall(CallOptions callOptions, Session session) Construct a new call based on callOptions -
Method Summary
Modifier and TypeMethodDescriptionvoidanswer()Answer the callvoidcall()Make a new outgoing callgetId()voidhangup()Hangup the callvoidhold()Put the call on holdbooleanCheck if audio mutedbooleanCheck if video mutedvoidMute audio for this callvoidMute video for this callvoidon(CallStatusEvent callStatusEvent) Set callStatusEvent listener, implementingCallStatusEvent.onTrying(Call),CallStatusEvent.onEstablished(Call), etcvoidsendDTMF(String dtmf, Call.DTMFType type) voidswitchCamera(CameraSwitchHandler cameraSwitchHandler) Switch camera if existvoidunhold()Unhold the callvoidUnmute audio for this callvoidUnmute video for this call
-
Constructor Details
-
Call
Construct a new call based on CallObject- Parameters:
callObject-session-
-
Call
Construct a new call based on callOptions- Parameters:
callOptions-session-
-
-
Method Details
-
call
public void call()Make a new outgoing call -
answer
public void answer()Answer the call -
hold
public void hold()Put the call on hold -
unhold
public void unhold()Unhold the call -
sendDTMF
-
switchCamera
Switch camera if exist- Parameters:
cameraSwitchHandler-
-
hangup
public void hangup()Hangup the call -
muteAudio
public void muteAudio()Mute audio for this call -
unmuteAudio
public void unmuteAudio()Unmute audio for this call -
isAudioMuted
public boolean isAudioMuted()Check if audio muted- Returns:
-
muteVideo
public void muteVideo()Mute video for this call -
unmuteVideo
public void unmuteVideo()Unmute video for this call -
isVideoMuted
public boolean isVideoMuted()Check if video muted- Returns:
-
on
Set callStatusEvent listener, implementingCallStatusEvent.onTrying(Call),CallStatusEvent.onEstablished(Call), etc- Parameters:
callStatusEvent-
-
getId
-
getIncoming
-
getStatus
-
getSipStatus
-
getCaller
-
getCallee
-
getHasAudio
-
getHasVideo
-
getVisibleName
-
getSipMessageRaw
-
getIsMsrp
-
getCallOptions
-
getCallObject
-