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

# Hangup

The `<Hangup>` verb ends a call. While `<Reject>`ed calls are never answered, calls that use the `<Hangup>` verb for disconnection are still answered, becoming subject to billing.

## Verb attributes

The `<Hangup>` verb does not support any attributes.

## Nesting

No other verbs can be nested within `<Hangup>` and you cannot nest `<Hangup>` within any other verbs.

## Examples

### A simple hangup

```xml
<?xml version="1.0" encoding="UTF-8"?>
<Response>
    <Hangup/>
</Response>
```

```javascript title="Node.js"
const { RestClient } = require("@signalwire/compatibility-api");
const response = new RestClient.LaML.VoiceResponse();

response.hangup();
console.log(response.toString());
```

```csharp
using Twilio.TwiML;
using System;


class Example
{
    static void Main()
    {
        var response = new VoiceResponse();
        response.Hangup();

        Console.WriteLine(response.ToString());;
    }
}
```

```python
from signalwire.voice_response import VoiceResponse, Hangup

response = VoiceResponse()
response.hangup()

print(response)
```

```ruby
require 'signalwire/sdk'

response = Signalwire::Sdk::VoiceResponse.new do |response|
  response.hangup
end

puts response.to_s
```

SignalWire will answer the call then immediately hangup.

<hr />

<p>
  *Twilio and TwiML are trademarks of Twilio, Inc. SignalWire, Inc. and its products are not affiliated with or endorsed by Twilio, Inc.
</p>