Pause
The Pause verb is used to delay verb execution for a period of time, during which the call will be silent.
Text Content
There is no text content available to be set for the <Pause>
verb.
Attributes
ATTRIBUTE | Description |
---|---|
duration | (optional) The 'duration' attribute specifies how many seconds Bandwidth will wait silently before continuing on. Default value is 1. Range: decimal values between 0.1 - 86400. |
Webhooks Received
There are no webhooks received after the <Pause>
verb is executed.
Examples
Pause a Call
- XML
- Java
- C#
- Ruby
- NodeJS
- Python
- PHP
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Pause duration="2" />
</Response>
Pause pause = new Pause(2d);
Response response = new Response()
.with(pause);
System.out.println(response.toBXML());
Pause pause = new Pause
{
Duration = 2
};
Response response = new Response();
response.Add(pause);
Console.WriteLine(response.ToBXML());
pause = Bandwidth::Bxml::Pause.new({ duration: 2 })
response = Bandwidth::Bxml::Response.new([pause])
p response.to_bxml
const pause = new Bxml.Pause({
duration: 2
});
const response = new Bxml.Response(pause);
console.log(response.toBxml());
pause = Pause(duration=2)
response = Response()
response.add_verb(pause)
print(response.to_bxml())
$pause = new BandwidthLib\Voice\Bxml\Pause();
$pause->duration(2);
$response = new BandwidthLib\Voice\Bxml\Response();
$response->addVerb($pause);
echo $response->toBxml();