📄 java.telephony.callcontrol.callcontrolconnection.html
字号:
<!--NewPage--><html><head><!-- Generated by javadoc on Fri Feb 07 16:42:30 PST 1997 --><a name="_top_"></a><title> Interface java.telephony.callcontrol.CallControlConnection</title></head><body><pre><a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-java.telephony.callcontrol.html">This Package</a> <a href="java.telephony.callcontrol.CallControlCallObserver.html#_top_">Previous</a> <a href="java.telephony.callcontrol.CallControlTerminal.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre><hr><h1> Interface java.telephony.callcontrol.CallControlConnection</h1><dl> <dt> public interface <b>CallControlConnection</b> <dt> extends <a href="java.lang.Object.html#_top_">Object</a> <dt> extends <a href="java.telephony.Connection.html#_top_">Connection</a></dl>The CallControlConnection interface extends the core Connection interface.The CallControlConnection interface provides greater details about thestate of the Connection object. For many of the core Connection objectstates, the CallControlConnection interfaces often provides several sub-states of the core states. These sub-states provide more information toapplication about what is going on. The method getCallControlState() returnsthis more detailed state. Typically, applications with either monitorthe core Connection states or the CallControlConnection states.<p>The Connection states presented by this interface are: IDLE, OFFERING,QUEUED, NETWORK_REACHED, NETWORK_ALERTING, ALERTING, INITIATED, DIALING, ESTABLISHED, DISCONNECTED, FAILED, BUSY, UNKNOWN.<p>The real-world definitions for these states follow. Note that thesedefinitions are not technical nor absolute, however, they give an ideato the reader about what these states means:<p>The IDLE state is defined similiarly here as it is in the core. The IDLEstate is the initial and transitory state for new Connection objects.<p>The OFFERING state is particular to ISDN and indicates that a Call isbeing offered. Typically, applications must accept or reject this offeredcall.<p>The QUEUED state indicates that a Connection is queued at a particularaddress. This may result when someone enables the queueing mechanism onan address and the address is busy when a telephone call comes in.<p>The NETWORK_REACHED state indicates that the outgoing telephone call hasreached the network, however, further events may not be received. It isup to the application whether to treat this as a connected call.<p>The NETWORK_ALERTING state indicates that the outgoing telephone call haspreviously reached the network, however, further information obtained fromthe switch indicates that this call is now alerting at some destinationendpoint.<p>The ALERTING state has the same definition as in the core.<p>The INITIATED state indicates that an originating Connection's telephoneis off-hook, however, dialing has not yet begun.<p>The DIALING state applies to originating Connections and indicates thatthe process of dialing has begun but has not yet completed.<p>The ESTABLISHED state has a similar definition as CONNECTED does in the core.It indicates that a Connection has reached its final active state in thecall.<p>The DISCONNECTED state has the same definition as in the core.<p>The FAILED state has the same definition as in the core.<p>The UNKNOWN state has the same definition as in the core.<p>These CallControlConnection states are defined in terms of the coreConnection states. In other words, if the core Connection is in a particularstate, then the CallControlConnection must be in one of possible severalstates. This relationship is defined below, where the core Connection statesare on the left, and the CallControlConnection states are on the right.<p><UL><LI>IDLE ---> IDLE<LI>INPROGRESS ---> QUEUED, OFFERING<LI>ALERTING ---> ALERTING<LI>CONNECTED ---> INITIATED, DIALING, NETWORK_REACHED, NETWORK_ALERTING, ESTABLISHED <LI>DISCONNECTED ---> DISCONNECTED<LI>FAILED ---> FAILED<LI>UNKNOWN ---> UNKNOWN</UL><hr><a name="index"></a><h2> <img src="images/variable-index.gif" width=207 height=38 alt="Variable Index"></h2><dl> <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o "> <a href="#ALERTING"><b>ALERTING</b></a> <dd> The ALERTING state variable. <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o "> <a href="#DIALING"><b>DIALING</b></a> <dd> The DIALING state variable. <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o "> <a href="#DISCONNECTED"><b>DISCONNECTED</b></a> <dd> The DISCONNECTED state variable. <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o "> <a href="#ESTABLISHED"><b>ESTABLISHED</b></a> <dd> The ESTABLISHED state variable. <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o "> <a href="#FAILED"><b>FAILED</b></a> <dd> The FAILED state variable. <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o "> <a href="#IDLE"><b>IDLE</b></a> <dd> The IDLE state variable. <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o "> <a href="#INITIATED"><b>INITIATED</b></a> <dd> The INITIATED state variable. <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o "> <a href="#NETWORK_ALERTING"><b>NETWORK_ALERTING</b></a> <dd> the NETWORK_ALERTING state variable. <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o "> <a href="#NETWORK_REACHED"><b>NETWORK_REACHED</b></a> <dd> The NETWORK_REACHED state variable. <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o "> <a href="#OFFERING"><b>OFFERING</b></a> <dd> The OFFERING state variable. <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o "> <a href="#QUEUED"><b>QUEUED</b></a> <dd> The QUEUED state variable. <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o "> <a href="#UNKNOWN"><b>UNKNOWN</b></a> <dd> The UNKNOWN state variable.</dl><h2> <img src="images/method-index.gif" width=207 height=38 alt="Method Index"></h2><dl> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#accept()"><b>accept</b></a>() <dd> Accepts a telephone call. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#addToAddress(java.lang.String)"><b>addToAddress</b></a>(String) <dd> Appends additional address information onto an existing Connection. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getCallControlState()"><b>getCallControlState</b></a>() <dd> Returns the current CallControl state of the Connection. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#park(java.lang.String)"><b>park</b></a>(String) <dd> Parks an active Connection to another Address. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#redirect(java.lang.String)"><b>redirect</b></a>(String) <dd> Redirects a telephone call to another telephone number. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#reject()"><b>reject</b></a>() <dd> Rejects a telephone call.</dl><a name="variables"></a><h2> <img src="images/variables.gif" width=153 height=38 alt="Variables"></h2><a name="IDLE"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>IDLE</b><pre> public final static int IDLE</pre><dl> <dd> The IDLE state variable.</dl><a name="OFFERING"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>OFFERING</b><pre> public final static int OFFERING</pre><dl> <dd> The OFFERING state variable.</dl><a name="QUEUED"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>QUEUED</b><pre> public final static int QUEUED</pre><dl> <dd> The QUEUED state variable.</dl><a name="ALERTING"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>ALERTING</b><pre> public final static int ALERTING</pre><dl> <dd> The ALERTING state variable.</dl><a name="INITIATED"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>INITIATED</b><pre> public final static int INITIATED</pre><dl> <dd> The INITIATED state variable.</dl><a name="DIALING"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>DIALING</b><pre> public final static int DIALING</pre><dl> <dd> The DIALING state variable.</dl><a name="NETWORK_REACHED"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>NETWORK_REACHED</b><pre> public final static int NETWORK_REACHED</pre><dl> <dd> The NETWORK_REACHED state variable.</dl><a name="NETWORK_ALERTING"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>NETWORK_ALERTING</b><pre> public final static int NETWORK_ALERTING</pre><dl> <dd> the NETWORK_ALERTING state variable.</dl><a name="ESTABLISHED"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>ESTABLISHED</b><pre> public final static int ESTABLISHED</pre><dl> <dd> The ESTABLISHED state variable.</dl><a name="DISCONNECTED"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>DISCONNECTED</b><pre> public final static int DISCONNECTED</pre><dl> <dd> The DISCONNECTED state variable.</dl><a name="FAILED"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>FAILED</b><pre> public final static int FAILED</pre><dl> <dd> The FAILED state variable.</dl><a name="UNKNOWN"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>UNKNOWN</b><pre> public final static int UNKNOWN</pre><dl> <dd> The UNKNOWN state variable.</dl><a name="methods"></a><h2> <img src="images/methods.gif" width=151 height=38 alt="Methods"></h2><a name="getCallControlState()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getCallControlState"><b>getCallControlState</b></a><pre> public abstract int getCallControlState() throws <a href="java.telephony.PlatformException.html#_top_">PlatformException</a></pre><dl> <dd> Returns the current CallControl state of the Connection. The return valuewill be one of states defined above.<p> <dl> <dt> <b>Returns:</b> <dd> The current CallControl state of the Connection. <dt> <b>Throws:</b> <a href="java.telephony.PlatformException.html#_top_">PlatformException</a> <dd> A platform-specific exception occurred. </dl></dl><a name="accept()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="accept"><b>accept</b></a><pre> public abstract void accept() throws <a href="java.telephony.InvalidStateException.html#_top_">InvalidStateException</a>, <a href="java.telephony.MethodNotSupportedException.html#_top_">MethodNotSupportedException</a>, <a href="java.telephony.PrivilegeViolationException.html#_top_">PrivilegeViolationException</a>, <a href="java.telephony.ResourceUnavailableException.html#_top_">ResourceUnavailableException</a>, <a href="java.telephony.PlatformException.html#_top_">PlatformException</a></pre><dl>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -