Jump to content
Tom Wellige

User Status

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 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • 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.