Queue

View as Markdown

<Dial> verb’s <Queue> noun specifies what queue to dial.

Noun attributes

method
stringDefaults to POST

The method attribute specifies whether the request to action is a GET or a POST. Valid values are GET or POST.

url
string

A specified URL for a document that runs on the caller’s end before the call is connected. This allows the caller to inform the dialed number that the call will be connected to an agent or that the call may be monitored or recorded. See below for request parameters.

Request parameters for url

The url request contains the Standard Request Parameters as well as:

CallSid
string

The unique identifier for the dequeued call.

DequeingCallSid
string

The unique identifier for the call dequeueing the caller.

QueueSid
string

The unique identifier for the Queue.

QueueTime
string

The time, in seconds, spent waiting in a queue.

Examples

Dialing a queue

1<?xml version="1.0" encoding="UTF-8"?>
2<Response>
3 <Dial>
4 <Queue url="https://example.com/about_to_connect.xml">support</Queue>
5 </Dial>
6</Response>

This is an example of a caller in the ‘support’ queue waiting to be dequeued.

Bridging out of a queue

1<?xml version="1.0" encoding="UTF-8"?>
2<Response>
3 <Say>You will now be connected to an agent.</Say>
4</Response>

Once a caller is first in line in the queue and ready to be bridged, they will be informed of the connection to an agent.