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)
![Tom Wellige](http://content.invisioncic.com/r255538/monthly_2020_04/facebook2.thumb.png.7201b63ad83065920f23d2478c4a838f.png)
By Tom Wellige