⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 java.telephony.callcontrol.callcontrolconnection.html

📁 JTAPI_html 用于JTAPI的HTML文档.
💻 HTML
📖 第 1 页 / 共 2 页
字号:
  <dd> Accepts a telephone call. This method is associated most commonlywith ISDN-type protocols which support the OFFERING state. Incomingtelephony calls are sometimes first "offered" to an address foracceptance. Only after a call is accepted does the standard notionsof alerting take place. This method returns successfully when thecall has been accepted and this Connection has moved into the ALERTINGstate, otherwise an exception is thrown to signal an error.<p>This Connection object must be in the OFFERING state. The Provider mustalso be IN_SERVICE. These pre-conditions are given below:<p><OL><LI>((this.getCall()).getProvider()).getState() == IN_SERVICE<LI>this.getCallControlState() == OFFERING.</OL><p>The post-conditions are given below:<OL><LI>((this.getCall()).getProvider()).getState() == IN_SERVICE<LI>this.getCallControlState() == ALERTING.</OL><p>  <dl>    <dt> <b>Throws:</b> <a href="java.telephony.InvalidStateException.html#_top_">InvalidStateException</a>    <dd> The state of some object is not validas designated by the pre-conditions for this method.    <dt> <b>Throws:</b> <a href="java.telephony.MethodNotSupportedException.html#_top_">MethodNotSupportedException</a>    <dd> This method is not supported bythe implementation.    <dt> <b>Throws:</b> <a href="java.telephony.PrivilegeViolationException.html#_top_">PrivilegeViolationException</a>    <dd> The application does not havethe proper authority to invoke this method.    <dt> <b>Throws:</b> <a href="java.telephony.ResourceUnavailableException.html#_top_">ResourceUnavailableException</a>    <dd> An internal resource neccessaryfor the successful invocation of this method is not available.    <dt> <b>Throws:</b> <a href="java.telephony.PlatformException.html#_top_">PlatformException</a>    <dd> A platform-specific exception occurred.  </dl></dl><a name="reject()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="reject"><b>reject</b></a><pre>  public abstract void reject() 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>  <dd> Rejects a telephone call. This method is associated most commonlywith ISDN-type protocols which support the OFFERING state. Incomingtelephony calls are sometimes first "offered" to an address foracceptance. Only after a call is accepted does the standard notionsof alerting take place. A call may also be rejected, where the calldoes not proceed to the alerting stage. This method returns whenthis Connection successfully moves into the DISCONNECTED state, otherwise,an exception is thrown to signal an error.<p>This Connection object must be in OFFERING state. The Provider mustalso be IN_SERVICE. These pre-conditions are given below:<p><OL><LI>((this.getCall()).getProvider()).getState() == IN_SERVICE<LI>this.getCallControlState() == OFFERING.</OL><p>The post-conditions are given below:<OL><LI>((this.getCall()).getProvider()).getState() == IN_SERVICE<LI>this.getCallControlState() == DISCONNECTED.</OL><p>  <dl>    <dt> <b>Throws:</b> <a href="java.telephony.InvalidStateException.html#_top_">InvalidStateException</a>    <dd> The state of some object is not validas designated by the pre-conditions for this method.    <dt> <b>Throws:</b> <a href="java.telephony.MethodNotSupportedException.html#_top_">MethodNotSupportedException</a>    <dd> This method is not supported bythe implementation.    <dt> <b>Throws:</b> <a href="java.telephony.PrivilegeViolationException.html#_top_">PrivilegeViolationException</a>    <dd> The application does not havethe proper authority to invoke this method.    <dt> <b>Throws:</b> <a href="java.telephony.ResourceUnavailableException.html#_top_">ResourceUnavailableException</a>    <dd> An internal resource neccessaryfor the successful invocation of this method is not available.    <dt> <b>Throws:</b> <a href="java.telephony.PlatformException.html#_top_">PlatformException</a>    <dd> A platform-specific exception occurred.  </dl></dl><a name="redirect(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="redirect"><b>redirect</b></a><pre>  public abstract <a href="#_top_">CallControlConnection</a> redirect(<a href="java.lang.String.html#_top_">String</a> destinationAddress) throws <a href="java.telephony.InvalidStateException.html#_top_">InvalidStateException</a>, <a href="java.telephony.InvalidPartyException.html#_top_">InvalidPartyException</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>  <dd> Redirects a telephone call to another telephone number. This featureis very similar to a transfer feature, however, the application mayuse the redirect() method when the Connection is either in the ALERTINGor OFFERING CallControlConnection states. The telephone address providedmust be valid and complete.<p>The Connection must be in the OFFERING or ALERTING state.The first argument, destinationAddress, must be a valid telephone numberto dial. The Connection must also be associated with this Addressobject and the Provider must be IN_SERVICE. These pre-conditions are givenbelow:<p><OL><LI>((this.getCall()).getProvider()).getState() == IN_SERVICE<LI>this.getCallControlState() == OFFERING or ALERTING<LI>destinationAddress must be a valid telephone number.</OL><p>If successful, this method creates a new Connection associated with theAddress object, as given by the destinationAddress string. This newConnection is in the IDLE state and is returned by this method. TheConnection given as an argument moves to the DISCONNECTED state whenthis method returns. All of its TerminalConnections move to the DROPPEDstate as well. These post-conditions are given as follows, where'connection' is the argument, and 'newconnection' is the return value.<p><OL><LI>((this.getCall()).getProvider()).getState() == IN_SERVICE<LI>this.getCallControlState() == DISCONNECTED.<LI>newconnection.getCallControlState() == IDLE<LI>Let TerminalConnection tc[] = this.getTerminalConnections()<LI>For all i, tc[i].getCallControlState() == DROPPED</OL><p>The newconnection object acts similar to a destination connection whena telephone call is first placed. The Call.connect() method provides thescenarios for this destination Connection and the possible state changesit may undergo.<p>  <dl>    <dt> <b>Parameters:</b>    <dd> desintationAddress - The Connection is rerouted to this address    <dt> <b>Returns:</b>    <dd> The new Connection associated with the Address object of thenew address.    <dt> <b>Throws:</b> <a href="java.telephony.InvalidStateException.html#_top_">InvalidStateException</a>    <dd> The state of some object is not validas designated by the pre-conditions for this method.    <dt> <b>Throws:</b> <a href="java.telephony.InvalidPartyException.html#_top_">InvalidPartyException</a>    <dd> The party to which this call isredirected is not valid.    <dt> <b>Throws:</b> <a href="java.telephony.MethodNotSupportedException.html#_top_">MethodNotSupportedException</a>    <dd> This method is not supported bythe implementation.    <dt> <b>Throws:</b> <a href="java.telephony.PrivilegeViolationException.html#_top_">PrivilegeViolationException</a>    <dd> The application does not havethe proper authority to invoke this method.    <dt> <b>Throws:</b> <a href="java.telephony.ResourceUnavailableException.html#_top_">ResourceUnavailableException</a>    <dd> An internal resource neccessaryfor the successful invocation of this method is not available.    <dt> <b>Throws:</b> <a href="java.telephony.PlatformException.html#_top_">PlatformException</a>    <dd> A platform-specific exception occurred.    <dt> <b>Throws:</b> <a href="java.lang.Exception.html#_top_">Exception</a>    <dd> An implementation-specific exception occurred.  </dl></dl><a name="addToAddress(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="addToAddress"><b>addToAddress</b></a><pre>  public abstract void addToAddress(<a href="java.lang.String.html#_top_">String</a> additionalAddress) 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>  <dd> Appends additional address information onto an existing Connection.This method is used when part of a telephone number has been dialedand the application may complete the address with this method.<p>This Connection must be in the DIALING or INITIATED state and the Provider must alsobe IN_SERVICE. These pre-conditions are given below:<p><OL><LI>((this.getCall()).getProvider()).getState() == IN_SERVICE<LI>this.getCallControlState() == DIALING | INITIATED.</OL><p>The post-conditions of this method depend upon whether the providedadditional addressing information is enough to complete the address.This is determined by the switch. If the additional addressing informationis enough, the Connection moves from the DIALING state into theESTABLISHED state. If not, the Connection remains in the DIALING state.The following post-conditions reflect this:<p><OL><LI>((this.getCall()).getProvider()).getState() == IN_SERVICE<LI>this.getCallControlState() == DIALING if the addressing information wasnot enough as determined by the switch.<LI>this.getCallControlState() == ESTABLISHED if the addressing information wassufficient to complete the address, determined by the switch</OL><p>  <dl>    <dt> <b>Parameters:</b>    <dd> additionalAddress - The additional addressing information.    <dt> <b>Throws:</b> <a href="java.telephony.InvalidStateException.html#_top_">InvalidStateException</a>    <dd> The state of some object is not validas designated by the pre-conditions for this method.    <dt> <b>Throws:</b> <a href="java.telephony.MethodNotSupportedException.html#_top_">MethodNotSupportedException</a>    <dd> This method is not supported bythe implementation.    <dt> <b>Throws:</b> <a href="java.telephony.PrivilegeViolationException.html#_top_">PrivilegeViolationException</a>    <dd> The application does not havethe proper authority to invoke this method.    <dt> <b>Throws:</b> <a href="java.telephony.ResourceUnavailableException.html#_top_">ResourceUnavailableException</a>    <dd> An internal resource neccessaryfor the successful invocation of this method is not available.    <dt> <b>Throws:</b> <a href="java.telephony.PlatformException.html#_top_">PlatformException</a>    <dd> A platform-specific exception occurred.  </dl></dl><a name="park(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="park"><b>park</b></a><pre>  public abstract <a href="#_top_">CallControlConnection</a> park(<a href="java.lang.String.html#_top_">String</a> destAddress) 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.InvalidPartyException.html#_top_">InvalidPartyException</a>, <a href="java.telephony.ResourceUnavailableException.html#_top_">ResourceUnavailableException</a>, <a href="java.telephony.PlatformException.html#_top_">PlatformException</a></pre><dl>  <dd> Parks an active Connection to another Address. "Parking" a Connectiontransfers that Connection to another address and drops it from the currenttelephone call. The Call Parking feature is very much like transferinga telephone call except the new address does not alert. The new Connectionis in a special QUEUED state. Applications may then use the pickup()method to "unpark" this call. The telephone address provided must bevalid and complete.<p>This Connection must be in the ESTABLISHED state.The destAddress parameter must be a complete, valid telephone numberwhich can be dialed. The Provider must also be IN_SERVICE. These pre-conditions are given below:<p><OL><LI>((this.getCall()).getProvider()).getState() == IN_SERVICE<LI>this.getCallControlState() == ESTABLISHED<LI>destAddress must be a valid and complete telephone number.</OL><p>This method moves the connection into theDISCONNECTED state and creates a new connection attached to an Addressobject which corresponds to the destAddress argument. This new connectionis in the CallControlConnection QUEUED state and is returned by thismethod. ALl of the TerminalConnections which are part of this Connectionmove to the DROPPED state.The post conditions for this method are given below, where'newconnection' is the Connection returned by this method.<p><OL><LI>((this.getCall()).getProvider()).getState() == IN_SERVICE<LI>newconnection.getCallControlState() == QUEUED<LI>this.getCallControlState() == DISCONNECTED<LI>For all termconn = this.getTerminalConnections(),termconn.getState() == DROPPED</OL><p>  <dl>    <dt> <b>Parameters:</b>    <dd> destAddress - The address at which this connection is to be parked.    <dt> <b>Returns:</b>    <dd> The new Connection.    <dt> <b>Throws:</b> <a href="java.telephony.InvalidStateException.html#_top_">InvalidStateException</a>    <dd> The state of some object is not validas designated by the pre-conditions for this method.    <dt> <b>Throws:</b> <a href="java.telephony.MethodNotSupportedException.html#_top_">MethodNotSupportedException</a>    <dd> This method is not supported bythe implementation.    <dt> <b>Throws:</b> <a href="java.telephony.InvalidPartyException.html#_top_">InvalidPartyException</a>    <dd> The party to which to party theConnection is invalid.    <dt> <b>Throws:</b> <a href="java.telephony.PrivilegeViolationException.html#_top_">PrivilegeViolationException</a>    <dd> The application does not havethe proper authority to invoke this method.    <dt> <b>Throws:</b> <a href="java.telephony.ResourceUnavailableException.html#_top_">ResourceUnavailableException</a>    <dd> An internal resource neccessaryfor the successful invocation of this method is not available.    <dt> <b>Throws:</b> <a href="java.telephony.PlatformException.html#_top_">PlatformException</a>    <dd> A platform-specific exception occurred.  </dl></dl><hr><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></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -