bridge@v3
Bridge the outbound leg of a dial@v2 (or dial@v1); a beep (feedback) is played to both legs before bridging unless disabled.
| Version | bridge@v3 |
| Runs in | inbound-call and your own branches |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
feedback | object | Sound played to both legs before bridging: a built-in sound (beep by default) or an audio file of your library (at most one of sound / audioFile). | ||
feedback.enabled | boolean | true | accepts ${{ }} | |
feedback.sound | beep, loading, heartbeat | "beep" | accepts ${{ }} | |
feedback.audioFile | object | An audio file of your library, by its SID (REST API v2 identifier). audio file of your library: sid | ||
feedback.delay | number | 0 | Seconds to wait before playing: 0..60 accepts ${{ }} |
Every parameter that accepts ${{ }} can be computed from an expression.
Examples
If you handle the outbound leg of a dial@v2 in another branch, you can use this action to bridge the call. Before bridging, a short sound is played to both legs (feedback). By default it is a beep, as bridge@v2 did.
branches:
inbound-call:
actions:
- action: dial@v2
params:
targets:
- number: "+33199004242"
timeout: 20
answerOnBranch: callee-branch
callee-branch:
actions:
- action: gather@v4
params:
maxDigits: 1
tts:
text: Hello! Press 1 to accept the call
result: $digits
- if: $digits.input == '1'
action: bridge@v3
- action: hangup@v1Full example with defaults
- action: bridge@v3
params:
feedback:
enabled: true # false to bridge silently
delay: 0 # (0..60) accepted, no effect on bridge
sound: beep # beep|loading|heartbeat
# or an audio file of your library instead of sound:
# audioFile:
# sid: 'fdsanjkf'Older versions
Older versions keep working in existing scenarios. Use the version above in new scenarios.
bridge@v2: Bridge the outbound leg of a dial@v1bridge@v1: Bridge the outbound leg of a dial@v1
Updated about 3 hours ago
Did this page help you?
