Twilio Voice Call
Using the Twilio REST API, you can make outgoing calls to phones, SIP-enabled endpoints, and Twilio Voice SDK connections.Configuration
Database Setup
Create a new entry in thenotify_providers table with the following settings:
| Field | Value |
|---|---|
channel_type | 10 (Twilio Voice Call) |
is_enabled | 1 |
Configuration Fields
Twilio account SID
Twilio account auth token
Request Format
Sample Request Body
Using TwiML Directly
Request Fields
The phone number, SIP address, or client identifier to use as the caller ID
The phone number or client identifier to call
The absolute URL that returns the TwiML instructions for the call. Twilio will call this URL when the call connects.
TwiML instructions for the call. Max 4000 characters. Use this instead of
url for simple voice messages.If both
url and twiml are provided, the twiml parameter will be ignored.TwiML Examples
- Say
- Play
- Gather
Dependencies
| Package | Version | Description |
|---|---|---|
| twilio | ^5.8.0 | Twilio client for voice and messaging |