Routing

interface Routing

Types

IGetRoutineListener
Link copied to clipboard
interface IGetRoutineListener
Interface to get a routine.

Functions

activateNomadic
Link copied to clipboard
abstract fun activateNomadic(phoneNumber: String?)
Activate the nomadic on the specified number.
activateRoutine
Link copied to clipboard
abstract fun activateRoutine(routineId: String, listener: RainbowListener<Unit, Unit>)
Activate a routine from its id.
areAllDevicesRinging
Link copied to clipboard
abstract fun areAllDevicesRinging(): Boolean
Check if all user devices are ringing for incoming calls.
cancelForward
Link copied to clipboard
abstract fun cancelForward(forwardType: ForwardType)
Cancel automatic call forwarding depending on the given ForwardType (BUSY or NO_ANSWER are only for Cloud PBX).
deactivateNomadic
Link copied to clipboard
abstract fun deactivateNomadic()
Deactivate the nomadic.
forwardToNumber
Link copied to clipboard
abstract fun forwardToNumber(number: String?, internal: Boolean, type: ForwardType)
Activate automatic call forwarding to the given number and depending on the given ForwardType (BUSY or NO_ANSWER are only for Cloud PBX).
forwardToVoiceMail
Link copied to clipboard
abstract fun forwardToVoiceMail(type: ForwardType)
Activate automatic call forwarding to the voicemail depending on the given ForwardType (BUSY or NO_ANSWER are only for Cloud PBX).
getBusyForwardStatus
Link copied to clipboard
abstract fun getBusyForwardStatus(): ForwardStatus?
Get the current Forward status, when you are busy, allowing you to know the destination of your PBX calls.
getDeviceNumber
Link copied to clipboard
abstract fun getDeviceNumber(): String?
Get the device GSM phone number (SIM1) if any and if readable.
getForwardStatus
Link copied to clipboard
abstract fun getForwardStatus(): ForwardStatus?
Get the current Forward status allowing you to know the destination of your PBX calls.
getNoAnswerForwardStatus
Link copied to clipboard
abstract fun getNoAnswerForwardStatus(): ForwardStatus?
Get the current Forward status, when you are not answering, allowing you to know the destination of your PBX calls.
getNomadicNumber
Link copied to clipboard
abstract fun getNomadicNumber(withMediapillar: Boolean): String?
Get the nomadic number to use to activate nomadic.
getNomadicStatus
Link copied to clipboard
abstract fun getNomadicStatus(): NomadicStatus?
Get the current Nomadic status allowing you to know the destination of your PBX calls.
getRoutineById
Link copied to clipboard
abstract fun getRoutineById(routineId: String, listener: Routing.IGetRoutineListener)
Get a specific routine from its id.
getRoutinesList
Link copied to clipboard
abstract fun getRoutinesList(): ArrayItemList<Routine>
Get the list of available routines.
getSelectedCliOption
Link copied to clipboard
abstract fun getSelectedCliOption(): CLIOptions?
Get the current selected CLI Options for the user.
hasMediaPillar
Link copied to clipboard
abstract fun hasMediaPillar(): Boolean
Check if the user has access to VoIP for PBX calls.
hasTelephonyServices
Link copied to clipboard
abstract fun hasTelephonyServices(): Boolean
Check if telephony services are up and running (the user will be able handle PBX calls).
modifyRoutine
Link copied to clipboard
abstract fun modifyRoutine(routine: Routine, listener: RainbowListener<Unit, Unit>)
Modify a routine.
registerCliChangeListener
Link copied to clipboard
abstract fun registerCliChangeListener(listener: RoutingMgr.ICliChangeListener)
Register a listener on the CLI options change
registerForwardStatusChangeListener
Link copied to clipboard
abstract fun registerForwardStatusChangeListener(listener: RoutingMgr.IForwardStatusChangeListener)
Register a listener on the forward change
registerNomadicStatusChangeListener
Link copied to clipboard
abstract fun registerNomadicStatusChangeListener(listener: RoutingMgr.INomadicStatusChangeListener)
Register a listener on the nomadic change
registerRingingDevicesChangeListener
Link copied to clipboard
abstract fun registerRingingDevicesChangeListener(listener: RoutingMgr.IRingingDevicesChangeListener)
Register a listener on the ringing devices change.
registerTelephonyServicesChangeListener
Link copied to clipboard
abstract fun registerTelephonyServicesChangeListener(listener: RoutingMgr.ITelephonyServicesChangeListener)
Register a listener on the telephony services change
retrieveForwardStatus
Link copied to clipboard
abstract fun retrieveForwardStatus()
Manually refresh the forward status from server.
retrieveNomadicStatus
Link copied to clipboard
abstract fun retrieveNomadicStatus()
Manually refresh the nomadic status from server for Hybrid PBX only.
selectCli
Link copied to clipboard
abstract fun selectCli(cliOption: CLIOptions)
Select the new CLI Options to use for identifying external outgoing calls.
unregisterCliChangeListener
Link copied to clipboard
abstract fun unregisterCliChangeListener(listener: RoutingMgr.ICliChangeListener)
Unregister the listener on the CLI options change
unregisterForwardStatusChangeListener
Link copied to clipboard
abstract fun unregisterForwardStatusChangeListener(listener: RoutingMgr.IForwardStatusChangeListener)
Unregister the listener on the forward change
unregisterNomadicStatusChangeListener
Link copied to clipboard
abstract fun unregisterNomadicStatusChangeListener(listener: RoutingMgr.INomadicStatusChangeListener)
Unregister the listener on the nomadic change
unregisterRingingDevicesChangeListener
Link copied to clipboard
abstract fun unregisterRingingDevicesChangeListener(listener: RoutingMgr.IRingingDevicesChangeListener)
Unregister the listener on the ringing devices change.
abstract fun unregisterTelephonyServicesChangeListener(listener: RoutingMgr.ITelephonyServicesChangeListener)
Unregister the listener on the telephony services change
updateRingingDevices
Link copied to clipboard
abstract fun updateRingingDevices(webRTCOnly: Boolean)
Update ringing devices by activating only VoIP or not.

Properties

cliOptions
Link copied to clipboard
abstract val cliOptions: List<CLIOptions>?
Get the list of all CLI Options available for the user.
isDefaultOverflowActivated
Link copied to clipboard
abstract val isDefaultOverflowActivated: Boolean
Check if the user has a default overflow activated or not (a forward for BUSY or NO_ANSWER).
isMediaPillarRegistered
Link copied to clipboard
abstract val isMediaPillarRegistered: Boolean
Check if VoIP is up and running (the user will be able handle PBX calls through VoIP).
isMultiDevicesUser
Link copied to clipboard
abstract val isMultiDevicesUser: Boolean
Check if user has more than one device or not.
isNomadicActivatedOnMediapillar
Link copied to clipboard
abstract val isNomadicActivatedOnMediapillar: Boolean
Check if the current nomadic state will let the PBX join the current device running the application through VoIP.
isNomadicActivatedOnMyMobile
Link copied to clipboard
abstract val isNomadicActivatedOnMyMobile: Boolean
Check if the current nomadic state will let the PBX join the current device running the application through VoIP or GSM.
isNomadicDeactivatedOnMyMobile
Link copied to clipboard
abstract val isNomadicDeactivatedOnMyMobile: Boolean
Check if the current nomadic state will not let the PBX join the current device running the application Always false for Cloud PBX.