I’ve been trying to get MoH to work from the line-in on my soundcard, but as of yet have had no success. I found this script that should allow for it to happen:
The script, when run as the asterisk user, works properly and streams sound to stdin. I can use arecord to record wavs which playback fine. But when Asterisk starts MoH it stops it immediately afterwards with no explanation. Has anyone gotten this to work? Or does anyone have any ideas on how to debug why MoH stops immediately after starting?
Thanks in advance!