I thought this had been around before but I can't seem to find anything about it. I have a customer whom prior to upgrading to Asterisk invested in one of those boxes that plays your company sales campaign into the MOH port on your key system. For reasons of message maintenance he wants to keep the box as part of the new system. Can I couple this to the sound card in the Asterisk server and then have it play into the MOH? If so how? Thanks -- Mark, G7LTT/KC2ENI Randolph, NJ http://www.g7ltt.com
Found this previous thread: http://groups.google.com/group/Asterisk-users/browse_thread/thread/268e100e2 5355105/d60dea60376057b3?q=moh+from+sound+card&rnum=1#d60dea60376057b3 not sure if this works... -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Mark Phillips Sent: Tuesday, January 31, 2006 6:42 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [Asterisk-Users] MOH sourced from a sound card? I thought this had been around before but I can't seem to find anything about it. I have a customer whom prior to upgrading to Asterisk invested in one of those boxes that plays your company sales campaign into the MOH port on your key system. For reasons of message maintenance he wants to keep the box as part of the new system. Can I couple this to the sound card in the Asterisk server and then have it play into the MOH? If so how? Thanks -- Mark, G7LTT/KC2ENI Randolph, NJ http://www.g7ltt.com _______________________________________________ --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
Using the classic MoH, use a custom moh player (see http://www.voip-info.org/wiki/index.php?page=Asterisk+config+musiconhold.conf) and sox with the alsa pseudo-filetype, and output to stdout with the correct bitrate and samples... see the sox manpage for instructions. Untested, but I think that should do the job for you... Mark Phillips wrote:> I thought this had been around before but I can't seem to find > anything about it. > > I have a customer whom prior to upgrading to Asterisk invested in one > of those boxes that plays your company sales campaign into the MOH > port on your key system. > > For reasons of message maintenance he wants to keep the box as part of > the new system. > > Can I couple this to the sound card in the Asterisk server and then > have it play into the MOH? If so how? > > Thanks >
asterisk@b-great.net
2006-Feb-01 02:42 UTC
[Asterisk-Users] MOH sourced from a sound card?
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