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

2016-08-12 Thread Jonathan H
Hello! I thought having finally "cracked it", I might as well post what I've done. https://github.com/lardconcepts/asterisk-digitalocean-voipfone-config/blob/master/moh-switching.md Can someone please take a quick look and see if there's anything I could have done better or more efficiently, or

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

2016-05-11 Thread Dovid Bender
If you ever figure out AAC in Asterisk for MOH let me know. The ones that I have working is MP3 and MMS. On Mon, May 9, 2016 at 1:18 PM, Jonathan H wrote: > Thanks Joshua and everyone, > > Joshua's solution seems a lot simpler and works well. Only one thing > now - The

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

2016-05-09 Thread Steve Edwards
On Mon, 9 May 2016, Jonathan H wrote: I realise mine is a bit of a niche case... Have you looked at the externalivr() application? -- Thanks in advance, - Steve Edwards sedwa...@sedwards.com Voice:

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

2016-05-09 Thread Joshua Colp
Jonathan H wrote: Thanks Joshua, I realise mine is a bit of a niche case, so I certainly don't expect to be catered for "out of the box" as it were, but is there some way Dovid's solution could be wrangled into doing what I require then? Dovid mentions this (lower case!) g option, but call me

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

2016-05-09 Thread Jonathan H
Thanks Joshua, I realise mine is a bit of a niche case, so I certainly don't expect to be catered for "out of the box" as it were, but is there some way Dovid's solution could be wrangled into doing what I require then? Dovid mentions this (lower case!) g option, but call me thick, but I'm not

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

2016-05-09 Thread Joshua Colp
Jonathan H wrote: Thanks Joshua and everyone, Joshua's solution seems a lot simpler and works well. Only one thing now - The reason I named the classes as I did, was so that I could select the class based on callerID plus extension. Unless I've misread it, I'm limited to 9 switchable classes

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

2016-05-09 Thread Jonathan H
Thanks Joshua and everyone, Joshua's solution seems a lot simpler and works well. Only one thing now - The reason I named the classes as I did, was so that I could select the class based on callerID plus extension. Unless I've misread it, I'm limited to 9 switchable classes via the "digit=#"

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

2016-05-09 Thread A J Stiles
On Monday 09 May 2016, Jonathan H wrote: > . {stuff deleted} . > [streamdemo] > exten => s,1,Answer > exten => s,2,BackGround(menu) > exten => s,3,WaitExten > exten => s,4,Goto(s,2) > exten => > _[2,3,4,5],1,Dial(Local/${EXTEN}@play-radio,,G(play-radio^${EXTEN}^2)) > exten =>

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

2016-05-09 Thread Joshua Colp
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

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

2016-05-09 Thread Joshua Colp
Dovid Bender wrote: 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

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

2016-05-09 Thread Dovid Bender
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

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

2016-05-09 Thread Dovid Bender
nd(play-menu) > > Exten => s,3,waitexten > > Exten => S,4,Goto(s,2) > > > > Exten => 1,1,Dial(Local/CNN@play-radio) > > Exten => 1,2,Goto(s,2) > > > > Exten => 2,1,Dial(Local/NPR@play-radio) > > Exten => 2,2,Goro(s,2) > > > > [play-

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

2016-05-09 Thread Dovid Bender
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 wrote: > Jonathan H wrote: > >> I'd like multiple people to be able to dial in and listen to various >> live radio

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

2016-05-09 Thread Joshua Colp
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

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

2016-05-09 Thread Jonathan H
Z].,1,Answer > Exten => _[A-Z].,2,Musiconhold(${EXTEN}) > > > Regards, > > Dovid > > -Original Message- > From: Jonathan H <lardconce...@gmail.com> > Sender: asterisk-users-bounces@lists.digium.comDate: Sun, 8 May 2016 11:36:42 > To: Asterisk Users Mailin

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

2016-05-08 Thread Dovid Bender
ces@lists.digium.comDate: Sun, 8 May 2016 11:36:42 To: Asterisk Users Mailing List - Non-Commercial Discussion<asterisk-users@lists.digium.com> Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users@lists.digium.com> Subject: [asterisk-users] Switching b

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

2016-05-08 Thread Jonathan H
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