XML: <Pause>

The Pause verb is used to delay verb execution for a period of time, during which the call will be silent.

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.

Callbacks Received

None

Example 1 of 1: Pause Verb

This shows how to use Bandwidth XML to pause for 2 seconds.

<?xml version="1.0" encoding="UTF-8"?>
<Response>
   <Pause duration="2" />
</Response>
Response response = new Response();

Pause pause = new Pause();
pause.Duration = 10;

response.Add(pause);

Console.WriteLine(response.ToBXML());
response = BandwidthSdk::Voice::Response.new()
pause = BandwidthSdk::Voice::Pause.new({
    :duration => 2
})

response.push(pause)
puts response.to_bxml()
response = Response()
pause = Pause(duration=2)

response.add_verb(pause)
print(response.to_bxml())

results matching ""

    No results matching ""