login | register
Tue 02 of Dec, 2008 [13:59 UTC]

voip-info.org

Discuss [3] History

Asterisk cmd Ringing

Created by: oej,Last modification on Fri 12 of Oct, 2007 [07:29 UTC] by chandave

Ringing

Synopsis

 Indicate ringing tone

Description


 Ringing()

Request that the channel indicate ringing tone to the user.

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,ringing
 exten => s,2,wait(2)
 exten => s,3,do something else

See also



Asterisk | Applications | Functions | Variables | Expressions | Asterisk FAQ


Comments

Comments Filter
222

333Re: Is it needed if you have PRI?

by svennielsen, Friday 07 of April, 2006 [13:47:55 UTC]
Incoming ISDN (BRI/PRI) in Germany:
I guess you need Ringing cmd if it takes some time until your dial plan reaches the Dial cmd, or if you want to process a call-in further after a Dial() cmd failed.
Usually Dial() seems to indicate ringing automatically (you dont need the r option) so incoming call knows whats happening and stays up (sorry, dont know the official terms for this ;-). However, my hfc-s card just hang a few hours ago, resulting in the Dial() cmd returning with "everyone busy/congested" and that lead to incoming call being cancelled. But, I want to forward the call to voicemail, so I stay reachable next time the card freaks out. So, as one of the first things in the Dial Plan I inserted a Ringing cmd for all incoming calls. This keeps the call up, until I explicitly indicate Busy, Congestion, Hangup etc.
222

333Is it needed if you have PRI?

by mmenaz, Friday 19 of November, 2004 [00:07:49 UTC]
One posted in the asterisk IRC channel that "Ringing is used to signal the other end to give PROCEEDING indication (if you're using PRI)". But I'm not using PRI and I'm a newbie
222

333Use Dial option r if you are dialing

by warren, Wednesday 11 of August, 2004 [15:34:40 UTC]
I thought that you would do Ringing() right before Dial() to make a ringing tone sound while the dialed phone was ringing, but that's wrong. Do that with Dial(channel, timeout, r). Ringing() is useful, I suppose, if you want to make someone think they're ringing a phone. Can someone explain this better than I did?

Also, maybe "See also" should point to Dial().