B.138. WaitMusicOnHold()

Play music-on-hold while waiting for the specified number of seconds.
WaitMusicOnHold(duration)
Plays music-on-hold while waiting for the specified number of seconds. If no hold music is available, it waits anyway, but without playing music.
Returns 0 on completion, or -1 if the channel is hung up.
; 5 Minuten Wartemusik:
exten => 123,1,Answer()
exten => 123,n,WaitMusicOnHold(300)
exten => 123,n,Hangup()

Note

Internal help for this application in Asterisk 1.4:
  -= Info about application 'WaitMusicOnHold' =- 

[Synopsis]
Wait, playing Music On Hold

[Description]
WaitMusicOnHold(delay): Plays hold music specified number of seconds.  Returns 0 when
done, or -1 on hangup.  If no hold music is available, the delay will
still occur with no sound.
diff output to internal help in Asterisk 1.2:
- none - 
See also
musiconhold.conf