useDialin(params?): Object
Tracks the dial-in readiness of the current room and the
state of incoming caller sessions, and wraps the daily-js startDialIn() method. Accepts optional
callbacks for the dial-in events.
Readiness is set when a dialin-ready
event is received. Incoming callers are tracked per session, keyed by sessionId. State is reset when
the local participant leaves the meeting or the call instance is destroyed.
Dial-in requires a paid Daily account with a credit card on file. See the
Dial-in and dial-out guide for setup and requirements.
Parameters
Callback for the
dialin-ready event.Callback for the
dialin-connected event.Callback for the
dialin-stopped event.Callback for the
dialin-error event.Callback for the
dialin-warning event.Return value
Returns an object with the following properties:true once a dialin-ready event has been received, meaning the room’s SIP endpoint is ready to
receive incoming calls.The room’s SIP endpoint. Populated after
dialin-ready.The SIP/PSTN service provider. Populated after
dialin-ready.A map of incoming dial-in caller sessions, keyed by
sessionId.Wraps
daily-js’s startDialIn() method.