Class Call

java.lang.Object
com.flashphoner.fpwcsapi.session.Call

public class Call extends Object
SIP call
  • Constructor Details

    • Call

      public Call(CallObject callObject, Session session)
      Construct a new call based on CallObject
      Parameters:
      callObject -
      session -
    • Call

      public Call(CallOptions callOptions, Session session)
      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

      public void sendDTMF(String dtmf, Call.DTMFType type)
    • switchCamera

      public void switchCamera(CameraSwitchHandler cameraSwitchHandler)
      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

      public void on(CallStatusEvent callStatusEvent)
      Set callStatusEvent listener, implementing CallStatusEvent.onTrying(Call), CallStatusEvent.onEstablished(Call), etc
      Parameters:
      callStatusEvent -
    • getId

      public String getId()
    • getIncoming

      public Boolean getIncoming()
    • getStatus

      public String getStatus()
    • getSipStatus

      public Integer getSipStatus()
    • getCaller

      public String getCaller()
    • getCallee

      public String getCallee()
    • getHasAudio

      public Boolean getHasAudio()
    • getHasVideo

      public Boolean getHasVideo()
    • getVisibleName

      public String getVisibleName()
    • getSipMessageRaw

      public String getSipMessageRaw()
    • getIsMsrp

      public Boolean getIsMsrp()
    • getCallOptions

      public CallOptions getCallOptions()
    • getCallObject

      public CallObject getCallObject()