C.35. MUSICCLASS()

MUSICCLASS(class)
Reads/sets the music-on-hold class.
; Query:
exten => 123,1,Set(foo=${MUSICCLASS()})

; Set to "HeavyMetal":
exten => 123,1,Set(MUSICCLASS()=HeavyMetal)

Important

Deprecated as of Asterisk 1.4. Use Set(CHANNEL(musicclass)=default) instead. See Section C.7, “CHANNEL().

Note

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

[Syntax]
MUSICCLASS()

[Synopsis]
Read or Set the MusicOnHold class

[Description]
Deprecated. Use CHANNEL(musicclass) instead.
diff output to internal help in Asterisk 1.2:
11c11
< Deprecated. Use CHANNEL(musicclass) instead.
---
> This function will read or set the music on hold class for a channel.