Tag Archives: swyx

Swyx Server: Setting rich presence status

Swyx Server Rich Presence Status

This will set a users presence indicator to away. You’ll have needed to install the IpPbx PowerShell modules first. Oh, and be sure to replace [servername] with, well, the name of your server.

Import-Module IpPbx
Connect-IpPbx [servername]
$name = Read-Host 'Username?'
Set-IpPbxUserPresenceState -Name $name -IsAway:$true -IsDND:$false

For more information about Swyx telephony, please check out the following link:

http://www.swyx.com/

Swyx Server: Retrieving a list of phonebook entries using VB.NET

Swyx Server Phonebook Entries

You can use VB.NET to obtain a list of phonebook entries from Swyx Server. You’ll need these Imports:

Imports SWConfigDataClientLib
Imports SWConfigDataClientLib.Proxies.IppbxServer

And this is how you do it:

Using lm As New LibManager
With lm
.BaseProtocol = SProxyObject.BaseProtocol.TCP
.AuthenticationMode = SProxyObject.AuthenticationMode.Trusted
.WSBaseUrl = serverName
End With
Dim ePb = lm.GetUserPhoneBookEnum
Dim phoneBook = ePb.GetPBXPhoneBook("%", True, True)

For Each r As Proxies.UserPhoneBook.PBXPhoneBookEntry In phoneBook
Trace.WriteLine(r.Name + " " + r.Number + " ")
ePb.FreeForReuse()
Next

End Using

For more information about Swyx telephony, check out the following link:

http://www.swyx.com/