Name

Wait() — Waits for a specified number of seconds

Synopsis

Wait(seconds)

Waits for the specified number of seconds. You can pass fractions of a second. For example, setting seconds to 1.5 would make the dialplan wait 1.5 seconds before going on to the next priority in the dialplan.

; wait 1.5 seconds before playing the prompt
exten => s,1,Answer()
exten => s,2,Wait(1.5)
exten => s,3,Background(enter-ext-of-person)

Get Asterisk: The Future of Telephony, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.