VBScript → Lua
This property returns the current number of received new voicemails of the script user.
PBXUser.NumberOfNewVoicemails
This property is an integer value.
This property allows read / write access.
By incrementing this value you can enable the new voicemail indication of the current script user. By setting it to 0 you can disable it.
' switch voicemail indication on PBXUser.NumberOfNewVoicemails = PBXUser.NumberOfNewVoicemails + 1 ' switch voicemail indication off PBXUser.NumberOfNewVoicemails = 0

By Tom Wellige