vamos a explorar las diferentes opciones para crear y personalizar la música en espera en nuestra central Asterisk.
MusicOnHold() — Plays music on hold indefinitely
MusicOnHold() — Plays music on hold indefinitely
Plays hold music specified by
class
, as configured in musiconhold.conf
. If omitted, the default music class for the channel will be used. You can use the MUSICCLASS dialplan function to set the default music class for the channel. ; transfer telemarketers to this extension to keep them busy
exten => 123,1,Answer()
exten => 123,n,Playback(tt-allbusy)
exten => 123,n,MusicOnHold(default)
WaitMusicOnHold() — Waits the specified number of seconds, playing music on hold
Plays hold music for the specified number of seconds. If no hold music is available, the delay will still occur but with no sound.
Returns 0
when done, or -1
on hangup.
; allow caller to hear Music on Hold for five minutes
exten => 123,1,Answer()
exten => 123,2,WaitMusicOnHold(300)
exten => 123,3,Hangup()
Plays hold music for the specified number of seconds. If no hold music is available, the delay will still occur but with no sound.
Returns
0
when done, or -1
on hangup.; allow caller to hear Music on Hold for five minutes
exten => 123,1,Answer()
exten => 123,2,WaitMusicOnHold(300)
exten => 123,3,Hangup()
SetMusicOnHold() — Sets the default music-on-hold class for the current channel
Sets the default class
for music on hold for the current channel. When music on hold is activated, this class will be used to select which music is played. Classes are defined in the configuration file musiconhold.conf
.
exten=s,1,Answer()
exten=s,2,SetMusicOnHold(default)
exten=s,3,WaitMusicOnHold()
Sets the default
class
for music on hold for the current channel. When music on hold is activated, this class will be used to select which music is played. Classes are defined in the configuration file musiconhold.conf
.exten=s,1,Answer()
exten=s,2,SetMusicOnHold(default)
exten=s,3,WaitMusicOnHold()
No hay comentarios:
Publicar un comentario