Interface ISoftPhone
- All Superinterfaces:
IDisposable, IEntity
Represents a soft phone.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRegisters the SoftPhoneAllowedOperationsChangedListener.voidRegisters the SoftPhoneMutedChangedListener.voidRegisters the SoftPhoneSpeakerVolumeChangedListener.voidchangeSpeakerVolume(SoftPhoneSpeakerVolumeChange volumeChange) Increments or decrements the speaker volume.voidHang up calls during the dialing phase, allowing the agent to react to network messages.getAgent()The agent associated with the soft phone.Operations that can be performed.booleanTrue if the soft phone is enabled.booleangetMuted()If true, the microphone is muted.intSpeaker volume as a percentage, with 0 being no sound and 100 being full volume.getUrl()Gets the URL of the SoftPhone object in the IntegrationServer.voidUnregisters the SoftPhoneAllowedOperationsChangedListener.voidUnregisters the SoftPhoneMutedChangedListener.voidUnregisters the SoftPhoneSpeakerVolumeChangedListener.voidsetMuted(boolean muted) Set the microphone to muted or not muted.voidsetSpeakerVolume(int volume) Sets the speaker volume as a percentage, with 0 being no sound and 100 being full volume.Methods inherited from interface IDisposable
addDisposedListener, removeDisposedListenerMethods inherited from interface IEntity
getUserContext, setUserContext
-
Method Details
-
addSoftPhoneAllowedOperationsChangedListener
void addSoftPhoneAllowedOperationsChangedListener(SoftPhoneAllowedOperationsChangedListener listener) Registers the SoftPhoneAllowedOperationsChangedListener.- Parameters:
listener- Event listener to add.
-
removeSoftPhoneAllowedOperationsChangedListener
void removeSoftPhoneAllowedOperationsChangedListener(SoftPhoneAllowedOperationsChangedListener listener) Unregisters the SoftPhoneAllowedOperationsChangedListener.- Parameters:
listener- Event listener to remove.
-
addSoftPhoneMutedChangedListener
Registers the SoftPhoneMutedChangedListener.- Parameters:
listener- Event listener to add.
-
removeSoftPhoneMutedChangedListener
Unregisters the SoftPhoneMutedChangedListener.- Parameters:
listener- Event listener to remove.
-
addSoftPhoneSpeakerVolumeChangedListener
Registers the SoftPhoneSpeakerVolumeChangedListener.- Parameters:
listener- Event listener to add.
-
removeSoftPhoneSpeakerVolumeChangedListener
Unregisters the SoftPhoneSpeakerVolumeChangedListener.- Parameters:
listener- Event listener to remove.
-
changeSpeakerVolume
void changeSpeakerVolume(SoftPhoneSpeakerVolumeChange volumeChange) throws Exception, altitude.integrationServer.exceptions.ISException Increments or decrements the speaker volume.- Parameters:
volumeChange- Type of volume change.Since the value is updated asynchronously, an immediate call to the
SpeakerVolumeproperty can return the former value.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
forceHangUp
-
getAgent
-
getAllowedOperations
SoftPhoneCanDo getAllowedOperations() throws Exception, altitude.integrationServer.exceptions.ISExceptionOperations that can be performed.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getEnabled
-
getMuted
-
getSpeakerVolume
-
setMuted
Set the microphone to muted or not muted.- Parameters:
muted- If true, set the microphone to muted.Since the value is updated asynchronously, an immediate call to the
Mutedproperty can return the former value.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
setSpeakerVolume
void setSpeakerVolume(int volume) throws Exception, altitude.integrationServer.exceptions.ISException Sets the speaker volume as a percentage, with 0 being no sound and 100 being full volume. If the supplied value is outside of the range then the nearest valid value will be used.- Parameters:
volume- The value of the volume.Since the value is updated asynchronously, an immediate call to the
SpeakerVolumeproperty can return the former value.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getUrl
-