Инструменты пользователя

Инструменты сайта


asterisk-pin

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Следующая версия
Предыдущая версия
asterisk-pin [2015/03/23 17:13]
83.68.35.138 создано
asterisk-pin [2016/08/23 12:48] (текущий)
Строка 4: Строка 4:
    same => n,Read(PASS,,3,,,)\\    same => n,Read(PASS,,3,,,)\\
    same => n,Playback(beep)\\    same => n,Playback(beep)\\
-   same => n,Set(N=[${N}+1])\\+   same => n,Set(N=$[${N}+1])\\
    same => n,GotoIf($[${N} = 3]?no1:yes)\\    same => n,GotoIf($[${N} = 3]?no1:yes)\\
    same => n(yes),GotoIf($["${PASS}" = "123"]?:no)\\    same => n(yes),GotoIf($["${PASS}" = "123"]?:no)\\
Строка 11: Строка 11:
    same => n(no1),Playback(enter-password-wrong)\\    same => n(no1),Playback(enter-password-wrong)\\
    same => n,Hangup()    same => n,Hangup()
 +''
 +
 +
 +
 +
 +
 +''exten => 703,1,Answer()\\
 +        same => n,Set(N=0)\\
 +        same => n(reent),Playback(vvedite-pin)\\
 +        same => n,Read(PIN)\\
 +        same => n,Set(N=$[${N}+1])\\
 +        same => n,Gotoif($[${PIN}=123]?prav:loj)\\
 +        same => n(prav),Playback(tt-monkeys)\\
 +        same => n(loj),Playback(pin-err)\\
 +        same => n,GotoIf($[${N}=3]?konec:reent)\\
 +        same => n(konec),Hangup()
 +
 '' ''
asterisk-pin.1427130823.txt.gz · Последнее изменение: 2015/03/23 20:13 (внешнее изменение)

DokuWiki Appliance - Powered by TurnKey Linux