[Home]

Summary:ASTERISK-17331: no musiconhold audio if no other sound has been played earlier during incoming call
Reporter:Zoltan Kovacs (kovzol)Labels:
Date Opened:2011-02-01 17:22:12.000-0600Date Closed:2012-02-02 09:26:32.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Resources/res_musiconhold
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:I have been playing for 4 hours to find out what happens here with MoH.

I learned that playing is started, but no audio can be heard. I tried incoming calls with the following dialplan:

exten => _X.,1,NoOp(Incoming call on ${EXTEN})
exten => _X.,n,Answer
exten => _X.,n,Wait(2)
;exten => _X.,n,MP3Player(/var/lib/asterisk/moh/mp3/test.mp3)
;exten => _X.,n,Playback(silence/2)
exten => _X.,n,WaitMusicOnHold(30)

The musiconhold.conf file is pretty normal:

[default]
mode=files
directory=/var/lib/asterisk/moh

I copied the macroform*, manolo* and reno* files to /var/lib/astersik/moh in all available formats (.alaw, .gsm, .ulaw, .wav).

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

To be honest, I'm using 1.4.38.

Now it seems to be a workaround to put a short silence before starting MoH. But this shouldn't be a proper way for that.
Comments:By: Leif Madsen (lmadsen) 2011-02-07 13:47:34.000-0600

I always do a Playback(silence/1) before playing any prompt or audio. I'm going to acknowledge this, but this is extremely minor.

By: Zoltan Kovacs (kovzol) 2011-05-19 15:18:01

OK, thanks! I can live with this workaround. ;-)

By: Kinsey Moore (kmoore) 2011-08-15 10:47:04.134-0500

Can this be reproduced in Asterisk 1.8+?  I attempted it but was not able to produce the expected results.

By: Matt Jordan (mjordan) 2012-02-02 09:26:25.746-0600

Per the Asterisk maintenance timeline page at http://www.asterisk.org/asterisk-versions maintenance (bug) support for the 1.4 and 1.6.x branches has ended. For continued maintenance support please move to the 1.8 branch which is a long term support (LTS) branch. For more information about branch support, please see https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions.  After testing with Asterisk 1.8, if you find this problem has not been resolved, please open a new issue against Asterisk 1.8.