|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.avaya.jtapi.tsapi.TsapiTerminalConnection
com.avaya.jtapi.tsapi.LucentTerminalConnectionImpl
com.avaya.jtapi.tsapi.LucentV5TerminalConnectionImpl
com.avaya.jtapi.tsapi.LucentV5TerminalConnectionExImpl
Field Summary |
Fields inherited from interface com.avaya.jtapi.tsapi.LucentTerminalConnection |
DR_CALL_CLASSIFIER, DR_NONE, DR_TONE_GENERATOR |
Fields inherited from interface javax.telephony.TerminalConnection |
ACTIVE, DROPPED, IDLE, PASSIVE, RINGING, UNKNOWN |
Fields inherited from interface javax.telephony.callcontrol.CallControlTerminalConnection |
BRIDGED, DROPPED, HELD, IDLE, INUSE, RINGING, TALKING, UNKNOWN |
Fields inherited from interface javax.telephony.media.MediaTerminalConnection |
AVAILABLE, NOACTIVITY, PLAYING, RECORDING, UNAVAILABLE |
Method Summary | |
void |
answer()
Answers a telephone call. |
boolean |
equals(java.lang.Object obj)
This overrides the Object classes equals method. |
void |
generateDtmf(java.lang.String digits)
|
void |
generateDtmf(java.lang.String digits,
int toneDuration,
int pauseDuration)
generateDtmf() with tone and pause duration |
int |
getCallControlState()
Returns the call control state of the TerminalConnection object. |
TerminalConnectionCapabilities |
getCapabilities()
Returns the dynamic capabilities for the instance of the TerminalConnection object. |
Connection |
getConnection()
Returns the Connection object associated with this TerminalConnection. |
int |
getMediaAvailability()
Returns the current media availability state, either AVAILABLE or UNAVAILABLE. |
int |
getMediaState()
Returns the current state of the terminal connection as a bit mask of PLAYING and RECORDING. |
java.lang.Object |
getPrivateData()
Returns some platform-specific data associated with the last method that was invoked on the object for which this PrivateData is implemented. |
int |
getState()
Returns the state of the TerminalConnection object. |
Terminal |
getTerminal()
Returns the Terminal associated with this TerminalConnection object. |
TerminalConnectionCapabilities |
getTerminalConnectionCapabilities(Terminal terminal,
Address address)
Deprecated in JTAPI v1.2. |
ConnectionID |
getTsapiConnectionID()
Retrieves the TSAPI ConnectionID associated with a JTAPI Connection or TerminalConnection. |
int |
hashCode()
|
void |
hold()
Places a TerminalConnection on hold with respect to the telephone call of which it is a part. |
void |
join()
Makes a TerminalConnection which is bridged with a telephone call active on that telephone call. |
void |
leave()
Takes a TerminalConnection which is active in a telephone call and places it back into the bridged state. |
void |
leave(short dropResource,
UserToUserInfo userInfo)
Similar to the standard leave(), with the addition of Avaya-specific parameters. |
void |
listenHold(LucentConnection partyToHold)
Places the TerminalConnection on listen-hold with respect to the specified Connection (all, if null). |
void |
listenHold(LucentTerminalConnection partyToHold)
Places the TerminalConnection on listen-hold with respect to the specified TerminalConnection (all, if null). |
void |
listenUnhold(LucentConnection partyToUnhold)
Takes the TerminalConnection off listen-hold with respect to the specified Connection (all, if null). |
void |
listenUnhold(LucentTerminalConnection partyToUnhold)
Takes the TerminalConnection off listen-hold with respect to the specified TerminalConnection (all, if null). |
java.lang.Object |
sendPrivateData(java.lang.Object data)
Immediately performs some platform-specific action. |
void |
setDtmfDetection(boolean enable)
|
void |
setPrivateData(java.lang.Object data)
Associates some platform-specific data with the next method that is invoked on the object for which this interface is implemented. |
void |
startPlaying()
Start the playing. |
void |
startRecording()
Start the recording. |
void |
stopPlaying()
Stop the playing. |
void |
stopRecording()
Stop the recording. |
void |
unhold()
Takes a TerminalConnection off hold with respect to the telephone call of which it is a part. |
void |
useDefaultMicrophone()
Instructs the terminal connection to use the default microphone for playing to the telephone line. |
void |
useDefaultSpeaker()
Instructs the terminal connection to use the default speaker for recording from the telephone line. |
void |
usePlayURL(java.net.URL url)
Instructs the terminal connection to use a file for playing to the telephone line. |
void |
useRecordURL(java.net.URL url)
Instructs the terminal connection to use a file for recording from the telephone line. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.avaya.jtapi.tsapi.LucentV5TerminalConnectionEx |
generateDtmf |
Methods inherited from interface com.avaya.jtapi.tsapi.LucentV5TerminalConnection |
listenHold, listenHold, listenUnhold, listenUnhold |
Methods inherited from interface com.avaya.jtapi.tsapi.LucentTerminalConnection |
leave |
Methods inherited from interface javax.telephony.TerminalConnection |
answer, getCapabilities, getConnection, getState, getTerminal, getTerminalConnectionCapabilities |
Methods inherited from interface javax.telephony.callcontrol.CallControlTerminalConnection |
getCallControlState, hold, join, leave, unhold |
Methods inherited from interface javax.telephony.media.MediaTerminalConnection |
generateDtmf, getMediaAvailability, getMediaState, setDtmfDetection, startPlaying, startRecording, stopPlaying, stopRecording, useDefaultMicrophone, useDefaultSpeaker, usePlayURL, useRecordURL |
Method Detail |
public boolean equals(java.lang.Object obj)
public final int getState()
getState
in interface TerminalConnection
public final Terminal getTerminal()
getTerminal
in interface TerminalConnection
public final Connection getConnection()
getConnection
in interface TerminalConnection
public final void answer() throws TsapiPrivilegeViolationException, TsapiResourceUnavailableException, TsapiMethodNotSupportedException, TsapiInvalidStateException
answer
in interface TerminalConnection
TsapiPrivilegeViolationException
TsapiResourceUnavailableException
TsapiMethodNotSupportedException
TsapiInvalidStateException
TerminalConnectionListener
,
ConnectionListener
,
TerminalConnectionEvent
,
ConnectionEvent
public final TerminalConnectionCapabilities getCapabilities()
TerminalConnection
The dynamic TerminalConnection capabilities require no additional arguments.
getCapabilities
in interface TerminalConnection
public final TerminalConnectionCapabilities getTerminalConnectionCapabilities(Terminal terminal, Address address) throws InvalidArgumentException, PlatformException
getTerminalConnectionCapabilities
in interface TerminalConnection
address
- This argument is ignored in JTAPI v1.2 and later.terminal
- This argument is ignored in JTAPI v1.2 and later.
PlatformException
- A platform-specific exception occurred.
InvalidArgumentException
- This exception is never thrown in
JTAPI v1.2 and later.public final int getCallControlState()
getCallControlState
in interface CallControlTerminalConnection
public final void hold() throws TsapiInvalidStateException, TsapiMethodNotSupportedException, TsapiPrivilegeViolationException, TsapiResourceUnavailableException
hold
in interface CallControlTerminalConnection
TsapiInvalidStateException
TsapiMethodNotSupportedException
TsapiPrivilegeViolationException
TsapiResourceUnavailableException
CallCtlTermConnHeldEv
public final void unhold() throws TsapiInvalidStateException, TsapiMethodNotSupportedException, TsapiPrivilegeViolationException, TsapiResourceUnavailableException
unhold
in interface CallControlTerminalConnection
TsapiInvalidStateException
TsapiMethodNotSupportedException
TsapiPrivilegeViolationException
TsapiResourceUnavailableException
CallCtlTermConnTalkingEv
public final void listenHold(LucentTerminalConnection partyToHold) throws TsapiInvalidStateException, TsapiInvalidArgumentException, TsapiMethodNotSupportedException, TsapiPrivilegeViolationException, TsapiResourceUnavailableException
TsapiInvalidStateException
TsapiInvalidArgumentException
TsapiMethodNotSupportedException
TsapiPrivilegeViolationException
TsapiResourceUnavailableException
public final void listenUnhold(LucentTerminalConnection partyToUnhold) throws TsapiInvalidStateException, TsapiInvalidArgumentException, TsapiMethodNotSupportedException, TsapiPrivilegeViolationException, TsapiResourceUnavailableException
TsapiInvalidStateException
TsapiInvalidArgumentException
TsapiMethodNotSupportedException
TsapiPrivilegeViolationException
TsapiResourceUnavailableException
public final void listenHold(LucentConnection partyToHold) throws TsapiInvalidStateException, TsapiInvalidArgumentException, TsapiMethodNotSupportedException, TsapiPrivilegeViolationException, TsapiResourceUnavailableException
TsapiInvalidStateException
TsapiInvalidArgumentException
TsapiMethodNotSupportedException
TsapiPrivilegeViolationException
TsapiResourceUnavailableException
public final void listenUnhold(LucentConnection partyToUnhold) throws TsapiInvalidStateException, TsapiInvalidArgumentException, TsapiMethodNotSupportedException, TsapiPrivilegeViolationException, TsapiResourceUnavailableException
TsapiInvalidStateException
TsapiInvalidArgumentException
TsapiMethodNotSupportedException
TsapiPrivilegeViolationException
TsapiResourceUnavailableException
public final void join() throws TsapiInvalidStateException, TsapiMethodNotSupportedException, TsapiPrivilegeViolationException, TsapiResourceUnavailableException
join
in interface CallControlTerminalConnection
TsapiInvalidStateException
TsapiMethodNotSupportedException
TsapiPrivilegeViolationException
TsapiResourceUnavailableException
TermConnActiveEv
,
CallCtlTermConnTalkingEv
public final void leave() throws TsapiInvalidStateException, TsapiMethodNotSupportedException, TsapiPrivilegeViolationException, TsapiResourceUnavailableException
leave
in interface CallControlTerminalConnection
TsapiInvalidStateException
TsapiMethodNotSupportedException
TsapiPrivilegeViolationException
TsapiResourceUnavailableException
TermConnPassiveEv
,
TermConnDroppedEv
,
ConnDisconnectedEv
,
CallCtlTermConnBridgedEv
,
CallCtlTermConnDroppedEv
,
CallCtlConnDisconnectedEv
public final void leave(short dropResource, UserToUserInfo userInfo) throws TsapiInvalidStateException, TsapiMethodNotSupportedException, TsapiPrivilegeViolationException, TsapiResourceUnavailableException
TsapiInvalidStateException
TsapiMethodNotSupportedException
TsapiPrivilegeViolationException
TsapiResourceUnavailableException
public final void generateDtmf(java.lang.String digits) throws TsapiMethodNotSupportedException, TsapiResourceUnavailableException, TsapiInvalidStateException
generateDtmf
in interface MediaTerminalConnection
TsapiMethodNotSupportedException
TsapiResourceUnavailableException
TsapiInvalidStateException
public final void generateDtmf(java.lang.String digits, int toneDuration, int pauseDuration) throws TsapiMethodNotSupportedException, TsapiResourceUnavailableException, TsapiInvalidStateException
TsapiMethodNotSupportedException
TsapiResourceUnavailableException
TsapiInvalidStateException
public final int getMediaAvailability()
MediaTerminalConnection
getMediaAvailability
in interface MediaTerminalConnection
public final int getMediaState()
MediaTerminalConnection
MediaTerminalConnection.NOACTIVITY
.
getMediaState
in interface MediaTerminalConnection
public final void useDefaultSpeaker() throws TsapiMethodNotSupportedException
MediaTerminalConnection
useDefaultSpeaker
in interface MediaTerminalConnection
TsapiMethodNotSupportedException
public final void useRecordURL(java.net.URL url) throws TsapiMethodNotSupportedException
MediaTerminalConnection
useRecordURL
in interface MediaTerminalConnection
url
- The URL-destination for the voice data for recording.
TsapiMethodNotSupportedException
public final void useDefaultMicrophone() throws TsapiMethodNotSupportedException
MediaTerminalConnection
useDefaultMicrophone
in interface MediaTerminalConnection
TsapiMethodNotSupportedException
public final void usePlayURL(java.net.URL url) throws TsapiMethodNotSupportedException
MediaTerminalConnection
usePlayURL
in interface MediaTerminalConnection
url
- The URL-source of the voice data to play.
valid or available source of voice data.
TsapiMethodNotSupportedException
public final void startPlaying() throws TsapiMethodNotSupportedException
MediaTerminalConnection
startPlaying
in interface MediaTerminalConnection
TsapiMethodNotSupportedException
public final void stopPlaying()
MediaTerminalConnection
stopPlaying
in interface MediaTerminalConnection
public final void startRecording() throws TsapiMethodNotSupportedException
MediaTerminalConnection
startRecording
in interface MediaTerminalConnection
TsapiMethodNotSupportedException
public final void stopRecording()
MediaTerminalConnection
stopRecording
in interface MediaTerminalConnection
public final void setDtmfDetection(boolean enable) throws TsapiMethodNotSupportedException
setDtmfDetection
in interface MediaTerminalConnection
TsapiMethodNotSupportedException
public final void setPrivateData(java.lang.Object data)
PrivateData
setPrivateData
in interface PrivateData
data
- The platform-dependent data.public final java.lang.Object getPrivateData()
PrivateData
getPrivateData
in interface PrivateData
public final java.lang.Object sendPrivateData(java.lang.Object data)
PrivateData
sendPrivateData
in interface PrivateData
data
- The platform-dependent data.
public final ConnectionID getTsapiConnectionID()
ITsapiConnIDPrivate
getTsapiConnectionID
in interface ITsapiConnIDPrivate
ConnectionID
public final int hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |