Hello:
Forgive me if this is documented somewhere. I've been on
www.voip-info.org and the Asterisk website and done no end of searches.
Music on hold stops without playing any sound whatsoever. Here is
Asterisk output:
> Asterisk Ready.
> *CLI> -- Starting simple switch on 'Zap/4-1'
> Nov 10 01:28:45 NOTICE[1862]: chan_zap.c:6031 ss_thread: Got event 2
(Ring/Answered)...
> -- Executing Answer("Zap/4-1", "") in new stack
> -- Executing Wait("Zap/4-1", "2") in new stack
> -- Executing MusicOnHold("Zap/4-1", "random") in
new stack
> -- Started music on hold, class 'random', on channel
'Zap/4-1'
> -- Stopped music on hold on Zap/4-1
The caller hears nothing.
Here is my musiconhold.conf:
> [random]
> mode=quietmp3
> directory=/var/lib/asterisk/mohmp3
> random=yes
Here is my dialplan:
> [globals]
>
> [default]
> exten => s,1,Answer()
> exten => s,2,Wait,2
> exten => s,3,MusicOnHold(random)
Here's what's in /var/lib/asterisk/mohmp3:
> asterisk ~ # ls /var/lib/asterisk/mohmp3/*
> /var/lib/asterisk/mohmp3/fpm-calm-river.mp3
> /var/lib/asterisk/mohmp3/fpm-sunshine.mp3
> /var/lib/asterisk/mohmp3/fpm-world-mix.mp3
What am I doing wrong?
(I wish there were better documentation of musiconhold.conf)
Thanks,
-Stephen-