MINIVMCOUNTER(benutzer@domain
,zaehlername
)
MINIVMCOUNTER(benutzer@domain
,zaehlername
,operand
)
zaehlername
eines
Benutzer-Accounts im Mini-VoiceMail-System (Abschnitt 13.7, „Mini-VoiceMail (MiniVM)“) bzw.
setzt ihn herauf oder herunter oder auf einen bestimmten Wert.operand
wird nur zum Setzen benötigt, nicht
zum Lesen. Mögliche Werte:s
i
d
123 => { Set(MINIVMCOUNTER(philipp.kempgen@localdomain,testzaehler,s)=5); Verbose(1,### Zaehler: ${MINIVMCOUNTER(philipp.kempgen@localdomain,testzaehler)}); Set(MINIVMCOUNTER(philipp.kempgen@localdomain,testzaehler,i)=1); Verbose(1,### Zaehler: ${MINIVMCOUNTER(philipp.kempgen@localdomain,testzaehler)}); Hangup() }
| | | | | 1.6 |————————
-= Info about function 'MINIVMCOUNTER' =-
[Syntax]
MINIVMCOUNTER(<account>:name[:operand])
[Synopsis]
Reads or sets counters for MiniVoicemail message
[Description]
Valid operands for changing the value of a counter when assigning a value are:
- i Increment by value
- d Decrement by value
- s Set to value
The counters never goes below zero.
- The name of the counter is a string, up to 10 characters
- If account is given and it exists, the counter is specific for the account
- If account is a domain and the domain directory exists, counters are specific for a domain
The operation is atomic and the counter is locked while changing the value
The counters are stored as text files in the minivm account directories. It might be better to use
realtime functions if you are using a database to operate your Asterisk