Lua → VBScript SwxWare v13.10
This function sets or returns the current number of received new voicemails of the script user.
-- get number of new voicemails local nNumber = PBXUser.NumberOfNewVoicemails() -- set number of new voicemails PBXUser.NumberOfNewVoicemails(5)
This property takes or returns a number value.
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