Lua → VBScript SwxWare v13.10
This function returns true if the script user is currently busy.
if (PBXUser.IsBusy() == true) then -- do something end
This function returns a boolean value.
Please note, that the SwyxServer caches the busy state of a user. So once you have called this function the first time in the script it will always return the same value if being called again.
If you need to get current status of any user within the SwyxWare, you can use the PBXScript.GetUserByAddress() function.
This function is identical to the GSE build-in function IsBusy().