Playtones()

Plays back one or more tones.

        
          Playtones(tones)
        
      

Plays a list of one or more tones. Playtones() runs in the background, i.e. it will continue to play tones while execution of the dialplan continues. The argument tones is either a tone name as defined in indications.conf or a list of tone frequencies and durations. For an explanation on how to define your own tones, see indications.conf.

Use StopPlaytones() to stop playing tones.

; Two seconds "busy", then two seconds "congestion" tones:
exten => 123,1,Playtones(busy)
exten => 123,n,Wait(2)
exten => 123,n,StopPlaytones()
exten => 123,n,Playtones(congestion)
exten => 123,n,Wait(2)
exten => 123,n,StopPlaytones()
exten => 123,n,Goto(1)
[Note]

Internal help for this application in Asterisk 1.4: 

  -= Info about application 'PlayTones' =- 

[Synopsis]
Play a tone list

[Description]
PlayTones(arg): Plays a tone list. Execution will continue with the next
 step immediately,
while the tones continue to play.
Arg is either the tone name defined in the indications.conf configuratio
n file, or a directly
specified list of frequencies and durations.
See the sample indications.conf for a description of the specification o
f a tonelist.

Use the StopPlayTones application to stop the tones playing.

diff output to internal help in Asterisk 1.2: 

- none - 

See also. the section called “StopPlaytones(), indications.conf, the section called “Busy(), the section called “Congestion(), the section called “Progress(), the section called “Ringing()