> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# hangup

> Ends the call.

End the call with an optional reason.

## **Properties**

An object that accepts the following properties.

**hangup.reason**
The reason for hanging up the call.

## **Examples**

### No parameters

```yaml
version: 1.0.0
sections:
  main:
    - answer: {}
    - hangup: {}
```

```json
{
  "version": "1.0.0",
  "sections": {
    "main": [
      {
        "answer": {}
      },
      {
        "hangup": {}
      }
    ]
  }
}
```

### Set a hangup reason

```yaml
version: 1.0.0
sections:
  main:
    - answer: {}
    - hangup:
        reason: "busy"
```

```json
{
  "version": "1.0.0",
  "sections": {
    "main": [
      {
        "answer": {}
      },
      {
        "hangup": {
          "reason": "busy"
        }
      }
    ]
  }
}
```