; extensions.conf
[Hints]
exten => 9901,hint,Custom:LoginStat01
exten => 9801,hint,Custom:QueueStat01
exten => 9701,hint,Custom:PauseStat01
[Internal-Main]
; Operator login/logout ==================================
exten => _99XX,1,Answer
same => n,noCDR()
same => n,GotoIf($["${DEVICE_STATE(Custom:LoginStat${CALLERID(num)})}" = "NOT_INUSE"]?logout)
same => n,Set(DEVICE_STATE(Custom:LoginStat${CALLERID(num)})=NOT_INUSE) ; login indicator becomes green
; do something and hangup
same => n(logout),NoOp("Выход из системы")
same => n,Set(DEVICE_STATE(Custom:LoginStat${CALLERID(num)})=INUSE) ; login indicator becomes red
; do something and hangup
Admin/advanced/phone -


