Olof Posted June 9, 2021 #1 Share Posted June 9, 2021 Is it possible by Powershell to get a list of users who have an inbound call ringing / or established call with information about the caller ID of the calling party. Idea is to use this for giving this info from Swyx server side to another 3rd party server for CTI. That legacy system is server based only with terminals (character based). So ClientSDK would not work directly as it cannot communicate locally with the end user's local terminal. Only option that we were thinking about would be the use of ClientSDK to push this data to the server but the drawback of going that route will be that we have to deploy an app to 170 clients. Also SwyxMobile would then be missed. So serverside would be preferred. Link to comment Share on other sites More sharing options...
DeadlyEmu Posted July 8, 2021 #2 Share Posted July 8, 2021 On 6/9/2021 at 3:08 PM, Olof said: Is it possible by Powershell to get a list of users who have an inbound call ringing / or established call with information about the caller ID of the calling party. Idea is to use this for giving this info from Swyx server side to another 3rd party server for CTI. That legacy system is server based only with terminals (character based). So ClientSDK would not work directly as it cannot communicate locally with the end user's local terminal. Only option that we were thinking about would be the use of ClientSDK to push this data to the server but the drawback of going that route will be that we have to deploy an app to 170 clients. Also SwyxMobile would then be missed. So serverside would be preferred. This would be possible with PowerShell. There is a command 'Get-IpPbxCall' this will list out all of the current calls on the system. with a if check you can filter out the internal calls as these will show. for example. Connect-IpPbx $trunkName = "Gamma" foreach ($call in Get-IpPbxCall){ if($call.DestinationDeviceName -eq $trunkName) { #outbound call echo "outbound" echo $call }elseif($call.OriginationDeviceName -eq $trunkName){ #inbound call echo "inbound" echo $call } } Disconnect-IpPbx this will give a simple output like this you can also use any of the below fields under call for example $call.CallStatus will show the curent status of the call. Other options are below OriginationNumber : REMOVED IsOriginationNumberNull : False DestinationNumber : REMOVED IsDestinationNumberNull : False OriginationName : IsOriginationNameNull : False DestinationName : REMOVED IsDestinationNameNull : False OriginationDeviceName : Gamma IsOriginationDeviceNameNull : False DestinationDeviceName : IsDestinationDeviceNameNull : False CallStatus : Connected IsCallStatusNull : False Charges : 0,00 IsChargesNull : False Start : 08/07/2021 15:05:46 IsStartNull : False Duration : 3850000000 IsDurationNull : False ProjectNumber : IsProjectNumberNull : False CalledNumber : +REMOVED IsCalledNumberNull : False CalledName : REMOVED IsCalledNameNull : False CallID : 1161842 IsCallIDNull : False DurationTimeSpan : 00:06:25 Hope this helps Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now