[asterisk-users] Switching between Music on Hold streams. [13.8.2]

Dovid Bender dovid at telecurve.com
Sun May 8 08:56:40 CDT 2016


What you do is you dial another context and then use the G option in the dial string. So something like this.

Exten => s,1,answer
Exten => s,2,Background(play-menu)
Exten => s,3,waitexten
Exten => S,4,Goto(s,2)

Exten => 1,1,Dial(Local/CNN at play-radio)
Exten => 1,2,Goto(s,2)

Exten => 2,1,Dial(Local/NPR at play-radio)
Exten => 2,2,Goro(s,2)

Exten => _[A-Z].,1,Answer
Exten => _[A-Z].,2,Musiconhold(${EXTEN})



-----Original Message-----
From: Jonathan H <lardconcepts at gmail.com>
Sender: asterisk-users-bounces at lists.digium.comDate: Sun, 8 May 2016 11:36:42 
To: Asterisk Users Mailing List - Non-Commercial Discussion<asterisk-users at lists.digium.com>
Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion
 <asterisk-users at lists.digium.com>
Subject: [asterisk-users] Switching between Music on Hold streams. [13.8.2]

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.

But might there be some trick involved merged or bridged calls, or
chan_spy or something, so that callers could quickly switch between 3
streams with a keypress?

Thank you!

-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:

More information about the asterisk-users mailing list