< Back

Remove-AcManipulation

Sat Jan 18, 2020 9:53 am

NAME Remove-AcManipulation



SYNOPSIS

Removes a number manipulation





SYNTAX

Remove-AcManipulation [-remoteHost] <IPAddress> [[-type] <String>] [-originalNumber] <String> [-Credential]

<Object> [[-Port] <String>] [[-WaitTime] <Int32>] [<CommonParameters>]





DESCRIPTION

This script will remove 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 removes an outbound manipulations which changes the source number

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



Required? false

Position? 2

Default value mask

Accept pipeline input? false

Accept wildcard characters? false



-originalNumber <String>

Number to be manipulated



Required? true

Position? 3

Default value

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? true

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Port <String>

Port of the telnet interface



Required? false

Position? 5

Default value 23

Accept pipeline input? false

Accept wildcard characters? false



-WaitTime <Int32>

Wait in between of issuing telnet commands



Required? false

Position? 6

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

Script results in output / verbose stream





NOTES





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

| ORIGIN STORY |

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

| DATE : 2018.10.

| AUTHOR : Michael L????rsen / Roman Schaal

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

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



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



PS C:\\>Remove-AcManipulation -remotehost 10.0.0.12 -originalNumber +41441234567













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



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



New-AcManipulation -remotehost 10.0.0.12 -originalNumber +41441234567 -credential $x











RELATED LINKS