MCPTTManager

open class MCPTTManager

Created by streamwide on 17/11/16.

Properties

Link copied to clipboard
val CALL_ID: String
Link copied to clipboard
val CALL_VOIP_SESSION_STATUS: String
Link copied to clipboard
val NEED_UN_BLOCK_ORIENTATION: String
Link copied to clipboard
val OLD_CALL_ID: String
keys for map CallID/data

Functions

Link copied to clipboard
open fun addKmsKeysMapEntry(@NonNull key: ByteBuffer, @NonNull value: KeyData)
Link copied to clipboard
open fun addVoipCall(    @NonNull context: Context,     @NonNull parameters: Parameters,     @NonNull caller: PhoneItem,     callerLevel: Double,     isOutgoing: Boolean,     @Nullable receptionTime: String,     isManDownCall: Boolean,     callPriority: Int,     @Nullable callTransferor: String): STWVCall
open fun addVoipCall(    @NonNull context: Context,     @NonNull parameters: Parameters,     @NonNull caller: PhoneItem,     callerLevel: Double,     isOutgoing: Boolean,     @Nullable receptionTime: String,     @Nullable call: Call,     isInLargeGroup: Boolean,     isManDownCall: Boolean,     callPriority: Double,     @Nullable callTransferor: String): STWVCall
Link copied to clipboard
open fun checkVoipAlwaysConnectedMode(@NonNull context: Context)
Link copied to clipboard
open fun countAllSessions(): Int
nummber of voip sessions
Link copied to clipboard
open fun createIncomingVoipSession(    @NonNull context: Context,     @NonNull vCall: STWVCall,     @Nullable groupUser: String)
create new INCOMING VoipSessionItem on VoIP session reception (form SIP or from UA)
Link copied to clipboard
open fun currentActiveEmergencyPttSessionsList(): List<STWVCall>
open fun currentActiveEmergencyPttSessionsList(isOutgoing: Boolean): List<STWVCall>
Link copied to clipboard
open fun currentActivePttSessionsList(isChannelSession: Boolean): List<STWPTTCall>
Link copied to clipboard
open fun currentActiveSessionsList(): List<STWVCall>
open fun currentActiveSessionsListBySessionAndMediaType(@NonNull sessionType: SessionType, @NonNull mediaType: MediaType): List<STWVCall>
Link copied to clipboard
open fun currentActiveSessionsListWithCallStatus(callStatus: Int): List<STWVCall>
Link copied to clipboard
open fun enableAudioPanning(channelDivision: Int)
Sets the audio panning configuration in the stack VoIP
Link copied to clipboard
open fun existActiveChannelSession(): Boolean
exist active channel session
Link copied to clipboard
open fun existActiveEmergencyPttSessionsList(): Boolean
Link copied to clipboard
open fun existActiveMediaAudioSession(ignoreWalkieTalkieSessions: Boolean): Boolean
Link copied to clipboard
open fun existActiveMediaAudioVideoSession(): Boolean
Link copied to clipboard
open fun existActiveMediaVideoSession(): Boolean
Link copied to clipboard
open fun existActivePttSessionsList(isChannelSession: Boolean): Boolean
Link copied to clipboard
open fun existActiveSession(): Boolean
open fun existActiveSessionsListBySessionAndMediaType(@NonNull sessionType: SessionType, @NonNull mediaType: MediaType): Boolean
Link copied to clipboard
open fun existTowActiveVCall(): Boolean
Link copied to clipboard
open fun getActiveCallID(): String
Link copied to clipboard
open fun getAllActiveChannels(): List<STWPTTCall>
Link copied to clipboard
open fun getAllReconnectingChannelGroupIds(): List<String>
Link copied to clipboard
open fun getAudioCaptureSessionIds(): List<Integer>
Link copied to clipboard
open fun getAudioCaptureSink(@NonNull vCall: STWVCall): Sink
Link copied to clipboard
open fun getAudioIo(@NonNull vCall: STWVCall): String
Link copied to clipboard
open fun getAudioPlaySink(@NonNull vCall: STWVCall): Sink
Link copied to clipboard
open fun getCertificates(): String
Link copied to clipboard
open fun getCurrentChannelSession(): STWPTTCall
retreive the current channel session
Link copied to clipboard
open fun getCurrentFreeCallSession(): STWFreeCall
retreive the current free call session
Link copied to clipboard
open fun getCurrentVoipSession(): STWVCall
retreive the current free call /walkie session
Link copied to clipboard
open fun getCurrentWalkieTalkieSession(): STWPTTCall
retreive the current walkie talkie session
Link copied to clipboard
open fun getEmergencyVCall(): STWVCall
Link copied to clipboard
open fun getGroupAllChannelSessionId(): String
Link copied to clipboard
open fun getInstance(): MCPTTManager
MCPTTManager singleton getter application context
Link copied to clipboard
open fun getKeyDataFromGmkId(@NonNull gmkId: ByteBuffer): KeyData
Link copied to clipboard
open fun getMapCallIDData(    @NonNull oldCallID: String,     @NonNull callID: String,     needUnBlockOrientation: Boolean): Map<String, Any>
Link copied to clipboard
open fun getOngoingActiveSession(): STWVCall
Call this method to get the current active call Use this method in case of : - Channel is connected but onHold and active session is a free call.
Link copied to clipboard
open fun getOngoingVideoSession(): STWVCall
Link copied to clipboard
open fun getRemoteIp(@Nullable parameters: Parameters): String
Link copied to clipboard
open fun getTheOnlyVoipSession(): STWVCall
retreive the current channel session
Link copied to clipboard
open fun getVCallForReceiver(): STWVCall
Link copied to clipboard
open fun getVideoStreamingSession(): STWLiveStreamCall
Link copied to clipboard
open fun handleAudioModeChanged(mode: Int)
Link copied to clipboard
open fun handleAudioOutputLoudnessGain(headsetVolumeGain: Int)
open fun handleAudioOutputLoudnessGain(@Nullable vCall: STWVCall, volumeGain: Int)
Link copied to clipboard
open fun handleChangeActiveCallId(@Nullable oldLocalID: String, @NonNull newLocalId: String)
Link copied to clipboard
open fun handleChannelStarted(context: Context, vCall: STWPTTCall)
Link copied to clipboard
open fun handleFallbackIp(@NonNull context: Context)
When VOIP_SERVER_FQDN is changed, must to stop all channels in reconnecting state and restart them after 2 sec to let voip stack take into account new voip server list
Link copied to clipboard
open fun handleGroupDenyChanged()
Link copied to clipboard
open fun handleOutgoingEmergencyCallEnded()
Stop, if needed, geolocation high speed emergency mode if an outgoing emergency call has been ended
Link copied to clipboard
open fun handleRefreshAudioOutputOption(@Nullable vCall: STWVCall)
Link copied to clipboard
open fun handleRegisterEvent(@NonNull event: Event)
Link copied to clipboard
open fun handleSessionEvent(@NonNull event: Event, @Nullable call: Call)
Link copied to clipboard
open fun handleVideoStreamingSource(@NonNull liveStreamCall: STWLiveStreamCall, videoCaptureSource: Int)
Link copied to clipboard
open fun handleVoipSessionClosed(@NonNull voipSessionItem: VoipSessionItem, isOutgoing: Boolean)
called when recieved end of session from SIP
Link copied to clipboard
open fun handleVoipSessionEnd(@NonNull voipSessionItem: VoipSessionItem)
called when recieved end of session from SIP
Link copied to clipboard
open fun handleVoipSessionStopped()
Link copied to clipboard
open fun hasVCallWithCallStatus(callStatus: Int, ignoreVideoStreamingSession: Boolean): Boolean
Check whether session holder exist with call status passed as parameter
Link copied to clipboard
open fun iAmTalkingInWalkieTalkieSession(): Boolean
Check if user is talking in any WalkieTalkie (PTT/Channel) session
Link copied to clipboard
open fun initVoipLogInFile()
init log in file for voip stack
Link copied to clipboard
open fun instantiateNewVCall(    @NonNull context: Context,     @Nullable call: Call,     @NonNull parameters: Parameters,     @Nullable threadId: Integer,     @NonNull callerParticipant: VoipParticipant,     @NonNull calleeParticipantList: List<VoipParticipant>,     isOutgoing: Boolean,     isLargeGroup: Boolean,     @Nullable callTransferor: VoipParticipant,     callPriority: Integer): STWVCall
Link copied to clipboard
open fun isAllChannelSession(): Boolean
Link copied to clipboard
open fun isChannelInactive(@Nullable vCall: STWPTTCall): Boolean
session is inactive if the attending participant list is empty
Link copied to clipboard
open fun isReconnecting(): Boolean
either al session is reconnecting or not
open fun refreshAudioPanningForAllConnectedChannels(channelDivision: Int, @Nullable channelID: String)
Call this method to refresh the audio panning for all connected channels.
Link copied to clipboard
open fun refreshSpeaker()
Link copied to clipboard
open fun rejectIncomingSession(    @NonNull context: Context,     @Nullable vCall: STWVCall,     @NonNull rejectReason: Call.RejectReason)
Link copied to clipboard
open fun removeKmsKeysMapEntry(@Nullable key: ByteBuffer)
Link copied to clipboard
open fun removeVoIPSession(@NonNull context: Context, @Nullable vCall: STWVCall)
Link copied to clipboard
open fun resetAllConnections()
Invoke this method to reset all VoIP connections (UA and all VoIP sessions)
Link copied to clipboard
open fun retrieveConferenceSessionByThreadId(@Nullable threadGroupId: String): STWConferenceCall
Link copied to clipboard
open fun retrieveGroupPttSessionByThreadId(@Nullable threadGroupId: String): STWPTTCall
Link copied to clipboard
open fun retrieveVCall(@NonNull callID: String): STWVCall

