connect
Transfer or connect the call to another destination. Generates a SWML connect
verb under the hood.
When final=True (the default), the call permanently leaves the agent. When
final=False, the call returns to the agent if the far end hangs up first.
Parameters
destination
Where to connect the call. Accepts a phone number in E.164 format (e.g.,
"+15551234567") or a SIP address (e.g., "support@company.com").
final
Whether this is a permanent transfer.
True— call exits the agent completely (terminal action)False— call returns to the agent when the far end hangs up
from_addr
Caller ID override. Phone number or SIP address to show as the caller. When
None, the current call’s originating address is used.
Returns
FunctionResult — self, for chaining.