[Home]

Summary:ASTERISK-15653: Music on hold broken in 1.6.2.2
Reporter:Francesco Bernardini (francesco2)Labels:
Date Opened:2010-02-18 03:33:55.000-0600Date Closed:2011-06-07 14:07:20
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Resources/res_musiconhold
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:After my last update to Asterisk 1.6.2.2, I cannot hear MusicOnHold anymore when joining a queue.

I have also tried the following

exten => 8484,1,MusicOnHold()

and I do not hear anything despite Asterisk showing

Executing [8484@default:1] MusicOnHold("SIP/220-00000007", "") in new stack
   -- Started music on hold, class 'default', on SIP/220-00000007

---
I can hear music on hold when I make a transfer or put call on hold


****** ADDITIONAL INFORMATION ******

My musiconhold.conf is the following

[default]
mode=files
directory=/var/lib/asterisk/moh
random=yes      ; Play the files in a random order

Playback any of the file in that directory works
Comments:By: Matthias Nick (mnick) 2010-02-18 03:44:09.000-0600

would you mind to try:

exten => 8484,1,Answer()
exten => 8484,n,MusicOnHold()

By: Francesco Bernardini (francesco2) 2010-02-18 04:08:52.000-0600

Well that works. Thanks. It works also for Queue and Agi script. Before it worked without Answer(). Any change in the latest Asterisk version?