VBScript → Lua
This function returns True if the script user is currently busy.
If PBXUser.IsBusy Then
' do something
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 PBXConfig.GetUserByAddress function.
This function is identical to the GSE build-in function IsBusy().