Soporte & Consultoria

Soporte Remoto y Consultoria skype : ambiorixg12.
Nota no se brinda ningun tipo de consulta o soporte fuera del blog de forma gratuita

viernes, 24 de febrero de 2012

Musica en espera en Asterisk


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

Synopsis


MusicOnHold(class)

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

Synopsis


WaitMusicOnHold(delay)

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

Synopsis


SetMusicOnHold(class)

This application has been deprecated in favor of:

Set(CHANNEL(musicclass)=...)
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