< Back

Get-AcManipulation

Sat Jan 18, 2020 9:53 am

NAME Get-AcManipulation



SYNOPSIS

Gets the current number manipulations





SYNTAX

Get-AcManipulation [-remoteHost] <IPAddress> [[-type] <String>] [[-Credential] <Object>] [[-Port] <String>]

[[-WaitTime] <Int32>] [<CommonParameters>]





DESCRIPTION

This script will create or update an SBC number manipulation on Audiocodes.





PARAMETERS

-remoteHost <IPAddress>

The LAN IP address of the AudioCodes Mediant



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-type <String>

Type of manipulation;

- a mask is an outbound manipulations which changes the source number

- a forward is an inbound manipulation which changes the target number



Required? false

Position? 2

Default value mask

Accept pipeline input? false

Accept wildcard characters? false



-Credential <Object>

Credentials for Audiocodes. Use "$x = Get-Credential" to store the credential in a variable. Then use

"-Credential $x" to pass this to the script



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Port <String>

Port of the telnet interface



Required? false

Position? 4

Default value 23

Accept pipeline input? false

Accept wildcard characters? false



-WaitTime <Int32>

Wait in between of issuing telnet commands



Required? false

Position? 5

Default value 500

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Parameters





OUTPUTS

$global:output contains an array of objects with the results.

Script results in output / verbose stream





NOTES





+---------------------------------------------------------------------------------------------+

| ORIGIN STORY |

+---------------------------------------------------------------------------------------------+

| DATE : 2018.07.02

| AUTHOR : Michael L?rsen

| E-Mail : michael.luersen@mondaycoffee.com

| DESCRIPTION : First PSM1 Function

+---------------------------------------------------------------------------------------------+



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-AcManipulation -remotehost 10.0.0.12













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>$x = Get-Credential



Get-AcManipulation -remotehost 10.0.0.12 -type forward -credential $x











RELATED LINKS