|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
#ajw v1.0 - jukebox for asterisk wizard
|
|
|
|
|
#ajw v1.01 - jukebox for asterisk wizard
|
|
|
|
|
#Jay Moore/NQ4T - https://git.pickmy.org/dewdude/ajw
|
|
|
|
|
#Licensed under GPL-3.0-or-later
|
|
|
|
|
|
|
|
|
@ -16,7 +16,7 @@ printf "same = n,WaitExten($delay)\nsame = n,Set(m=\$[\${m} + 1])\nsame = n,GoTo
|
|
|
|
|
album() {
|
|
|
|
|
printf "exten = _%02dXX,1,Set(aa=$rootfolder/$folder)\n" $a
|
|
|
|
|
[ "$lz" -eq 0 ] && printf "same = n,GoToIf(\$[\"\${EXTEN:-2}\" = \"00\"]?8track-player,#$tc,1)\n" || printf "same = n,GoToIf(\$[\"\${EXTEN:-2}\" = \"00\"]?8track-player,*$tc,1)\n"
|
|
|
|
|
[ "$lz" -eq 0 ] && printf "same = n,GoToIf(\$[\"\${EXTEN:-2}\" < \"10\"]?cart-player,\#\${EXTEN:-1},1)\n"
|
|
|
|
|
[ "$lz" -eq 0 ] && printf "same = n,GoToIf(\$[\"\${EXTEN:-2}\" < \"10\"]?cart-player,#\${EXTEN:-1},1)\n"
|
|
|
|
|
printf "same = n,GoTo(cart-player,*\${EXTEN:-2},1)\n\n"
|
|
|
|
|
} >> $name-juke.conf
|
|
|
|
|
|
|
|
|
|