open fun retrieveVCall(@Nullable localID: String, @Nullable sessionID: String): STWVCall
retrieve the corresponding (free call, walkie-talkie, Channel) session by localID or sessionID Note that the priority for searching session is by localID
Link copied to clipboard
open fun saveChannelForceClosed()
Link copied to clipboard
open fun setActiveCallID(@NonNull activeCallID: String)
Link copied to clipboard
open fun setAudioIo(@NonNull vCall: STWVCall)
Link copied to clipboard
open fun setCertificates()
Link copied to clipboard
open fun setGlobalConfiguration()
Link copied to clipboard
open fun setSpeakerState(@Nullable vCall: STWVCall, speakerState: Boolean)
Link copied to clipboard
open fun startAutoConnectedChannels()
Link copied to clipboard
open fun startChannel(    @NonNull context: Context,     @NonNull parameters: Parameters,     @NonNull caller: PhoneItem,     @Nullable receptionTime: String,     callPriority: Int,     isVisitorChannel: Boolean): STWPTTCall
Link copied to clipboard
open fun startChannelSession(    @NonNull context: Context,     @NonNull params: Parameters,     @NonNull callerParticipant: VoipParticipant,     isVisitorChannel: Boolean): STWVCall
Link copied to clipboard
open fun startVideoStreaming(    @NonNull context: Context,     @Nullable phoneItemList: List<PhoneItem>,     @Nullable contactItemList: List<ContactItem>,     @NonNull priority: SessionSipPriority): STWLiveStreamCall
start video session -create STWLiveStreamCall if not created -create stack if not created -start the session
Link copied to clipboard
open fun startVoipSession(@NonNull vCall: STWVCall)
Link copied to clipboard
open fun stopAnsweredIncomingSession(@Nullable vCall: STWVCall)
Link copied to clipboard
open fun stopAutoConnectedChannelSessions()
Link copied to clipboard
open fun stopChannelSessions(@NonNull context: Context)
stop all session
Link copied to clipboard
open fun stopVoipSession(@NonNull context: Context, @Nullable vCall: STWVCall)
called to stop any session in any state : -STWVCall.STWVCallConnectionStatus.STWVCallStartedStatus -STWVCall.STWVCallConnectionStatus.STWVCallCallingStatus -STWVCall.STWVCallConnectionStatus.STWVCallRingingStatus
Link copied to clipboard
open fun stopVoipSessions(@NonNull context: Context)
stop all session
Link copied to clipboard
open fun stopVoipSessionToMerge(@NonNull context: Context, @Nullable vCall: STWVCall)
called to stop live session (free call/ call-in/ call-out) in any state to start the merged call: -STWVCall.STWVCallConnectionStatus.STWVCallStartedStatus -STWVCall.STWVCallConnectionStatus.STWVCallCallingStatus -STWVCall.STWVCallConnectionStatus.STWVCallRingingStatus
Link copied to clipboard
open fun unregisterAcmUA(shouldStopService: Boolean)
connect and register UA for AlwaysConnected mode
Link copied to clipboard
open fun updateOpenIDToken(@NonNull context: Context)
Link copied to clipboard
open fun updateUserDetails(    @Nullable alias: String,     @Nullable lastName: String,     @Nullable firstName: String)
Call this method to change user details(new Alias, new First Name, new Last name).
Link copied to clipboard
open fun voipCall(@Nullable parameters: Parameters)
start VoIP call