[Home]

Summary:ASTERISK-12336: MusicOnHold playing silence
Reporter:Dennis Ljungmark (dmd)Labels:
Date Opened:2008-07-08 06:36:35Date Closed:2011-06-07 14:08:08
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Resources/res_musiconhold
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Im testing out Asterisk 1.6-beta9 (tarball release from website) and was going to add a simple testcase of a user "music" to try out moh.

Now, when I was trying this I got. Silence.
UNTIL: I added a Playback before the MusicOnHold,  Then suddenly the music played.


in the sip.conf:
[music]
type=user
username=music
host=dynamic
context=music

Two examples of extensions.conf:

Working example:
[music]
exten => music,1,Ringing
exten => music,n,Wait(2)
exten => music,3,Answer
exten => music,4,Set(CHANNEL(musicclass)=default)
exten => music,5,Playback(tt-allbusy)
exten => music,6,MusicOnHold(default,20)
exten => music,60,HangUp

NOT Working:
exten => music,1,Ringing
exten => music,n,Wait(2)
exten => music,3,Answer
exten => music,4,Set(CHANNEL(musicclass)=default)
; exten => music,5,Playback(tt-allbusy)
exten => music,6,MusicOnHold(default,20)
exten => music,60,HangUp

Im frankly at a loss as to why the music wouldnt play when you do not have a playback before.
Comments:By: Dennis Ljungmark (dmd) 2008-07-08 06:42:36

added verification that simply playing 1 second of silence will be enough that it shall start stremaing music on hold.

By: Mark Michelson (mmichelson) 2008-07-08 18:07:15

The sample dialplan provided did not cause the same results for me, but it did produce similar symptoms. For me, the Ringing was silent unless I put a playback before it. Like with you, adding a second of silence was all that was necessary to get the Ringing to play properly. I will look further into this and see what's up.

By: Mark Michelson (mmichelson) 2008-07-08 18:33:50

Well, I fixed my Ringing silence problem by setting progressinband=yes in sip.conf. I'm not sure that that will also help with the music on hold silence problem you're experiencing.

By: Dennis Ljungmark (dmd) 2008-07-09 02:27:50

Tested your solution and it does not work for this problem. (For me at least)

More instructions on how to debug further (if needed) would be good.

By: Michiel van Baak (mvanbaak) 2008-07-13 18:20:58

You do know that the sample you gave has a gap in priorities ?

If you have your dialplan with the correct priorities and it's still an issue please report back

By: Dennis Ljungmark (dmd) 2008-07-15 03:28:37

[music]
exten => music,1,Ringing
exten => music,2,Wait(2)
exten => music,3,Answer
exten => music,4,MusicOnHold(default,5)
exten => music,5,HangUp


Does not work either.

By: Grzegorz Garlewicz (garlew) 2008-08-12 02:08:32

This is what happens when there is no timing source. Try with ztdummy loaded.

By: Tilghman Lesher (tilghman) 2008-11-07 16:33:11.000-0600

dmd: did garlew's suggestion fix the problem for you?

By: Joshua C. Colp (jcolp) 2008-12-17 14:50:27.000-0600

Suspended due to lack of feedback.