# How on-call works

What a page sends to a phone, how it escalates through a target's steps, and what acknowledging and resolving do.

A **page** is one alert ringing an on-call target: an uptime check that went down, an Error
Tracking rule that fired, or a test. It is open until someone acknowledges or resolves it.

## What the phone gets

For each device of the step that rings, two pushes go through Apple's push service:

| Push         | What the phone does                                                                                                               |
| ------------ | --------------------------------------------------------------------------------------------------------------------------------- |
| Call         | The incoming-call screen, ringing through silent mode. Answering reads the alert aloud and shows Acknowledge and Escalate.        |
| Notification | A time-sensitive notification with an **Acknowledge** action. It stays in Notification Center if you missed or declined the call. |

A device with calls turned off gets the notification alone. Each push and Apple's answer (its HTTP
status and reason, such as `BadDeviceToken`) is listed on the page under **Deliveries**.

## Escalation

The first step rings when the page opens. When nobody acknowledged within the step's wait, the next
step rings; the check runs every minute, so a step can ring up to a minute after its wait ends.
**Escalate** rings the next step at once. After the last step the page stays open and nothing more
rings. A step whose devices were all unpaired is skipped. A page keeps the steps its target had
when it opened.

## One open page per alert

While a page is open, the same alert does not ring again: an uptime check that goes down, up and
down again within the page's life rings once. For an App Monitoring rule, each issue has its own
page. Once a page is resolved, the next alert opens a new one.

## Acknowledge and resolve

**Acknowledge** stops the escalation for everyone, and the phones that rang get a quiet
notification saying who acknowledged. **Resolve** closes the page. An uptime check that is up again
resolves its page itself. Both are recorded in the audit log as the person who did them, also when
done from the phone.

## Limits

| Limit                                  | Value                          |
| -------------------------------------- | ------------------------------ |
| Steps per target                       | 10                             |
| Devices per step                       | 20                             |
| Wait per step                          | 1 to 240 minutes               |
| Pairing code                           | single use, 10 min             |
| A call that cannot be delivered within | 60 seconds is dropped by Apple |

## Related

- [Set up on-call calls to your iPhone](set-up-on-call.md)
- [How uptime checks work](how-uptime-checks-work.md)
