connect
Bridge the call to one or more destinations. The devices parameter supports
both serial (try one at a time) and parallel (ring simultaneously) dialing
strategies.
This method emits calling.call.connect events. See Call Events for payload details.
This method corresponds to the SWML connect verb. See the
SWML connect reference for the full specification.
Parameters
devices
An array of device groups for serial/parallel dialing. The outer array is tried serially (one group at a time). Each inner array is dialed in parallel (all devices in the group ring simultaneously).
Each device object contains:
"type"— Device type ("phone","sip")"params"— Type-specific parameters (to_number,from_number, etc.)
ringback
Media items to play to the caller while the destination is ringing. Same
format as play() media items.
tag
Correlation tag for the connected call.
maxDuration
Maximum duration of the connected call in seconds.
maxPricePerMinute
Maximum price per minute for the connected call.
statusUrl
URL to receive connection status webhooks.
Returns
Promise<Record<string, unknown>> — Server response confirming the connect operation.