This function returns True if the user to whom the current script belongs is currently busy.
If PBXUser.IsBusy Then ...End If
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 values you can either use the PBXConfig COM/DCOM objects GetUserByAddress function and then check the state value, or call the PBXScript.IsUserOrGroupBusy or PBXScript.IsUserOrGroupBusyEx function.
? Server Script API
Swyx Forum supports the German Aid for Afghan Children (Kinderhilfe Afghanistan)