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
A list of device groups for serial/parallel dialing. The outer list is tried serially (one group at a time). Each inner list is dialed in parallel (all devices in the group ring simultaneously).
Each device dict 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.
max_duration
Maximum duration of the connected call in seconds.
max_price_per_minute
Maximum price per minute for the connected call.
status_url
URL to receive connection status webhooks.
Returns
dict — Server response confirming the connect operation.