Jump to content

Powershell Command Call Signaling/Ringing


Olof
 Share


Recommended Posts

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


  • 5 weeks later...
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 

image.png.4a6d7522c973330b2db02cdd7c48cdc8.png

 

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


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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share


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