[Asterisk-Users] Line-in as MOH source
Niksa Baldun
niksa.baldun at lumiss.hr
Mon Jan 3 13:09:25 MST 2005
Hello,
Most traditional PBX-es have the ability to use external audio source
(e.g. radio tuner) for music on hold. This is also useful because you
can let your users listen to radio by dialing some extension.
I wanted to achieve the same on asterisk, and chan_alsa seemed the
logical choice. I installed ALSA drivers, connected the radio to line-in
and added the folowing to extensions.conf:
exten => *55,1,Dial(Console/Line)
And indeed, now I could listen to radio by dialing *55. There are some
problems, however:
1. Asterisk treats this as a normal call, so only one user can listen at
a time. Is there a way to let several user listen simultaneously?
2. As this is a low priority call, it should be dropped when incoming
call is sent to a channel which dialed it. I guess SoftHangup could be
used, but I don't know how to determine which channel to hangup.
3. I have no idea how to use this as a source for music on hold.
Any help would be appreciated.
Niksa
More information about the asterisk-users
mailing list