****UPDATE. I successfully got MOH working via LINE IN on sound card. Please read the thread for more info. As always with Asteisk and Open source - your mileage may vary.
Anyone here have any luck getting MOH to work with the LINE IN on the sound card?
I know this is a common MOH topic but I have only found examples but nothing that seems to explain or support that it works.
Here is my setup:
musiconhold_additional.conf
[default]
mode=custom
directory=/var/lib/asterisk/mohmp3
application=/var/lib/ast-playlinein
ast-playlinein
#!/bin/bash
/usr/bin/arecord -q -c 1 -r 8000 --buffer-size=2048 -f S16_LE -t raw
Log of error when MOH is launched
-- Executing Answer("SIP/2100-0977a780", "") in new stack
-- Executing Playback("SIP/2100-0977a780", "pls-hold-while-try") in new stack
-- Playing 'pls-hold-while-try' (language 'en')
-- Executing SetMusicOnHold("SIP/2100-0977a780", "default") in new stack
-- Executing WaitMusicOnHold("SIP/2100-0977a780", "300") in new stack
-- Started music on hold, class 'default', on channel 'SIP/2100-0977a780'
-- Stopped music on hold on SIP/2100-0977a780
I have tried many differnet varaitions (CHOMD, enable line in on the mixer etc) with restarting asterisk between all of the tries. If I lauch the ast-playlinein It does give me alot of character feedback. I luanched the mixer and made sure my line is was on and verified it with the speakers. Looks to be something with my syntax and or rights.
Any suggestions or pointers that any of you have will be great. I know this is more of an Asterisk Issue but figured I would see if anyone here has come across this and had any success
Member Since:
2006-08-09