Page 473 - Asterisk™: The Future of Telephony
P. 473
See Also
VoiceMail(), voicemail.conf
Wait() Waits for a specified number of seconds
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)
WaitExten() Waits for an extension to be entered
WaitExten([seconds][,options])
Waits for the user to enter a new extension for the specified number of seconds. You
can pass fractions of a second (e.g., 1.5 = 1.5 seconds). If seconds is unspecified, the
default extension timeout will be used. Most often, this application is used without
specifying the seconds options.
The options parameter may be set to the following option:
m[(class)[
Provide music on hold to the caller while waiting for an extension. Optionally, you
can specify the music on hold class within parentheses.
; wait 15 seconds for the user to dial an extension
exten => s,1,Answer()
exten => s,2,Playback(enter-ext-of-person)
exten => s,3,WaitExten(15)
See Also
Background(), TIMEOUT
WaitForRing() Waits the specified number of seconds for a ring
WaitForRing(timeout)
Waits at least timeout seconds after the next ring has completed.
; wait five seconds for a ring, and then send some DTMF digits
exten => 123,1,Answer()
exten => 123,2,WaitForRing(5)
exten => 123,3,SendDTMF(1234)
Wait() | 445