OptionalcallIdentifier for this call leg within the session. Must be unique across all active call legs in the session. Other commands (e.g., hangup) can reference this name to target this specific leg.
Command to initiate a new call
OptionaldialMaximum time in seconds to wait for the call to be answered. If the timeout expires without an answer, the onTimeout event is triggered.
OptionaleventsOptionalfromOptionalmaxMaximum duration of the call in seconds. The call is terminated automatically when this limit is reached.
Initiates a new outbound call leg within the current session. This is a non-blocking command — the next command in the sequence executes immediately while the call is being established in parallel. Call lifecycle events (answer, busy, reject, timeout, hangup, failure) are handled via the
eventsproperty. Thefromandtoendpoint types should ideally match. If they differ, the platform attempts to convert thefromvalue to be compatible with thetotype. For example, PSTN supports only E.164 phone numbers, so a SIP address such assip:46701234567@acme.secan be converted to an E.164 number. If thefromvalue cannot be converted, it defaults to null (anonymous).