The <Enqueue> verb places a call in a specified call queue. If the specified queue does not exist, a new queue will be created and the call will be placed into that new queue. Calls can be dequeued through the <Dial> verb or removed from the queue through the <Leave> verb.
The action attribute takes an absolute URL. When a call leaves the queue, a request to this URL is made. If a call is dequeued through the <Leave> verb, the URL is immediately requested. If the call has been bridged to another party via the <Dial> verb, then the HTTP request is made only after both parties have disconnected. If action is not provided, SignalWire will continue reading the next verb in the document. See below for specified request parameters.
Specifies whether the redirect is a GET or a POST.
URL of the document to execute while the caller is in the queue. Default points to a playlist with classical music. waitUrl supports the following verbs: <Play>, <Say>, <Pause>, <Hangup>, <Redirect>, <Leave>, and <Gather>. See below for specified request parameters.
Specifies whether the request to waitUrl is a GET or a POST.
action URLThe action request contains the Standard Request Parameters as well as:
The result of the queued call. See below for all possible values.
The unique ID of the queue. Only available if a call is successfully placed into a queue.
The time a call was waiting in a queue. Only available if a call is successfully placed into a queue.
QueueResultThe parameter QueueResult has the following values:
waitUrlThe waitUrl request contains the Standard Request Parameters as well as:
The average time, in seconds, that callers have been waiting in a queue.
The current number of callers in a queue.
The current position in the queue.
The unique ID of the queue a caller is in.
The time a call was waiting in a queue.
The noun of an XML verb is nested within the verb upon which the verb acts. <Enqueue> has the following nouns:
No other verbs can be nested within <Enqueue> and you cannot nest
<Enqueue> within any other verbs.
While a caller is in the queue, SignalWire retrieves the XML document ‘hold-music.xml’ and executes it.
While callers in a queue are waiting, classical music is played.
*Twilio and TwiML are trademarks of Twilio, Inc. SignalWire, Inc. and its products are not affiliated with or endorsed by Twilio, Inc.