Twilio

Hangup Verb

The <Hangup> verb ends the call.

Verb Attributes

The <Hangup> verb has no attributes

Nesting Rules

The <Hangup> verb can be nested in the following elements

The following verbs can be nested within <Hangup>

  • none

Examples

Example 1: Simple hang up

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

The following code causes the call to hang up immediately

Hints and Advanced Uses

  • After processing a Gather, Record, or Dial, you may end the call by sending back a response containing the <Hangup> verb.