Jump to content

ulfwil

Members
  • Content Count

    12
  • Joined

  • Last visited

  • Days Won

    1

ulfwil last won the day on March 1

ulfwil had the most liked content!

Community Reputation

1 Neutral

About ulfwil

  • Rank
    Member
  1. Answer is: PBXCall.ConnectedName :-)
  2. Sorry for putting this into wrong place, but I can't find a way to move it...
  3. If you make a call to a group, how do you know whom you have been talking to? Is there any property reachable after returning from Connect To block?
  4. If you make a call to a group, how do you know whom you have been talking to? Is there any property reachable after returning from Connect To block?
  5. RE: 5) Fetch user's presence status - Is it able to get through CllientSDK? In such case - how? I want to read my own presence.
  6. ulfwil

    RemoteConnector

    Hi, anyone knowing how to generate pfx-files from powershell? I guess something like $type=[System.Security.Cryptography.X509Certificates.X509ContentType]::pfx $cert=Get-IpPbxClientCertificate -UserEntry $(get-ippbxuser -username 'Ulf Wilhelmsson') $bytes=$cert.Export($type) # Eventually $bytes=$cert.Export($type,$password) [system.convert]::ToBase64String($bytes) > file.pfx But I get errors on row => $bytes=$cert.Export($type) Exception calling "Export" with "1" argument(s): "Key not valid for use in specified state.
  7. ulfwil

    Remoteconnector

    Hi, anyone knowing how to generate pfx-files from powershell? I guess something like $type=[System.Security.Cryptography.X509Certificates.X509ContentType]::pfx $cert=Get-IpPbxClientCertificate -UserEntry $(get-ippbxuser -username 'Ulf Wilhelmsson') $bytes=$cert.Export($type) [system.convert]::ToBase64String($bytes) > file.pfx But I get errors on row => $bytes=$cert.Export($type) Exception calling "Export" with "1" argument(s): "Key not valid for use in specified state.
  8. ulfwil

    Retrieve Public Numbers Via Powershell

    The -readonly switch to Get-IpPbxUser change the properties. Good to know. And the cmdlet Get-IpPbxPublicNumber had I no knowledge about. Thanks alot!
  9. Hi, If you get a user by command Get-IpPbxUser -UserName "Ulf Wilhelmsson" The result displayed will be like UserId Name EMailAddress InternalNumbers PublicNumbers ------ ---- ------------ --------------- ------------- 200 Ulf Wilhelmsson ulf.wilhelmsson@teleoffic... 5043,1443,7000 +4684590043 And the Interalnumbers is possible to get by InternalNumberEntryCollection property. But I can't find the way to retieve the PublicNumbers Does someone know this?
  10. Hi, I have just a question, it seems to me this is a little bit unlogical. To add and remove “Number replacements†is not handled the same way. How shall I do to remove just one entry instead of all entries? Remove-IpPbxTrunkGroupNumberReplacement - SWConfigDataClientLib.Proxies.PortBundle.PortBundleEntry Add-IpPbxTrunkGroupNumberReplacement - SWConfigDataClientLib.Proxies.PortBundle.PortBundleLineOutNumReplEntry Adding a replacemnent can be done perfectly well with this command New-IpPbxTrunkGroupNumberReplacement -Number "+4619209961" -Replacement "+46722053835" -ReplacementType Outbound -PartyType CallingParty | Add-IpPbxTrunkGroupNumberReplacement -TrunkGroupName "ISDN But removeing is impossible, as I understand it. You have to read all settings (and temporarily store result) and then remove all entries and then write back everything except the one you are intereseted to remove
  11. Hi, Is there anyone having experience from calling Powershell scripts from with in an ECR? I think it's a good idé to use powershell for easy things, rarely used. (I can understand if someone has comments on that statement) My script is for example like this - to set Ulf Wilhelmsson to DND status ------------------------ try { import-module ippbx connect-ippbx -ServerName localhost -UseIpPbxLogin -CredentialsFile "C:\Program Files (x86)\SwyxWare\IpPbxLogin.xml" Set-IpPbxUserPresenceState -UserEntry $(Get-IpPbxUser -UserName 'Ulf Wilhelmsson') -IsAway:$false -IsDND:$true } catch { "Error in Set-IpPbxUserPresenceStatet $error ($?)"|out-file -Filepath ... } ------------------------ Works all right if run from GUI, but when called from ECR I got the following error "Error in Set-IpPbxUserPresenceStatet The variable '$Global:IpPbxServer' cannot be retrieved because it has not been set. " So as far as I understand is the connect-ippbx statement not rising any error but the result of the operation seems not to work The user credentials in the IpPbxLogin.xml have Administration rights. The code in the ECR script looks like this. ---------------------------------------- strCommand = "Powershell.exe -executionpolicy remotesigned -windowstyle hidden -File " & strFullName PBXScriptOutputTrace "[uWDEBUG] " & strCommand Set WshShell = CreateObject("WScript.Shell") returnval = WshShell.Run(strCommand,0, true) ---------------------------------------- Anyone having any idéa?
  12. Welcome to Swyx Forum :-)

    1. ulfwil

      ulfwil

      Thank you. I'm working with Swyx for a year now. A lot of new technology for me. I am a Linux programmer in the past. I feel powershell will be my favorite in the future.

×