Enqueue
{
"verb": "enqueue",
"name": "support",
"actionHook": "/queue-action",
"waitHook": "/queue-wait"
}
Parameters
actionHookstringA webhook invoked when the operation completes.
- If a call is dequeued through the
leaveFunction, the webhook is immediately invoked. - If the call has been bridged to another party via the
dequeueFunction, then the webhook is invoked after both parties have disconnected. - If no webhook is provided, execution will continue with the next Function in the current application.
See below for specified request parameters.
namestringName of the queue.
prioritynumber(Added in 0.8.3-4) Optional priority value between 0 and 999.
Calls are dequeued in priority order, lowest to highest.
Default: 999.
waitHookstringA webhook to invoke while the caller is in queue.
The only allowed Functions in the application returned from this webhook are say, play, pause, and leave.
See below for additional request parameters.
actionHook properties
queueSid: the unique identifier for the queuequeueResult: the completion reason:- 'hangup' - the call was abandoned while in queue
- 'leave' - a
leaveFunction caused the call to exit the queue - 'bridged' - a
dequeueFunction caused the call to be bridged to another call - 'error' - a system error of some kind occurred
queueTime- the number of seconds the call spent in queuequeueSize- the number of calls remaining in queuequeuePosition- the zero-based position of the call in queue before it was removedcallSid- the unique identifier for the callcallId- the sip Call-ID for the call
waitHook properties
queueSid: the unique identifier for the queuequeuePosition: the current zero-based position in the queuequeueTime: the current number of seconds the call has spent in queuequeueSize: the current number of calls in the queue