TAPI.Disconnect
---------------

Disconnects the call.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [TAPI](component_TAPI.md) | [4.4](newinversion44.md) | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "TAPI.Disconnect"; Call; DisconnectCode ) 

**MBS**( **"TAPI.Disconnect";** /\* Disconnects the call. \*/  
**$Call**; /\* The call reference number. \*/   
**$DisconnectCode**) /\* Can be Normal, NoAnswer or Rejected.e.g. "Normal" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Call | The call reference number. | $Call |
| DisconnectCode | Can be Normal, NoAnswer or Rejected. | "Normal" |

### Result

Returns OK or error.

### Description

Disconnects the call.   
The call state will transition to Disconnected after the method completes successfully.  
Disconnect codes:  
Normal: The call is being disconnected as part of the normal cycle of the call.  
NoAnswer: The call is being disconnected because it has not been answered. (For example, an application may set a certain amount of time for the user to answer the call. If the user does not answer, the application can call Disconnect with the NoAnswer code.)  
Rejected: The user rejected the offered call.  
### See also

- [SQL.Disconnect](SQLDisconnect.md)
- [SSH.Disconnect](SSHDisconnect.md)

This function checks for a license.

Created 22nd October 2014 , last changed 3th December 2014

  
[TAPI.Dial](TAPIDial.md) - [TAPI.Finish](TAPIFinish.md)

[HTML Version](TAPIDisconnect.shtml)