[asterisk-users] MusicOnHold from a Sound card

Timothy Smith timotsmith at gmail.com
Fri Oct 31 04:34:34 CDT 2008


Hi,

I would like to get musiconhold from a sound card. This is because I
want to kind of be a DJ and easily change the music playing, etc.
However, I followed the instructions at
http://www.voip-info.org/wiki-Asterisk+config+musiconhold.conf and
other tutorials on the net but no success. I have

[mycustom]
mode=custom
directory=/var/lib/asterisk/mohmp3
application=/usr/sbin/ast-playlinein

and /usr/sbin/ast-playlinein contains

 #!/bin/bash
 /usr/bin/arecord -q -c 1 -r 8000 --buffer-size=2048 -f S16_LE -t raw

Am running asterisk 1.4 as root on suse 11.0 and 10.2. When I'm
playing a music file (using amarok), my music onhold is silent. Is
there anything I can do?

Any help of pointers will be appreciated.

Regards,
Tim



More information about the asterisk-users mailing list