Hangup
The Hangup verb is used to hang up the current call.
The Hangup verb is also used to reject incoming, unanswered calls. An empty <Response/>
is equivalent to a <Response>
containing a <Hangup/>
.
You will not be charged for rejected calls.
Attributes
ATTRIBUTE | Description |
---|---|
None | None |
Webhooks Received
Webhook | Can reply with more BXML |
---|---|
CallComplete | No |
Examples
Hangup a Call
- XML
- Java
- C#
- Ruby
- NodeJS
- Python
- PHP
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Hangup/>
</Response>
Hangup hangup = new Hangup();
Response response = new Response()
.with(hangup);
System.out.println(response.toBXML());
Hangup hangup = new Hangup();
Response response = new Response();
response.Add(hangup);
Console.WriteLine(response.ToBXML());
hangup = Bandwidth::Bxml::Hangup.new
response = Bandwidth::Bxml::Response.new([hangup])
p response.to_bxml
const hangup = new Bxml.Hangup();
const response = new Bxml.Response(hangup);
console.log(response.toBxml());
hangup = Hangup()
response = Response()
response.add_verb(hangup)
print(response.to_bxml())
$hangup = new BandwidthLib\Voice\Bxml\Hangup();
$response = new BandwidthLib\Voice\Bxml\Response();
$response->addVerb($hangup);
echo $response->toBxml();