|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.service.protocol.event.CallPeerAdapter
net.java.sip.communicator.impl.protocol.sip.OperationSetAutoAnswerSipImpl
public class OperationSetAutoAnswerSipImpl
An Operation Set defining options to auto answer/forward incoming calls. Forward calls to specified number using same provider. Auto answering calls unconditional, on existence of certain header name, or on existence of specified header name and value.
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.protocol.OperationSetBasicAutoAnswer |
|---|
AUTO_ANSWER_UNCOND_PROP |
| Fields inherited from interface net.java.sip.communicator.service.protocol.OperationSetAdvancedAutoAnswer |
|---|
AUTO_ANSWER_COND_NAME_PROP, AUTO_ANSWER_COND_VALUE_PROP, AUTO_ANSWER_FWD_NUM_PROP |
| Constructor Summary | |
|---|---|
OperationSetAutoAnswerSipImpl(OperationSetBasicTelephonySipImpl telephonySip)
Creates this operation set, loads stored values, populating local variable settings. |
|
| Method Summary | |
|---|---|
void |
clear()
Clear any previous settings. |
(package private) boolean |
followCallCheck(javax.sip.message.Request invite,
CallSipImpl call)
Makes a check after creating call locally, should we answer it. |
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 |
peerStateChanged(CallPeerChangeEvent evt)
If we peer was not in proper state wait for it and then answer. |
(package private) boolean |
preCallCheck(javax.sip.message.Request invite,
javax.sip.ServerTransaction serverTransaction)
Makes a check before locally creating call, should we just forward it. |
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. |
| Methods inherited from class net.java.sip.communicator.service.protocol.event.CallPeerAdapter |
|---|
peerAddressChanged, peerDisplayNameChanged, peerImageChanged, peerTransportAddressChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
OperationSetAutoAnswerSipImpl(OperationSetBasicTelephonySipImpl telephonySip)
telephonySip - the parent opset.| Method Detail |
|---|
public void setAutoAnswerUnconditional()
setAutoAnswerUnconditional in interface OperationSetBasicAutoAnswerpublic boolean isAutoAnswerUnconditionalSet()
isAutoAnswerUnconditionalSet in interface OperationSetBasicAutoAnswer
public void setAutoAnswerCondition(String headerName,
String value)
setAutoAnswerCondition in interface OperationSetAdvancedAutoAnswerheaderName - the name of the header to searchvalue - the value for the header, can be null.public boolean isAutoAnswerConditionSet()
isAutoAnswerConditionSet in interface OperationSetAdvancedAutoAnswerpublic void setCallForward(String numberTo)
setCallForward in interface OperationSetAdvancedAutoAnswernumberTo - number to use for forwardingpublic String getCallForward()
getCallForward in interface OperationSetAdvancedAutoAnswerpublic void clear()
clear in interface OperationSetAdvancedAutoAnswerclear in interface OperationSetBasicAutoAnswerpublic String getAutoAnswerHeaderName()
getAutoAnswerHeaderName in interface OperationSetAdvancedAutoAnswerpublic String getAutoAnswerHeaderValue()
getAutoAnswerHeaderValue in interface OperationSetAdvancedAutoAnswer
boolean preCallCheck(javax.sip.message.Request invite,
javax.sip.ServerTransaction serverTransaction)
invite - the current invite to check.serverTransaction - the transaction.
boolean followCallCheck(javax.sip.message.Request invite,
CallSipImpl call)
invite - the current invite to check.call - the created call to answer if needed.
public void peerStateChanged(CallPeerChangeEvent evt)
peerStateChanged in interface CallPeerListenerpeerStateChanged in class CallPeerAdapterevt - the CallPeerChangeEvent instance containing the
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||