Jump to content

User Status


Tom Wellige

Recommended Posts

In case you need to know the current status of all users (or a single one), the global phonebook keeps this information.

 

# Load required modules
Import-Module IpPbx

# Connect to local SwyxServer with Windows Authentication
Connect-IpPbx

# Get all users (incl. buildin users) with status informartion
# Please note that the returned user list is readonly
$userPhoneBookEnum = $Global:LibManager.GetUserPhoneBookEnum()
$userPhoneBookEnum.GetPBXPhonebookEx("%",$true,$false,$true,$true)

# Get status of one user status
$userPhoneBookEnum = $Global:LibManager.GetUserPhoneBookEnum()
$userPhoneBookEnum.GetPBXPhonebookEx("John",$true,$false,$true,$true)

# Cleanup
Disconnect-IpPbx
Remove-Module IpPbx 

 

Link to comment
Share on other sites


  • 2 years later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

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.