SipServiceCommand

Triggers sip service commands.

Author

gotev (Aleksandar Gotev)

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open var AGENT_NAME: String
This should be changed on the app side to reflect app version/name/...

Functions

Link copied to clipboard
open fun acceptIncomingCall(context: Context, accountID: String, callID: Int)

open fun acceptIncomingCall(context: Context, accountID: String, callID: Int, isVideo: Boolean)
Accept an incoming call.
Link copied to clipboard
open fun attendedTransferCall(context: Context, accountID: String, callIdOrig: Int, callIdDest: Int)
Attended call transfer.
Link copied to clipboard
open fun changeVideoOrientation(context: Context, accountID: String, callID: Int, orientation: Int)
Rotates the transmitting video (heads up always), according to the device orientation.
Link copied to clipboard
open fun declineIncomingCall(context: Context, accountID: String, callID: Int)
open fun declineIncomingCall(context: Context, accountID: String, callID: Int, statusCode: Int)
Decline an incoming call.
Link copied to clipboard
open fun enableSipDebugLogging(enable: Boolean)
Enables pjsip logging (valid only for debug builds)
Link copied to clipboard
open fun getCallStatus(context: Context, accountID: String, callID: Int)
Checks the status of a call.
Link copied to clipboard
open fun getCodecPriorities(context: Context)
Requests the codec priorities.
Link copied to clipboard
open fun getRegistrationStatus(context: Context, accountID: String)
Gets the registration status for an account.
Link copied to clipboard
open fun hangUpActiveCalls(context: Context, accountID: String)
Hangs up active calls.
Link copied to clipboard
open fun hangUpCall(context: Context, accountID: String, callID: Int)
open fun hangUpCall(context: Context, accountID: String, callID: Int, statusCode: Int)
Hangs up an active call.
Link copied to clipboard
open fun holdActiveCalls(context: Context, accountID: String)
Hangs up active calls.
Link copied to clipboard
Checks whether the sip stack is started and at least a sip account is active
Link copied to clipboard
open fun makeCall(context: Context, accountID: String, numberToCall: String)
open fun makeCall(context: Context, accountID: String, numberToCall: String, isTransfer: Boolean)
open fun makeCall(context: Context, accountID: String, numberToCall: String, isVideo: Boolean, isVideoConference: Boolean)

open fun makeCall(context: Context, accountID: String, numberToCall: String, isVideo: Boolean, isVideoConference: Boolean, isTransfer: Boolean)
Makes a call.
Link copied to clipboard
open fun makeDirectCall(context: Context, guestName: String, sipUri: Uri, host: String, isVideo: Boolean, isVideoConference: Boolean)

open fun makeDirectCall(context: Context, guestName: String, sipUri: Uri, host: String, isVideo: Boolean, isVideoConference: Boolean, transport: SipAccountTransport)
Makes a Direct call.
Link copied to clipboard
open fun makeSilentCall(context: Context, accountID: String, numberToCall: String)
Makes a silent call, i.e.
Link copied to clipboard
open fun reconnectCall(context: Context)
Depending on the configuration (accountConfig.
Link copied to clipboard
open fun refreshRegistration(context: Context, accountID: String, regExpTimeout: Int, regContactParams: String)
Link copied to clipboard
open fun removeAccount(context: Context, accountID: String)
Remove a SIP account.
Link copied to clipboard
open fun restartSipStack(context: Context)
Restarts the SIP stack without restarting the service.
Link copied to clipboard
open fun sendDTMF(context: Context, accountID: String, callID: Int, dtmfTone: String)
Send DTMF.
Link copied to clipboard
open fun setAccount(context: Context, sipAccount: SipAccountData): String
Adds a new SIP account.
Link copied to clipboard
open fun setAccountWithCodecs(context: Context, sipAccount: SipAccountData, codecPriorities: ArrayList<CodecPriority>): String
Adds a new SIP account and changes the sip stack codec priority settings.
Link copied to clipboard
open fun setCallHold(context: Context, accountID: String, callID: Int, hold: Boolean)
Sets hold status for a call.
Link copied to clipboard
open fun setCallMute(context: Context, accountID: String, callID: Int, mute: Boolean)
Sets mute status for a call.
Link copied to clipboard
open fun setCameraManager(cm: CameraManager)
Sets the camera manager within the PjCamera2Info class it is used to enumerate the video devices without the CAMERA permission
Link copied to clipboard
open fun setCodecPriorities(context: Context, codecPriorities: ArrayList<CodecPriority>)
Set codec priorities.
Link copied to clipboard
open fun setDND(context: Context, dnd: Boolean)
Link copied to clipboard
open fun setupIncomingVideoFeed(context: Context, accountID: String, callID: Int, surface: Surface)
Sets up the incoming video feed.
Link copied to clipboard
open fun setVerifySipServerCert(context: Context, verify: Boolean)
Link copied to clipboard
open fun setVideoMute(context: Context, accountID: String, callID: Int, mute: Boolean)
Mutes and Un-Mutes video for a call.
Link copied to clipboard
open fun simpleRefreshRegistration(context: Context, accountID: String)
Link copied to clipboard
open fun start(context: Context)
Starts the SIP service.
Link copied to clipboard
open fun startVideoPreview(context: Context, accountID: String, callID: Int, surface: Surface)
Starts the preview for a call.
Link copied to clipboard
open fun stop(context: Context)
Stops the SIP service.
Link copied to clipboard
open fun stopVideoPreview(context: Context, accountID: String, callID: Int)
Stops the preview for a call.
Link copied to clipboard
open fun switchVideoCaptureDevice(context: Context, accountID: String, callID: Int)
Switches between front and back camera.
Link copied to clipboard
open fun toggleCallHold(context: Context, accountID: String, callID: Int)
Toggle hold status for a call.
Link copied to clipboard
open fun toggleCallMute(context: Context, accountID: String, callID: Int)
Toggle mute status for a call.
Link copied to clipboard
open fun transferCall(context: Context, accountID: String, callID: Int, number: String)
Blind call transfer.