Does someone have a link to step-by-step instructions to making the Line-In on the console sound card a MOH source? I know this has to work somehow. Chris Coulthurst <mailto:chris@shuksan.com> chris@shuksan.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050512/4a3c3025/attachment.htm
Does someone have a link to step-by-step instructions to making the Line-In on the console sound card a MOH source? I know this has to work somehow. Chris Coulthurst <mailto:chris@shuksan.com> chris@shuksan.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050512/606929bd/attachment.htm
On Thu, May 12, 2005 at 02:53:02PM -0700, Chris Coulthurst said:> Does someone have a link to step-by-step instructions to making the > Line-In on the console sound card a MOH source? > > I know this has to work somehow.You can probably use sox as a filter / source, but it will probably take code. Why would you want this? Just record the tape / CD to a file... If you are thinking of piping radio, that probably violates copyright and you would also need to pay ASCAP fees... BTW, posting your question twice half an hour apart is not good etiquette.
On Thu, 12 May 2005, Chris Coulthurst wrote:> Does someone have a link to step-by-step instructions to making the > Line-In on the console sound card a MOH source?You can probably use the Remote MoH patch from http://bugs.digium.com/view.php?id=3565 Peter
Hi, this is a rather ugly solution I devised. Create a script called 'ast-playlinein' (or whatever) in /usr/sbin, as follows: #!/bin/bash /usr/bin/arecord -q -c 1 -r 8000 --buffer-size=2048 -f S16_LE -D hw:0,0 -t raw In musiconhold.conf: [classes] default => custom:/var/lib/asterisk/mohmp3,/usr/sbin/ast-playlinein And that's it. Basically, the script takes input from line-in and sends it to standard output in the format Asterisk expects. You also have to select line-in as recording source using alsamixer utility. If you are using a sound system other than ALSA, odds are that it has some tool similar to arecord. Bear in mind that /var/lib/asterisk/mohmp3 directory still has to contain at least one file with .mp3 extension (can be whatever you like). Hope this helps. -- Niksa