OpenWrt Forum Archive

Topic: [asterisk14] musiconhold error

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

when i press #

i have this error :

-- Started music on hold, class 'default', on channel 'SIP/Yann-ordi-10071d80'
    -- <SIP/Yann-gsm-100563c0> Playing 'pbx-transfer' (language 'fr')
[Apr 10 09:48:44] NOTICE[1381]: res_musiconhold.c:531 monmp3thread: Request to schedule in the past?!?!
[Apr 10 09:48:44] NOTICE[1381]: res_musiconhold.c:531 monmp3thread: Request to schedule in the past?!?!
    -- Stopped music on hold on SIP/Yann-ordi-10071d80

and musiconhold does not work.

Why? Can you help me ?

Hello,
You need to configure musiconhold in musiconhold.conf.
To avoid adding any player , i am using file mode(gsm files)
musiconhold.conf

[default]                                                                     
mode=files                                                                     
directory=/usr/lib/asterisk/mohmp3

; File-based (native) music on hold
[native]                                                                       
mode=files                                                                     
directory=/usr/lib/asterisk/mohmp3   



Create the above dir  /usr/lib/asterisk/mohmp3  and have atleast one *.gsm file in it

Regards



yann78 wrote:

when i press #

i have this error :

-- Started music on hold, class 'default', on channel 'SIP/Yann-ordi-10071d80'
    -- <SIP/Yann-gsm-100563c0> Playing 'pbx-transfer' (language 'fr')
[Apr 10 09:48:44] NOTICE[1381]: res_musiconhold.c:531 monmp3thread: Request to schedule in the past?!?!
[Apr 10 09:48:44] NOTICE[1381]: res_musiconhold.c:531 monmp3thread: Request to schedule in the past?!?!
    -- Stopped music on hold on SIP/Yann-ordi-10071d80

and musiconhold does not work.

Why? Can you help me ?

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/

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

The discussion might have continued from here.