|
|
|
@ -12,7 +12,7 @@
|
|
|
|
|
setup() {
|
|
|
|
|
printf "[$name-main]\nexten = s,1,Answer()\nsame =n,Set(VOLUME(TX)=$vol)\nsame = n,Set(c=$name-main)\nsame = n(return),Set(m=1)\nsame = n(loop),Background($rootfolder/$introfile)\n"
|
|
|
|
|
[ "$delay" -ne 0 ] printf "same = n,WaitExten($delay)\n"
|
|
|
|
|
printf "same = n,Set(m=\$[\${m} + 1])\nsame = n,GoToIf(\$[\"\${m}\" < \"$loop\"]?loop)\nsame = n(goodbye),Background($rootfolder/$goodbye)\nsame = n,Hangup()\n\n"
|
|
|
|
|
printf "same = n,Set(m=\$[\${m} + 1])\nsame = n,GoToIf(\$[\"\${m}\" > \"$loop\"]?loop)\nsame = n(goodbye),Background($rootfolder/$goodbye)\nsame = n,Hangup()\n\n"
|
|
|
|
|
} >> $name-juke.conf
|
|
|
|
|
|
|
|
|
|
album() {
|
|
|
|
|