Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.protocol
Interface OperationSetAutoAnswer

All Superinterfaces:
OperationSet
All Known Implementing Classes:
OperationSetAutoAnswerSipImpl

public interface OperationSetAutoAnswer
extends OperationSet

An Operation Set defining options to auto answer/forward incoming calls.

Author:
Damian Minkov

Field Summary
static String AUTO_ANSWER_COND_NAME_PROP
          Auto answer conditional account property - field name.
static String AUTO_ANSWER_COND_VALUE_PROP
          Auto answer conditional account property - field value.
static String AUTO_ANSWER_FWD_NUM_PROP
          Auto forward all calls account property.
static String AUTO_ANSWER_UNCOND_PROP
          Auto answer unconditional account property.
 
Method Summary
 void clear()
          Clear any previous settings.
 String getAutoAnswerHeaderName()
          Returns the name of the header if conditional auto answer is set.
 String getAutoAnswerHeaderValue()
          Returns the value of the header for the conditional auto answer.
 String getCallForward()
          Get the value for automatically forward all calls to the specified number using the same provider..
 boolean isAutoAnswerConditionSet()
          Is the auto answer option set to conditionally answer all incoming calls.
 boolean isAutoAnswerUnconditionalSet()
          Is the auto answer option set to unconditionally answer all incoming calls.
 void setAutoAnswerCondition(String headerName, String value)
          Sets a specified header and its value if they exist in the incoming call packet this will activate auto answer.
 void setAutoAnswerUnconditional()
          Sets the auto answer option to unconditionally answer all incoming calls.
 void setCallForward(String numberTo)
          Set to automatically forward all calls to the specified number using the same provider.
 

Field Detail

AUTO_ANSWER_UNCOND_PROP

static final String AUTO_ANSWER_UNCOND_PROP
Auto answer unconditional account property.

See Also:
Constant Field Values

AUTO_ANSWER_COND_NAME_PROP

static final String AUTO_ANSWER_COND_NAME_PROP
Auto answer conditional account property - field name.

See Also:
Constant Field Values

AUTO_ANSWER_COND_VALUE_PROP

static final String AUTO_ANSWER_COND_VALUE_PROP
Auto answer conditional account property - field value.

See Also:
Constant Field Values

AUTO_ANSWER_FWD_NUM_PROP

static final String AUTO_ANSWER_FWD_NUM_PROP
Auto forward all calls account property.

See Also:
Constant Field Values
Method Detail

setAutoAnswerUnconditional

void setAutoAnswerUnconditional()
Sets the auto answer option to unconditionally answer all incoming calls.


isAutoAnswerUnconditionalSet

boolean isAutoAnswerUnconditionalSet()
Is the auto answer option set to unconditionally answer all incoming calls.

Returns:
is auto answer set to unconditional.

setAutoAnswerCondition

void setAutoAnswerCondition(String headerName,
                            String value)
Sets a specified header and its value if they exist in the incoming call packet this will activate auto answer. If value is empty or null it will be considered as any (will search only for a header with that name and ignore the value)

Parameters:
headerName - the name of the header to search
value - the value for the header, can be null.

isAutoAnswerConditionSet

boolean isAutoAnswerConditionSet()
Is the auto answer option set to conditionally answer all incoming calls.

Returns:
is auto answer set to conditional.

getAutoAnswerHeaderName

String getAutoAnswerHeaderName()
Returns the name of the header if conditional auto answer is set.

Returns:
the name of the header if conditional auto answer is set.

getAutoAnswerHeaderValue

String getAutoAnswerHeaderValue()
Returns the value of the header for the conditional auto answer.

Returns:
the value of the header for the conditional auto answer.

setCallForward

void setCallForward(String numberTo)
Set to automatically forward all calls to the specified number using the same provider.

Parameters:
numberTo - number to use for forwarding

getCallForward

String getCallForward()
Get the value for automatically forward all calls to the specified number using the same provider..

Returns:
numberTo number to use for forwarding

clear

void clear()
Clear any previous settings.


Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.