Appearance
IVR / voicemail check
An IVR check dials a number — an IVR menu, the voicemail login, a queue's announcement — and runs a step script on every answered call: expect audio, send DTMF, wait, expect hangup. It answers: does the menu still answer with a prompt, react to the digits and hang up where it should — after this upgrade, tonight, under load?
With 1 call (the default) it is a functional check: put it on a schedule with an e-mail alert, or call it from CI with an API token and ?wait. With many calls at a rate it is an IVR load test: how long until the prompt plays at 1 CPS, and do some calls fail a step under load?
First step: check your IVR with one call, using the IVR menu preset.
Run it
- Add the IVR's number to the profile's Allowed call destinations (
safety.allowed_destinations). - New test → IVR / voicemail check; pick the extension set and the Destination.
- Start from the IVR menu preset under Steps and adjust the digits and timeouts to your menu.
- Start IVR check with 1 call. Read the IVR steps card: which step failed, after how many seconds — see Read the result.

Write the step script
| Step | Settings | Passes when |
|---|---|---|
| Expect audio | timeout (1–120 s), minimum audio (default 300 ms) | at least the minimum of consecutive received audio is at or above the level threshold (default −40 dBov), within the timeout from the step's start |
| Send DTMF | digits; {ext} = the caller's extension | the digits were sent (RFC 2833 or in-band, as set for the run) |
| Wait | seconds (0.1–300) | always (unless the PBX hangs up meanwhile) |
| Expect hangup | timeout (1–120 s) | the PBX sends BYE within the timeout |
- A hangup by the PBX before the last step fails the step in progress with "hung up". A hangup during a send or wait step right before expect hangup counts as expected (an IVR often hangs up while the last digit's gap is still running).
- When the script ends the tester hangs up (BYE) — unless expect hangup already ended the call.
- A step that fails ends the script for that call; the following steps are not reached.
- Up to 20 steps; the whole script may take at most 1 hour per call (worst case: every timeout).
Time to audio is measured for every expect audio step: from the step's start to the start of the audio that satisfied it. The run reports p50 and p95 over the calls.
Which prompt plays is not recognised
Expect audio only checks that there is audio. If the previous prompt keeps playing after you sent a digit, the next expect audio passes at once. Put a Wait step before it (long enough for the old prompt to end), or raise the minimum audio.
Start from a preset
- IVR menu: expect audio → send
1→ expect audio → send#→ expect hangup. - Voicemail login: expect audio → send
{ext}#→ expect audio → send1234#→ expect audio. With several callers,{ext}is each caller's own mailbox, so the password must be the same for all test mailboxes — or use one caller.
What happens on the wire
- The callers register as virtual phones (as in calls to a number).
- Calls are placed at the set rate (default 1 call at 1 CPS), round-robin over the callers.
- On answer the tester starts the call's RTP/SRTP stream: it sends silence and measures the level of what the PBX sends (decoded in the call's codec: G.722, PCMA or PCMU).
- The steps run. Digits go out in the same stream: RFC 2833 telephone-event packets on the payload type the PBX answered with, or in-band tones in the codec. See DTMF.
- When the script ends, BYE.
The destination must be one of the profile's allowed destinations, and the profile's media mode must be rtp or srtp.
Choose the settings
| Setting | Default | |
|---|---|---|
| Destination | first allowed | the number to dial |
| Callers | 1 | extensions that place the calls (0 = all of the set) |
| Calls | 1 | total calls |
| CPS | 1 | at most safety.max_cps |
| Max concurrent | safety limit | |
| DTMF method | RFC 2833 | or in-band |
| Digit / gap | 100 / 100 ms | 40–500 / 40–1000 ms |
| Audio level threshold | −40 dBov | frames at or above count as audio |
| Codec offered | G.722 | PCMA, PCMU |
Read the result
| Where | What |
|---|---|
| IVR steps card | per step: reached, passed, failed, the top failure reasons, time to audio p50 / p95; the calls that passed every step (%); the first 100 failed calls with caller, step, reason and seconds into the call. Live while running: calls in the script, passed / failed and the per-step counts. |
| DTMF card | the digits sent; with ESL connected, the digits FreeSWITCH heard (its DTMF events). |
| Tiles, charts, Media path, Summary | as for a call test. There is no echo: no round-trip MOS; the packet loss of what the PBX sends is kept. |
A call that isn't answered (e.g. 486) counts in the answer rate, not as a script failure.
Set the pass / fail criteria
From the profile's criteria.ivr (its own section):
| Check | Default | Notes |
|---|---|---|
IVR script passed (min_ivr_pass_pct) | ≥ 100 % | answered calls that passed every step |
Answer rate (min_answer_rate) | ≥ 100 % | |
Setup time p95 (max_setup_p95_ms) | ≤ 500 ms | |
DTMF ok (min_dtmf_ok_pct) | off | digits FreeSWITCH heard; checked only when its DTMF events are seen |
A step that failed on most calls also shows up in What to look at with its top reason.
Avoid common mistakes
- In-band digits need detection on the PBX. FreeSWITCH only hears in-band DTMF when the dialplan starts in-band detection (
start_dtmf). RFC 2833 is the default and usually right. - Quiet prompts: lower the level threshold (e.g. −50 dBov) or the minimum audio.
- Slow prompts under load: watch the time to audio p95 grow with the rate; raise the timeouts if the check should only fail on no prompt.
- Several callers on a voicemail:
{ext}logs each caller into its own mailbox; mailboxes must exist and share the password used in the script.