diff --git a/README.md b/README.md index df50ad0..ceb8302 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,7 @@ pressing 0. # History ``` +14-AUG-2022 - Fixed missed (goodbye) label in setup context. 12-AUG-2022 - Doesn't write delay if you set Delay to 0. 11-MAY-2022 - Fatal error in accidently escaped character fixed. 07-MAY-2022 - Initial Commit diff --git a/ajw.sh b/ajw.sh index 3629520..8d78154 100644 --- a/ajw.sh +++ b/ajw.sh @@ -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,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() {