OpenWrt Forum Archive

Topic: Musiconhold service start, but hear no sound ...

The content of this topic has been archived on 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

Could anyone help me ? It is now a week that I try to make the musiconhold to work, but I don't manage.

Here are the specs of my devices:

- Asus WL500gP
- WhiteRussain 0.9
- Asterisk 1.4 from (http://members.home.nl/hans.zandbelt/op … erisk-1.4/)

My extensions.conf
------------------
exten => s,1,Ringing
exten => s,2,Wait(6)
exten => s,n,WaitMusicOnHold(20)
exten => s,n,MusicOnHold(default)
.....

My musiconhold.conf
-------------------
[default]
mode=files
directory=/usr/lib/asterisk/moh/

(In the /usr/lib/asterisk/moh/ folder I put two musics  *.gsm file. )


The Asterisk log
----------------

[Jul  1 09:08:44] NOTICE[2098]: chan_sip.c:12231 handle_response_peerpoke: Peer 'wengo-didi' is now Reachable. (58ms / 2000ms)
[Jul  1 09:08:48] NOTICE[2098]: chan_sip.c:15322 sip_poke_noanswer: Peer 'alexykiwak' is now UNREACHABLE!  Last qualify: 0
    -- Executing [s@incoming:1] Ringing("SIP/titi-1006dad8", "") in new stack
    -- Executing [s@incoming:2] Wait("SIP/titi-1006dad8", "6") in new stack
    -- Executing [s@incoming:3] WaitMusicOnHold("SIP/titi-1006dad8", "20") in new stack
    -- Started music on hold, class 'default', on SIP/titi-1006dad8

.........

Asterisk starts the musiconhold service but I hear no sound on the phone. I don't understant why. I already had read the others users same problems but noone seems to solve mines.

Thanks for your help.

Palex91

palexy91 wrote:

My musiconhold.conf
-------------------
[default]
mode=files
directory=/usr/lib/asterisk/moh/

(In the /usr/lib/asterisk/moh/ folder I put two musics  *.gsm file. )

1. are you able to playback and hear sounds such as: Playback(transfer) ?
2. are you able to listen to music-on-hold calling in from another device ?
3. check your gsm music files; which are these and where did you get 'm?

Hans.

1. With the Playback app I am able to have sound back e.g: Playback(/usr/lib/asterisk/hmong-s1), hmong-s1 is my sound file "hmong-s1.gsm".
2. I am not able to have sound with the app musiconhold. I tried everything but no sound.
   I am able to hear sound with the Dial(SIP/XXXX,A(Playback(/usr/lib/asterisk/hmong-s1)).
3. My *.gsm files are in the /usr/lib/asterisk/moh/ folder. I got them with sox utility.
   I tested all my sound files with the Playback/Backgroud app and they are ok. I hear the music.
   It is very strange that I got nothing with the musiconhold app.

Thank for your fast reply.

Palexy91

palexy91 wrote:

1. With the Playback app I am able to have sound back e.g: Playback(/usr/lib/asterisk/hmong-s1), hmong-s1 is my sound file "hmong-s1.gsm".
2. I am not able to have sound with the app musiconhold. I tried everything but no sound.
   I am able to hear sound with the Dial(SIP/XXXX,A(Playback(/usr/lib/asterisk/hmong-s1)).

Do you mean /usr/lib/asterisk/moh/hmong-s1 ? If not you seem to have two locations for the hmong-s1 file...
                                                              ^^^

palexy91 wrote:

3. My *.gsm files are in the /usr/lib/asterisk/moh/ folder. I got them with sox utility.
   I tested all my sound files with the Playback/Backgroud app and they are ok. I hear the music.
   It is very strange that I got nothing with the musiconhold app.

Thank for your fast reply.

Palexy91

can you confirm that this:

  exten => s,1,Answer
  exten => s,n,Playback(/usr/lib/asterisk/moh/hmong-s1)
  exten => s,n,MusicOnHold()

works ie. playback works but no moh on the same channel/device ? (you'd have to sit through the playback so I don't hope the song is too long...)

Hans.

I've just wrote an error on the path of the song on my previous message. I confirm that the path is "/usr/lib/asterisk/moh/hmong-s1" and not "/usr/lib/asterisk/hmong-s1".
I am able to have sound with Playback(/usr/lib/asterisk/moh/hmong-s1).  I tried the Dial app ie. Dial(SIP/XXXX,120,m) but no sound returning to the calling party too. I am really desperate because I absolutely need this functionality.

Please, what did you mean by "playback works but no moh on the same channel/device ?" ? For information, the duration of the song is around 3 mn.

Thanks zandbelt, I really appreciate your help.

Palexy91.

The discussion might have continued from here.