Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
PAGI
Client
IClient
setMusic
PAGI\Client\IClient::setMusic PHP Method
IClient Interface Documentation
Show file
Open project: marcelog/pagi
setMusic()
public
method
Enables/Disables the music on hold generator. Uses agi command "SET MUSIC".
public
setMusic
(
boolean
$enable
,
string
$class
= false ) :
void
$enable
boolean
True to enable, false to disable.
$class
string
If
is not specified then the default music on hold class will be used.
return
void
public function setMusic($enable, $class = false);
IClient
amd
answer
channelStatus
consoleLog
createNode
createNodeController
databaseDel
databaseDeltree
databaseGet
databasePut
dial
exec
faxReceive
faxSend
getAsteriskLogger
getCDR
getCallerId
getChannelVariables
getData
getFullVariable
getOption
getVariable
hangup
indicateBusy
indicateCongestion
indicateProgress
log
playBusyTone
playCongestionTone
playCustomTones
playDialTone
playTone
record
sayAlpha
sayDate
sayDateTime
sayDigits
sayNumber
sayPhonetic
sayTime
sendImage
sendText
setAutoHangup
setCallerId
setContext
setExtension
setLogger
setMusic
setPriority
setVariable
sipHeaderAdd
sipHeaderRemove
stopPlayingTones
streamFile
waitDigit