Ari custom hold music

HI Team, I am using musiconhold with database like mysql to play moh in real time
but i want play startmoh not any play command and i have the public mp3 url how can i play that url without using any database and in realtime please help
i tried to chanage the custommoh.confg file and added my new class

[custom_moh]
mode=custom
application=/usr/bin/mpg123 -q -r 8000 --mono -s http://example.com/stream.mp3
timeout=10

but as soon as i reload the module it starts getting me errro like

: res_musiconhold.c:820 monmp3thread: poll() failed: Interrupted system call
[Apr 21 17:16:34] WARNING[21046]: res_musiconhold.c:820 monmp3thread: poll() failed: Interrupted system call
[Apr 21 17:16:34] WARNING[21046]: res_musiconhold.c:820 monmp3thread: poll() failed: Interrupted system call
[Apr 21 17:16:34] WARNING[21046]: res_musiconhold.c:820 monmp3thread: poll() failed: Interrupted system call
[Apr 21 17:16:34] WARNING[21046]: res_musiconhold.c:820 monmp3thread: poll() failed: Interrupted system call
[Apr 21 17:16:34] WARNING[21046]: res_musiconhold.c:820 monmp3thread: poll() failed: Interrupted system call
[Apr 21 17:16:34] WARNING[21046]: res_musiconhold.c:820 monmp3thread: poll() failed: Interrupted system call
[Apr 21 17:16:34] WARNING[21046]: res_musiconhold.c:820 monmp3thread: poll() failed: Interrupted system call
[Apr 21 17:16:34] WARNING[21046]: res_musiconhold.c:820 monmp3thread: poll() failed: Interrupted system call
[Apr 21 17:16:34] WARNING[21046]: res_musiconhold.c:820 monmp3thread: poll() failed: Interrupted system call
[Apr 21 17:16:34] WARNING[21046]: res_musiconhold.c:820 monmp3thread: poll() failed: Inter

please help me and i will have dynamic url for every call how to make this work
using asterisk
Asterisk certified-18.9-cert13 cur

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.