|
|
|
[examplejuke-main]
|
|
|
|
exten = s,1,Answer()
|
|
|
|
same = n,Set(VOLUME(TX)=-3)
|
|
|
|
same = n,Set(c=examplejuke-main)
|
|
|
|
same = n(loop),Background(foobar/menu)
|
|
|
|
same = n,WaitExten(5)
|
|
|
|
same = n,Set(m=$[${m} + 1])
|
|
|
|
same = n,GoToIf($["${m}" < "5"]?loop)
|
|
|
|
same = n(goodbye),Background(foobar/bye)
|
|
|
|
same = n,Hangup()
|
|
|
|
|
|
|
|
exten = _00XX,1,Set(aa=foobar/00album)
|
|
|
|
same = n,GoToIf($["${EXTEN:-2}" = "00"]?8track-player,*11,1)
|
|
|
|
same = n,GoToIf($["${EXTEN:-2}" > "19"]?9999)
|
|
|
|
same = n,GoTo(cart-player,*${EXTEN:-2},1)
|
|
|
|
same = 9999,Playback(option-is-invalid)
|
|
|
|
same = n,GoTo(examplejuke-main,s,1)
|
|
|
|
|
|
|
|
exten = _01XX,1,Set(aa=foobar/01album)
|
|
|
|
same = n,GoToIf($["${EXTEN:-2}" = "00"]?8track-player,*15,1)
|
|
|
|
same = n,GoToIf($["${EXTEN:-2}" > "19"]?9999)
|
|
|
|
same = n,GoTo(cart-player,*${EXTEN:-2},1)
|
|
|
|
same = 9999,Playback(option-is-invalid)
|
|
|
|
same = n,GoTo(examplejuke-main,s,1)
|
|
|
|
|
|
|
|
exten = _02XX,1,Set(aa=foobar/02album)
|
|
|
|
same = n,GoToIf($["${EXTEN:-2}" = "00"]?8track-player,#12,1)
|
|
|
|
same = n,GoToIf($["${EXTEN:-2}" > "19"]?9999)
|
|
|
|
same = n,GoToIf($["${EXTEN:-2}" < "10"]?cart-player,#${EXTEN:-1},1) ; these files don't have a leading zero
|
|
|
|
same = n,GoTo(cart-player,*${EXTEN:-2},1)
|
|
|
|
same = 9999,Playback(option-is-invalid)
|
|
|
|
same = n,GoTo(examplejuke-main,s,1)
|