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

A J Stiles asterisk_list at earthshod.co.uk
Mon May 9 12:00:40 CDT 2016


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 => _[2,3,4,5],2,Goto(s,2)

You have an error in your dialplan!  The pattern _[2,3,4,5] will match any of 
2, a comma, 3, a comma  (again), 4, a comma or 5.

I think you might mean  _[2345]  which will match any of 2, 3, 4 or 5  (but 
not a comma),  and contains no tautologies.


-- 
AJS

Note:  Originating address only accepts e-mail from list!  If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .



More information about the asterisk-users mailing list