Skip to main content
useDialOut(params?): Object Tracks the state of dial-out sessions and returns helper functions that wrap the daily-js dial-out, DTMF and SIP transfer methods. Accepts optional callbacks for the dial-out events. Dial-out state is tracked per session, keyed by sessionId. State is reset when the local participant leaves the meeting or the call instance is destroyed.
Dial-out requires a paid Daily account, dial-out approval, and enable_dialout set on the room. See the Dial-in and dial-out guide for setup and requirements.

Parameters

Function
Callback for the dialout-connected event.
Function
Callback for the dialout-answered event.
Function
Callback for the dialout-stopped event.
Function
Callback for the dialout-error event.
Function
Callback for the dialout-warning event.

Return value

Returns an object with the following properties:
Object
A map of active dial-out sessions, keyed by sessionId.
Function
Wraps daily-js startDialOut().
Function
Wraps daily-js stopDialOut().
Function
Wraps daily-js sendDTMF().
Function
Wraps daily-js sipCallTransfer().
Function
Wraps daily-js sipRefer().
A dialout-error or dialout-warning that arrives before a session is established (with no sessionId) is delivered through the onDialOutError / onDialOutWarning callbacks, but is not added to sessions.

Example

See also