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

📄 java.telephony.callcontrol.callcontrolcall.html

📁 JTAPI_html 用于JTAPI的HTML文档.
💻 HTML
📖 第 1 页 / 共 5 页
字号:
    <dt> <b>Throws:</b> <a href="java.telephony.PlatformException.html#_top_">PlatformException</a>    <dd> A platform-specific exception occurred.  </dl></dl><a name="setTransferEnable(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setTransferEnable"><b>setTransferEnable</b></a><pre>  public abstract void setTransferEnable(boolean enable) throws <a href="java.telephony.InvalidArgumentException.html#_top_">InvalidArgumentException</a>, <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.PlatformException.html#_top_">PlatformException</a></pre><dl>  <dd> Controls whether this Call object is permitted or able to performthe transfering feature. If the 'enable' argument is true, thismethod attempts to turn on the transfering ability. If 'false' thismethod turns disallows the transfering feature. If the implementationis unable to support transfering, a setTransferEnable(true) willthrow an exception.<p>This method must be called when the Call object is first create andin the IDLE state. The provider must also be in service. The pre-conditions are as follows:<p><OL><LI>(call.getProvider()).getState() == IN_SERVICE<LI>call.getState() == IDLE</OL><p>The post-conditions are as follows, given an exception is not thrownand the variable 'enable' represents the value of the parameter passedto this method.<p><OL><LI>(call.getProvider()).getState() == IN_SERVICE<LI>call.getState() == IDLE<LI>enable = call.getTransferEnable();</OL><p>  <dl>    <dt> <b>Parameters:</b>    <dd> enable - True turns transfering on, false turns transfering off.    <dt> <b>Throws:</b> <a href="java.telephony.InvalidArgumentException.html#_top_">InvalidArgumentException</a>    <dd> The Connection object provided isnot associated with this Address object.    <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.PlatformException.html#_top_">PlatformException</a>    <dd> A platform-specific exception occurred.  </dl></dl><a name="getTransferEnable()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getTransferEnable"><b>getTransferEnable</b></a><pre>  public abstract boolean getTransferEnable() throws <a href="java.telephony.PlatformException.html#_top_">PlatformException</a></pre><dl>  <dd> Return true if transfering is enabled, false otherwise. Applicationsmay use this method initially to obtain the default value set by theimplementation and may attempt to change this value using theCallControlCall.setTransferEnable() method.<p>  <dl>    <dt> <b>Returns:</b>    <dd> True if transfering is enabled, false otherwise.    <dt> <b>Throws:</b> <a href="java.telephony.PlatformException.html#_top_">PlatformException</a>    <dd> A platform-specific exception occurred.  </dl></dl><a name="consult(java.telephony.TerminalConnection, java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="consult"><b>consult</b></a><pre>  public abstract <a href="#_top_">CallControlCall</a> consult(<a href="java.telephony.TerminalConnection.html#_top_">TerminalConnection</a> termconn,                                          <a href="java.lang.String.html#_top_">String</a> address) throws <a href="java.telephony.InvalidStateException.html#_top_">InvalidStateException</a>, <a href="java.telephony.InvalidArgumentException.html#_top_">InvalidArgumentException</a>, <a href="java.telephony.MethodNotSupportedException.html#_top_">MethodNotSupportedException</a>, <a href="java.telephony.ResourceUnavailableException.html#_top_">ResourceUnavailableException</a>, <a href="java.telephony.PrivilegeViolationException.html#_top_">PrivilegeViolationException</a>, <a href="java.telephony.PlatformException.html#_top_">PlatformException</a></pre><dl>  <dd> Begins a consultation Call with the existing Call. A consultationCall is a new telephone Call placed to a telephony number addressand is associated with the current telephony Call. The purpose ofcreating a consultation call is to either simply consult with anotherparty or eventually to either conference in or transfer to with theexisting party. The creation of the new Call behaves in a similarmanner as Call.connect(), however the consult() method establishesa special association between the new Call and the current telephoneCall. The consult() methodexists because it is often a switch feature and establishes thespecial association between the current telephone Call. The telephonenumber address provided must be valid and complete.<p>As mentioned above, the purpose of creating a consulation Call isoften to perform a transfer() or conference() on these two Calls.Applications must specify their purpose by first telling the switchwhether they intend to perform a conference() or transfer() or bothusing the setConferenceEnable() and setTransferEnable() methods onthis object.<p>The originator of this new consultation call is given by aTerminalConnection which must be part of the current Call object andmust be in the active state. The destination address for this newcall is given by the second argument. Therefore, the new call placed issimilar to the Call.connect() method in that the originating Terminalis termconn.getTerminal() and the origination Address is(termconn.getConnection()).getAddress().<p>This method places termconn in the HELD state and create a new Callobject. This Call object has two connection, one each for theoriginating side and the destination side. Both of these Connectionsare in the IDLE state. This new Call object is returned by the consult()method. The Provider must also be IN_SERVICE. The pre-conditions of thismethod are given below:<p><OL><LI>(call.getProvider()).getState() == IN_SERVICE<LI>call.getState() == ACTIVE<LI>termconn is element of call.getConnections().getTerminalConnections()<LI>termconn.getState() == ACTIVE</OL><p>The post-conditions for this method are as follows, where the Call objectreturned is denoted by 'newcall'.<p><OL><LI>(call.getProvider()).getState() == IN_SERVICE<LI>call.getState() == ACTIVE<LI>termconn.getState() == HELD<LI>newcall.getState() == ACTIVE<LI>Let c = newcall.getConnections() such that c.length == 2<LI>c[0].getState == IDLE<LI>c[1].getState == IDLE</OL><p>An application can expect that this new Call object will exhibit thesame Connection and TerminalConnection state transition scenarios asCalls placed using Call.connect() and as described in the documentationfor that method.<p>  <dl>    <dt> <b>Parameters:</b>    <dd> termconn - The controlling TerminalConnection for the consultationcall.    <dd> address - The destination telephone number address.    <dt> <b>Returns:</b>    <dd> The new consultation Call object.    <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 unavailable.    <dt> <b>Throws:</b> <a href="java.telephony.PrivilegeViolationException.html#_top_">PrivilegeViolationException</a>    <dd> The application does not havethe proper authority to place a consultation telephone call.    <dt> <b>Throws:</b> <a href="java.telephony.InvalidArgumentException.html#_top_">InvalidArgumentException</a>    <dd> An argument provided is not valideither by not providing enough information for consult() or isinconsistent with another argument.    <dt> <b>Throws:</b> <a href="java.telephony.InvalidStateException.html#_top_">InvalidStateException</a>    <dd> Some object required by this method isnot is a valid state as designated by the pre-conditions for this method.    <dt> <b>Throws:</b> <a href="java.telephony.MethodNotSupportedException.html#_top_">MethodNotSupportedException</a>    <dd> The implementation does notsupport this method.    <dt> <b>Throws:</b> <a href="java.telephony.PlatformException.html#_top_">PlatformException</a>    <dd> A platform-specific exception occurred.  </dl></dl><a name="consult(java.telephony.TerminalConnection)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="consult"><b>consult</b></a><pre>  public abstract <a href="#_top_">CallControlCall</a> consult(<a href="java.telephony.TerminalConnection.html#_top_">TerminalConnection</a> termconn) throws <a href="java.telephony.InvalidStateException.html#_top_">InvalidStateException</a>, <a href="java.telephony.InvalidArgumentException.html#_top_">InvalidArgumentException</a>, <a href="java.telephony.MethodNotSupportedException.html#_top_">MethodNotSupportedException</a>, <a href="java.telephony.ResourceUnavailableException.html#_top_">ResourceUnavailableException</a>, <a href="java.telephony.PrivilegeViolationException.html#_top_">PrivilegeViolationException</a>, <a href="java.telephony.PlatformException.html#_top_">PlatformException</a></pre><dl>  <dd> This overloaded version of consult() is similar to the other versionof consult, except it does not take a destination string address asan argument. Instead, it creates a Call object with one Connection inthe CallControlConnection.INITIATED state. Applications may use the<EM>CallControlConnection.addToAddress()</EM> method to dial thedestination digits.<p>This method places termconn in the HELD state and create a new Callobject. This new Call object is returned by the consult() method. TheProvider must also be IN_SERVICE. The pre-conditions of thismethod are given below:<p><OL><LI>(call.getProvider()).getState() == IN_SERVICE<LI>call.getState() == ACTIVE<LI>termconn is element of call.getConnections().getTerminalConnections()<LI>termconn.getState() == ACTIVE</OL><p>The post-conditions for this method are as follows, where the Call objectreturned is denoted by 'newcall'.<p><OL><LI>(call.getProvider()).getState() == IN_SERVICE<LI>call.getState() == ACTIVE<LI>termconn.getState() == HELD<LI>newcall.getState() == ACTIVE<LI>Let c = newcall.getConnections() such that c.length == 1<LI>c[0].getState == INITIATED</OL><p>  <dl>    <dt> <b>Parameters:</b>    <dd> termconn - The controlling TerminalConnection for the consultationcall.    <dt> <b>Returns:</b>    <dd> The new consultation Call object.    <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 unavailable.    <dt> <b>Throws:</b> <a href="java.telephony.PrivilegeViolationException.html#_top_">PrivilegeViolationException</a>    <dd> The application does not havethe proper authority to place a consultation telephone call.    <dt> <b>Throws:</b> <a href="java.telephony.InvalidArgumentException.html#_top_">InvalidArgumentException</a>    <dd> An argument provided is not valideither by not providing enough information for consult() or isinconsistent with another argument.    <dt> <b>Throws:</b> <a href="java.telephony.InvalidStateException.html#_top_">InvalidStateException</a>    <dd> Some object required by this method isnot is a valid state as designated by the pre-conditions for this method.    <dt> <b>Throws:</b> <a href="java.telephony.MethodNotSupportedException.html#_top_">MethodNotSupportedException</a>    <dd> The implementation does notsupport this method.    <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.CallControlAddressObserver.html#_top_">Previous</a>  <a href="java.telephony.callcontrol.CallControlCallObserver.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre></body></html>

⌨️ 快捷键说明

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