mirror of
https://github.com/jambonz/next-static-site.git
synced 2026-10-20 10:24:20 +00:00
docs
This commit is contained in:
1 parent
86c1d96b42
commit
da9ba94eff
24 files changed
+1102
-23
No files matched your search
@@ -0,0 +1,41 @@
|
||||
# enqueue
|
||||
The `enqueue` command is used to place a caller in a queue.
|
||||
|
||||
```json
|
||||
{
|
||||
"verb": "enqueue",
|
||||
"name": "support",
|
||||
"actionHook": "/queue-action",
|
||||
"waitHook": "/queue-wait"
|
||||
}
|
||||
```
|
||||
|
||||
You can use the following options in the `enqueue` command:
|
||||
|
||||
| option | description | required |
|
||||
| ------------- |-------------| -----|
|
||||
| name | name of the queue | yes |
|
||||
| actionHook | A webhook invoke when operation completes. <br/>If a call is dequeued through the `leave` verb, the webook is immediately invoked. <br/>If the call has been bridged to another party via the `dequeue` verb, then the webhook is invoked after both parties have disconnected. <br/>If no webhook is provided, execution will continue with the next verb in the current application. <br/>See below for specified request parameters.| no |
|
||||
| waitHook | A webhook to invoke while the caller is in queue. The only allowed verbs in the application returned from this webhook are `say`, `play`, `pause`, and `leave`, </br>See below for additional request parameters| no|
|
||||
|
||||
The *actionHook* webhook will contain the following additional parameters:
|
||||
|
||||
- `queueSid`: the unique identifier for the queue
|
||||
- `queueResult`: the completion reason:
|
||||
- 'hangup' - the call was abandoned while in queue
|
||||
- 'leave' - a `leave` verb caused the call to exit the queue
|
||||
- 'bridged' - a `dequeue` verb 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 queue
|
||||
|
||||
The *waitHook* webhook will contain the following additional parameters:
|
||||
|
||||
- `queueSid`: the unique identifier for the queue
|
||||
- `queuePosition`: the current zero-based position in the queue
|
||||
- `queueTime`: the current number of seconds the call has spent in queue
|
||||
- `queueSize`: the current number of calls in the queue
|
||||
|
||||
<p>
|
||||
<a href="/docs/webhooks/dialogflow" style="float: left;">Prev: dialogflow</a>
|
||||
<a href="/docs/webhooks/gather" style="float: right;">Next: gather</a>
|
||||
</p>
|
||||
Reference in new issue
Block a user