< Back
New-AcManipulation
Post
NAME New-AcManipulation
SYNOPSIS
Sets or updates a number manipulation
SYNTAX
New-AcManipulation [-remoteHost] <IPAddress> [[-type] <String>] [-name] <String> [-originalNumber] <String>
[-manipulatedNumber] <String> [[-Credential] <Object>] [-overwrite] [[-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 creates an outbound manipulations which changes the source number
- a forward creates an inbound manipulation which changes the target number
Required? false
Position? 2
Default value mask
Accept pipeline input? false
Accept wildcard characters? false
-name <String>
Name of the manipulation.
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-originalNumber <String>
Number to be manipulated
Required? true
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-manipulatedNumber <String>
New Number
Required? true
Position? 5
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? false
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
-overwrite [<SwitchParameter>]
When specified any existing records with the same source number will be overwritten
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Port <String>
Port of the telnet interface
Required? false
Position? 7
Default value 23
Accept pipeline input? false
Accept wildcard characters? false
-WaitTime <Int32>
Wait in between of issuing telnet commands
Required? false
Position? 8
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.07.02
| AUTHOR : Michael L????rsen
| E-Mail : michael.luersen@mondaycoffee.com
| DESCRIPTION : First PSM1 Function
+---------------------------------------------------------------------------------------------+
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>New-AcManipulation -remotehost 10.0.0.12 -name fJohnsonMask -originalNumber +41441234567 -manipulatedNumber
+41448888888
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$x = Get-Credential
New-AcManipulation -remotehost 10.0.0.12 -name fJohnsonMask -originalNumber +41441234567 -manipulatedNumber
+41448888888 -credential $x
RELATED LINKS
SYNOPSIS
Sets or updates a number manipulation
SYNTAX
New-AcManipulation [-remoteHost] <IPAddress> [[-type] <String>] [-name] <String> [-originalNumber] <String>
[-manipulatedNumber] <String> [[-Credential] <Object>] [-overwrite] [[-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 creates an outbound manipulations which changes the source number
- a forward creates an inbound manipulation which changes the target number
Required? false
Position? 2
Default value mask
Accept pipeline input? false
Accept wildcard characters? false
-name <String>
Name of the manipulation.
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-originalNumber <String>
Number to be manipulated
Required? true
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-manipulatedNumber <String>
New Number
Required? true
Position? 5
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? false
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
-overwrite [<SwitchParameter>]
When specified any existing records with the same source number will be overwritten
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Port <String>
Port of the telnet interface
Required? false
Position? 7
Default value 23
Accept pipeline input? false
Accept wildcard characters? false
-WaitTime <Int32>
Wait in between of issuing telnet commands
Required? false
Position? 8
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.07.02
| AUTHOR : Michael L????rsen
| E-Mail : michael.luersen@mondaycoffee.com
| DESCRIPTION : First PSM1 Function
+---------------------------------------------------------------------------------------------+
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>New-AcManipulation -remotehost 10.0.0.12 -name fJohnsonMask -originalNumber +41441234567 -manipulatedNumber
+41448888888
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$x = Get-Credential
New-AcManipulation -remotehost 10.0.0.12 -name fJohnsonMask -originalNumber +41441234567 -manipulatedNumber
+41448888888 -credential $x
RELATED LINKS