Indicate ringing tone
Request that the channel indicate ringing tone to the user.
On an unanswered SIP channel this will send a "180 Ringing" to the endpoint.
exten => s,1,Answer
exten => s,n,Ringing
exten => s,n,Wait(2)
exten => s,n,do something else
Asterisk | Applications | Functions | Variables | Expressions | Asterisk FAQ
Description
Ringing()Request that the channel indicate ringing tone to the user.
On an unanswered SIP channel this will send a "180 Ringing" to the endpoint.
Example
On an answered channel Ringing returns immediately and moves to the next step in the dialplan. I needed to make the caller hear ringback tone for a couple of seconds when they selected an IVR option. the solution was to use wait in combinations of ringing. See example below.exten => s,1,Answer
exten => s,n,Ringing
exten => s,n,Wait(2)
exten => s,n,do something else
See also
- Asterisk cmd Progress
- Asterisk cmd Answer
- Asterisk cmd WaitForRing
- Asterisk config indications.conf
- Asterisk cmd Playtones
Asterisk | Applications | Functions | Variables | Expressions | Asterisk FAQ