[Asterisk-Users] MOH sourced from a sound card?

Mark Phillips g7ltt at g7ltt.com
Wed Feb 1 03:57:00 MST 2006


This looks like the solution.

I'll let you know how I get on.

Mark, G7LTT/KC2ENI
Randolph, NJ
http://www.g7ltt.com


asterisk at b-great.net wrote:
> Hello,
> 
> MP> Can I couple this to the sound card in the Asterisk server and then have
> MP> it play into the MOH? If so how?
> 
> Yes, it's possible. I've tried it last week.
> 
> 1. Add the following into musiconhold.conf:
> 
> [default]
> mode=custom
> directory=/var/lib/asterisk/mohmp3
> application=/usr/sbin/ast-playlinein
> 
> In /var/lib/asterisk/mohmp3 should be at least one mp3 file.
> 
> 2. Create script file /usr/sbin/ast-playlinein and make it executable:
> 
> #!/bin/bash
> /usr/bin/arecord -q -c 1 -r 8000 --buffer-size=2048 -f S16_LE -t raw
> 
> 3. Then you need to configure your mixer to turn on LINE-IN capturing.
> You may plug into line-in FM-tuner or external audio player.
> 
> Don't forget to reload (should be enough) asterisk.
> 
> --
> Grigoriy Puzankin
> 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 



More information about the asterisk-users mailing list