Play music while dialing


I have the followings:

exten => _226,1,Playback(transfer)
exten => _226,2,SetCIDNum(666666666)
exten => _226,3,Dial(Zap/g2/66666666666,20)
exten => _226,4,Dial(Zap/g2/66666666667,20)
exten => _226,5,Dial(Zap/g2/66666666668,20)

I want to play a music when asterisk is dialing the numbers instead of ring…

can I do that?


exten => _226,1,Playback(transfer)
exten => _226,2,SetCIDNum(666666666)
exten => _226,3,Dial(Zap/g2/66666666666,20,m)
exten => _226,4,Dial(Zap/g2/66666666667,20,m)
exten => _226,5,Dial(Zap/g2/66666666668,20,m)

The third parameter, “m”, starts the music on hold instead of the ringback tone while dialing, you can also specify a music on hold class just after the “m” parameter.


Marco Bruni

this is what I get

 -- Started music on hold, class 'default', on channel 'Zap/67-1'
 -- Zap/49-1 is proceeding passing it to Zap/67-1
 -- Zap/49-1 is making progress passing it to Zap/67-1
  -- Stopped music on hold on Zap/67-1

I don’t hear any music

please advise


sorry…it works now… I didn’t have the player installed