dial
dial
- dial(
params):Promise<Call>
Makes an outbound Call and waits until it has been answered or hung up. This is an advanced method that lets you call multiple devices in parallel or series: for simpler use cases, see dialPhone and dialSip.
With this method you can specify a configuration of devices to call in series and/or in parallel: as soon as one device answers the call, the returned promise is resolved. You specify a configuration through a VoiceDeviceBuilder object.
Parameters
params
The device builder specifying the devices to call. See VoiceDeviceBuilder.
Returns
Promise<Call>
A call object.
Example
Calls a phone number. If the number doesn’t answer within 30 seconds, calls two different SIP endpoints in parallel.