Dovid Bender
2016-May-09 14:24 UTC
[asterisk-users] Switching between Music on Hold streams. [13.8.2]
Josh, As he is playing different streams I think he wants to give the users the option to select another stream. On Mon, May 9, 2016 at 9:58 AM, Joshua Colp <jcolp at digium.com> wrote:> Jonathan H wrote: > >> I'd like multiple people to be able to dial in and listen to various >> live radio streams. >> >> I was told that the correct resource-friendly way would be to setup a >> MoH class, and then select that from the dialplan. >> >> This works well, but how do I switch between streams? >> >> Someone correct me if I'm wrong, but from previous similar questions a >> few years ago it seems like once you've entered a MoH class, there is >> no exit. >> > > You can configure music classes with a DTMF digit that when pressed when > listening to music on hold will cause the channel to switch to the new > music class. > > From the musiconhold.conf sample file: > > ;digit=# ; If this option is set for a class, then when callers ; > ; are > ; ; listening to music on hold, they can press this > ; ; digit, and > ; ; they will switch to listening to this music class. > > Cheers, > > -- > Joshua Colp > Digium, Inc. | Senior Software Developer > 445 Jan Davis Drive NW - Huntsville, AL 35806 - US > Check us out at: www.digium.com & www.asterisk.org > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160509/d5ddd5d2/attachment.html>
Joshua Colp
2016-May-09 14:45 UTC
[asterisk-users] Switching between Music on Hold streams. [13.8.2]
Dovid Bender wrote:> Josh, > > As he is playing different streams I think he wants to give the users > the option to select another stream.Each stream should be a separate music class, so switching between using the DTMF feature would still work - unless I'm misunderstanding what is trying to be achieved here. -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org
Dovid Bender
2016-May-09 14:49 UTC
[asterisk-users] Switching between Music on Hold streams. [13.8.2]
Josh, He mentioned that he is building something for radio stations for people to listen into. They want to be able to select what they hear. I recently built a system where people could call and listen to rail road traffic. Using the g option in the dial string + # was the only way to let them select. On Mon, May 9, 2016 at 10:45 AM, Joshua Colp <jcolp at digium.com> wrote:> Dovid Bender wrote: > >> Josh, >> >> As he is playing different streams I think he wants to give the users >> the option to select another stream. >> > > Each stream should be a separate music class, so switching between using > the DTMF feature would still work - unless I'm misunderstanding what is > trying to be achieved here. > > > -- > Joshua Colp > Digium, Inc. | Senior Software Developer > 445 Jan Davis Drive NW - Huntsville, AL 35806 - US > Check us out at: www.digium.com & www.asterisk.org > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160509/6c3d56f1/attachment.html>