A text at 3am is easy to sleep through. A ringing phone isn't. That's why many teams use on-call phone call alerts for the problems that can't wait until morning: a server down, a payment system failing or a site offline.
This article walks through an example setup for an IT support team. The team is made up and has no name, but every feature in it is real. Their monitoring system calls the engineer on call through the DataFlows Voice API, the engineer presses 1 to take the alert, and if nobody does, the next person on the roster gets the call.
What Are On-Call Phone Call Alerts?
On-call phone call alerts are automated phone calls that tell the person on call about an urgent problem. When a monitoring tool detects an outage, a script places a call to the on-call phone, and a text-to-speech voice reads out a short description of what's wrong. The best alerts ask for an acknowledgement, such as "press 1 to take this alert", so the system knows a real person has heard it and taken ownership. If the call isn't answered, goes to voicemail or nobody presses 1, the system calls the next person on the roster, and keeps going until someone responds. Phone call alerts are usually paired with a text or chat message that holds the details, because a phone call is good at waking someone up but poor at carrying error logs. Teams use them for production outages, security events, building alarms and any other alert where minutes matter. They're an escalation layer on top of SMS and chat, not a replacement.
Why Use a Phone Call for Alerts?
Most people silence notifications at night, and a single text tone is easy to miss. A phone call keeps ringing, and most phones let calls from chosen contacts through Do Not Disturb.
A keypress also gives you something texts don't: proof that someone heard the alert. Without it, you can't tell whether the engineer is working on the problem or still asleep.
Calls reach landlines too, which can help when someone is on call from home.
The Example Team
Here's the situation:
- An IT support team looks after servers and websites for a group of business clients.
- A weekly roster: a primary engineer, a secondary engineer and the team lead.
- An existing monitoring tool that can run a script or post a webhook to the team's own server when something breaks.
- Their rules: the primary must take the alert within 5 minutes, otherwise it goes to the secondary, then the team lead. Nobody should ever be rung twice for the same alert by mistake.
DataFlows doesn't connect to monitoring tools directly. Instead, the team's own server receives the alert and calls the DataFlows Voice API.
How the Escalation Works
- The alert fires. The monitoring tool tells the team's server that a client's website is down.
- A text goes out first. The server sends an SMS with the details to the primary engineer, from the team's SMS + Voice number.
- Then the phone rings. The server places a voice call to the primary with two keypress options and voicemail detection.
- The engineer presses 1. DataFlows sends a signed
voice.call.key_pressedwebhook to the server, which marks the alert as taken and stops the escalation. - Or nobody takes it. If the call is busy, isn't answered, reaches voicemail or ends without a 1, the server waits a minute and calls the secondary, then the team lead.
- Everything is logged. Each call's result, duration and cost appears in the DataFlows call log.
The Call Script
The message can be up to 600 characters. The team keeps it short and puts the important part first:
"This is an urgent alert from [Team name] monitoring. The website for [client name] is down. Press 1 to take this alert. Press 2 to pass it to the next engineer."
After a key press, a short reply is read out. Key 1 says "Thanks. The alert is yours. Details are in your text messages." Key 2 says "Okay. We'll call the next engineer."
The API Request
The server places the call with one request to POST /voice/calls on the DataFlows Voice API, using the same API token as SMS:
{
"to": "+614XXXXXXXX",
"from": "+614YYYYYYYY",
"message": "This is an urgent alert from monitoring. The client website is down. Press 1 to take this alert. Press 2 to pass it to the next engineer.",
"options": {
"1": "Thanks. The alert is yours. Details are in your text messages.",
"2": "Okay. We'll call the next engineer."
},
"machine_detection": "hangup"
}
Each request also carries an Idempotency-Key header made from the alert ID and the person being called, such as alert-4821-primary. If the request times out and the server retries it with the same key, DataFlows returns the first call instead of ringing the engineer again.
Handling the Results
Two webhooks drive the escalation:
voice.call.key_pressedarrives as soon as a key is pressed. Key 1 stops the escalation. Key 2 moves straight to the next person.voice.call.completedarrives when the call is final. If the status is busy, no-answer or failed, or the call was answered by a machine, or no key was pressed, the server moves to the next person.
Every webhook is signed. The server checks the X-DataFlows-Signature header before trusting it, replies with a 2xx status within 10 seconds, and ignores any event ID it has already processed, because webhooks can be retried. Our guide to voice call webhooks shows the signature check step by step.
Settings That Matter for Alerts
- Leave the calling hours switch off. DataFlows has an optional setting, "Only call during permitted calling hours", which blocks calls outside weekday and Saturday daytime hours. It's off by default. If the account owner turns it on, a 3am alert call gets a 422 response instead of ringing anyone. For an on-call account, keep it off, and make sure the team knows why.
- Hang up on voicemail. With
machine_detectionset tohangup, a call that reaches voicemail ends straight away and reportsanswered_byas machine, so the server escalates rather than treating voicemail as an answer. Read more about voicemail detection. - Use a standard voice. Keypress options and voicemail detection work with the standard Australian voices.
- Save the number in everyone's phone. Add the SMS + Voice number as a contact called "On-call alerts" and allow it through Do Not Disturb.
- Test the whole chain. Trigger a test alert during the day, let the primary ignore it, and check the secondary is called.
Alerts Without Code
Not every team has a monitoring script. A supervisor can also send a one-off voice alert from the DataFlows dashboard under Voice, then Make a call, by typing the message and the phone number. It's useful for a building alarm or another manual alert to one person, with no developer needed.
What It Costs
Calls use the same credits as SMS, at 3 credits per started minute: 10.5c a minute on the Mini pack, 9c on Pro and 7.5c on Business. Busy, unanswered and failed calls are free, so escalation attempts that nobody picks up cost nothing.
As example arithmetic on the Business pack: 20 alerts in a month, with 30 answered calls between them that each last under a minute, come to 90 credits, or $2.25. The 20 detail texts add 20 credits, or 50c. The SMS + Voice number is $10 a month, and credits never expire.
Good Practice for On-Call Phone Call Alerts
- Call only for urgent alerts. If every warning rings a phone, people learn to ignore it.
- Text the details, call to wake. Keep the spoken message short and put the logs in the SMS or your chat tool.
- Wait a minute between people. Give each person a fair chance to answer before escalating.
- Stop when someone takes it. Don't keep calling the rest of the roster after a 1.
- Review alerts monthly. Look at the call log and drop alerts that never needed a call.
For text-based escalation, see our guides to on-call escalation via SMS from Microsoft Teams and turning email alerts into SMS.
Frequently Asked Questions
Can the alert call a landline?
Yes. DataFlows calls Australian mobiles and landlines.
Which keys can the engineer press?
Outgoing calls can have up to 9 options using the keys 0 to 9, * and #.
What if our server sends the same request twice?
Send an Idempotency-Key header. A repeated request with the same key returns the first call instead of placing a new one.
Do we need a developer?
For automatic escalation, yes, because your own server calls the API and handles the webhooks. For a one-off alert, anyone can use Make a call in the dashboard.
Conclusion
On-call phone call alerts close the gap between "an alert was sent" and "someone is fixing it". A short spoken message, a press 1 to take the alert and a simple escalation rule cover most teams. Use this example as a template, and test it before you rely on it at 3am.
Create your DataFlows account, email support@dataflows.com.au to switch voice on, and see every voice feature on the DataFlows voice calls page.
