Dialer
The dialer service allows you to:
- Make and receive calls
- Interact with ongoing calls
- Accept/Reject incoming calls
- Cancel outgoing calls
- Hold/un-hold participant(s)
- Hang up
- Transfer calls
- to a team/teammate
- to an external number
- Record calls
Usage
Building a phone system from scratch is a complex task, that's why we provide a dialer service that allows you to make and receive calls, interact with ongoing calls, transfer, record calls, and much more.
The dialer service is built on top of the Twilio Programmable Voice SDK and is powered by a state-machine to control the possible state that the call can be in and the action that can be performed depending on the current state.
📄️ Init
Before start using the dialer events, you need to initialize the service with the BUS.INIT event.
📄️ Dial
This event is used when user tries to call either an external number or a teammate.
📄️ Incoming
This event is dispatches from bus 🚌 each time an incoming call is received.
📄️ Call status
This event is dispatched from bus 🚌 when the status of the ongoing call changes.
📄️ Sync
This event is only sent when the ongoing call metadata has changed.
📄️ Accept
This event is used to accept an incoming call.
📄️ Hang up
This event is used to hang up an ongoing call.
📄️ Reject
This event is used to reject an incoming call.
📄️ Mute
This event is used to mute yourself during a call.
📄️ Hold
This event is used to hold a participant during a call.
📄️ Set tags
This event is used to set tags during a call.
📄️ Reset
This event is used to reset the internal state of the dialer which allows you to go back to the initial state and unsubscribe from any realtime changes that occurs on the last successful call.
🗃️ Transfer
4 items
🗃️ Concurrent
1 items
🗃️ Conference
5 items
🗃️ Coaching
4 items