Jump to content

- PBXUser

- # PBXUser.NumberOfNewVoiceMessages()

  Followers 0

  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

  - May 22, 2022
  Share
  Share
  Followers 0

## Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.