Lua SwxWare v13.10
This function returns the current external do not disturb status of the script user.
local bExternalDND = PBXUser.DoNotDisturbViaPresence()
This function returns a boolean value.
This function accesses supported external presence sources (e.g. MS Teams). To access the SwyxWare internal presesence information you can use the PBXUser.DoNotDisturb() function.
To access the presence information of any SwyxWare user and not just the current script user, please take a look on the PBXScript.GetUserByAddress() function.
By Tom Wellige