Hi all,
at the step of setting up the moh and classes
when i put the call on hold the moh starts/ stops and starts
here is the output
-- Started music on hold, class 'parkinglot_moh', on channel 'SIP/4211-00000092'
-- Stopped music on hold on SIP/4211-00000092
-- Started music on hold, class 'parkinglot_moh', on channel 'SIP/4211-00000092'
it worked with default context - i am trying to play an mp3 file - i tried with
type=mp3
and
type=mp3nb
then i noticed this on reload
== Parsing ‘/etc/asterisk/musiconhold.conf’: Found
[May 8 12:40:55] WARNING[14403]: res_musiconhold.c:540 spawn_mp3: moh-1 is not a valid directory
[May 8 12:40:55] WARNING[14403]: res_musiconhold.c:681 monmp3thread: Unable to spawn mp3player
i created moh-1 under /var/lib/asterisk where original moh exists
then i hardcoded the full path to the directory and after that if i put a call on hld i get a flood of the following
[parkinglot_moh]
mode=mp3nb
directory=/var/lib/asterisk/moh-1
[May 8 12:53:55] WARNING[14711]: res_musiconhold.c:701 monmp3thread: poll() failed: Interrupted system call
[May 8 12:53:55] WARNING[14711]: res_musiconhold.c:701 monmp3thread: poll() failed: Interrupted system call
[May 8 12:53:55] WARNING[14711]: res_musiconhold.c:701 monmp3thread: poll() failed: Interrupted system call
[May 8 12:53:55] WARNING[14711]: res_musiconhold.c:701 monmp3thread: poll() failed: Interrupted system call
[May 8 12:53:55] WARNING[14711]: res_musiconhold.c:701 monmp3thread: poll() failed: Interrupted system call
[May 8 12:53:55] WARNING[14711]: res_musiconhold.c:701 monmp3thread: poll() failed: Interrupted system call
[May 8 12:53:55] WARNING[14711]: res_musiconhold.c:701 monmp3thread: poll() failed: Interrupted system call
[May 8 12:53:55] WARNING[14711]: res_musiconhold.c:701 monmp3thread: poll() failed: Interrupted system call
[May 8 12:53:55] WARNING[14711]: res_musiconhold.c:701 monmp3thread: poll() failed: Interrupted system call