Package com.flashphoner.fpwcsapi.session
Class Call
java.lang.Object
com.flashphoner.fpwcsapi.session.Call
SIP call
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionCall
(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 TypeMethodDescriptionvoid
answer()
Answer the callvoid
call()
Make a new outgoing callgetId()
void
hangup()
Hangup the callvoid
hold()
Put the call on holdboolean
Check if audio mutedboolean
Check if video mutedvoid
Mute audio for this callvoid
Mute video for this callvoid
on
(CallStatusEvent callStatusEvent) Set callStatusEvent listener, implementingCallStatusEvent.onTrying(Call)
,CallStatusEvent.onEstablished(Call)
, etcvoid
sendDTMF
(String dtmf, Call.DTMFType type) void
switchCamera
(CameraSwitchHandler cameraSwitchHandler) Switch camera if existvoid
unhold()
Unhold the callvoid
Unmute audio for this callvoid
Unmute 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
-