public class OperationSetTelephonyBLFSipImpl extends java.lang.Object implements OperationSetTelephonyBLF, RegistrationStateChangeListener
OperationSetTelephonyBLF.Line
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BLF_ENABLED_ACC_PROP
Account property to enable/disable OperationSetTelephonyBLF.
|
static java.lang.String |
BLF_LINE_ACC_PROP_PREFIX
Account property prefix to set/provision monitored lines.
|
static java.lang.String |
BLF_LINE_ADDR_ACC_PROP_SUFFIX
Account property suffix to set/provision monitored line address.
|
static java.lang.String |
BLF_LINE_GROUP_ACC_PROP_PREFIX
Account property suffix to set/provision monitored line group.
|
static java.lang.String |
BLF_LINE_NAME_ACC_PROP_PREFIX
Account property suffix to set/provision monitored line display name.
|
static java.lang.String |
BLF_LINE_PICKUP_ACC_PROP_PREFIX
Account property suffix to set/provision monitored line pickup template.
|
(package private) static java.lang.String |
EVENT_PACKAGE
The name of the event package supported by
BLFServiceImpl in SUBSCRIBE
and NOTIFY requests.
|
Constructor and Description |
---|
OperationSetTelephonyBLFSipImpl(ProtocolProviderServiceSipImpl provider)
Constructs the operations set and initializes the monitored lines.
|
Modifier and Type | Method and Description |
---|---|
void |
addStatusListener(BLFStatusListener listener)
Adds BLFStatus listener
|
(package private) org.w3c.dom.Document |
convertDocument(byte[] document)
Convert a xml document
|
java.util.List<OperationSetTelephonyBLF.Line> |
getCurrentlyMonitoredLines()
List of currently monitored lines.
|
void |
pickup(OperationSetTelephonyBLF.Line line)
To pickup the call for the monitored line if possible.
|
void |
registrationStateChanged(RegistrationStateChangeEvent evt)
The method is called by a ProtocolProviderService implementation
whenever a change in its registration state has occurred.
|
void |
removeStatusListener(BLFStatusListener listener)
Removes BLFStatus listener.
|
public static final java.lang.String BLF_ENABLED_ACC_PROP
public static final java.lang.String BLF_LINE_ACC_PROP_PREFIX
public static final java.lang.String BLF_LINE_ADDR_ACC_PROP_SUFFIX
public static final java.lang.String BLF_LINE_NAME_ACC_PROP_PREFIX
public static final java.lang.String BLF_LINE_GROUP_ACC_PROP_PREFIX
public static final java.lang.String BLF_LINE_PICKUP_ACC_PROP_PREFIX
static final java.lang.String EVENT_PACKAGE
public OperationSetTelephonyBLFSipImpl(ProtocolProviderServiceSipImpl provider)
provider
- public void addStatusListener(BLFStatusListener listener)
addStatusListener
in interface OperationSetTelephonyBLF
listener
- the listener to add.public void removeStatusListener(BLFStatusListener listener)
removeStatusListener
in interface OperationSetTelephonyBLF
listener
- the listener to remove.public void pickup(OperationSetTelephonyBLF.Line line) throws OperationFailedException
pickup
in interface OperationSetTelephonyBLF
line
- to try to pick up.OperationFailedException
- if line address is not valid.public java.util.List<OperationSetTelephonyBLF.Line> getCurrentlyMonitoredLines()
getCurrentlyMonitoredLines
in interface OperationSetTelephonyBLF
public void registrationStateChanged(RegistrationStateChangeEvent evt)
RegistrationStateChangeListener
registrationStateChanged
in interface RegistrationStateChangeListener
evt
- a RegistrationStateChangeEvent which describes the
registration state change.org.w3c.dom.Document convertDocument(byte[] document)
document
- the document as a String
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.