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
Callback for the
dialout-connected event.Callback for the
dialout-answered event.Callback for the
dialout-stopped event.Callback for the
dialout-error event.Callback for the
dialout-warning event.Return value
Returns an object with the following properties:A map of active dial-out sessions, keyed by
sessionId.Wraps
daily-js startDialOut().Wraps
daily-js stopDialOut().Wraps
daily-js sendDTMF().Wraps
daily-js sipCallTransfer().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.