New-CsMainlineAttendantSpamDetectionTemplate
The New-CsMainlineAttendantSpamDetectionTemplate cmdlet creates a new spam detection template.
Syntax
Default (Default)
New-CsMainlineAttendantSpamDetectionTemplate
-Name <string>
-Description <string>
-EnableSpamDetection <Boolean>
-Action <String>
[-CallTarget <String>]
[-InclusionScope <list>]
[-ExclusionScope <list>]
[<CommonParameters>]
Description
The New-CsMainlineAttendantSpamDetectionTemplate cmdlet creates a new spam detection template.
Caution
Teams Phone Agent (formerly Mainline Attendant) is currently only available to customers in the Frontier Public Preview program.
Examples
-------------------------- Example 1 --------------------------
New-CsMainlineAttendantSpamDetectionTemplate -Name "Spam Detection - Disconnect" -Description "Calls determined to be spam will be disconnected" -EnableSpamDetection $true -Action "DisconnectCall"
When assigned to a Teams Phone Agent (formerly Mainline Attendant), this example will create a new Spam Detection Template that will disconnect calls determined to be spam.
-------------------------- Example 2 --------------------------
New-CsMainlineAttendantSpamDetectionTemplate -Name "Spam Detection - Disconnect - Except CEO" -Description "Except CEO - Calls determined to be spam will be disconnected" -EnableSpamDetection $true -Action "DisconnectCall" -ExclusionList @("+14255551212")
When assigned to a Teams Phone Agent (formerly Mainline Attendant), this example will create a new Spam Detection Template that will disconnect calls determined to be spam except if the call is coming from +14255551212.
Parameters
-Action
The action to take it the call is spam.
PARAMVALUE: DisconnectCall | TransferCallToOperator | TransferCallToTarget
- DisconnectCall - the call will be disconnected.
- TransferCallToOperator - the call will be transferred to the configured operator. If no operator has been configured, the call will be disconnected.
- TransferCallToTarget - the call will be transferred to the target defined by the
-CallTargetparameter.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-CallTarget
The call target when -Action is set to TransferCallToTarget.
Use the New-CsAutoAttendantCallableEntity cmdlet to create new callable entities.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Description
The description for the spam detection template.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-EnableSpamDetection
Is spam detection enabled for this template.
Parameter properties
| Type: | Boolean |
| Default value: | False |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-ExclusionList
A list of e.164 formatted phone numbers that will never be considered as spam.
Parameter properties
| Type: | List |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-InclusionList
A list of e.164 formatted phone numbers that will always be considered as spam.
Parameter properties
| Type: | List |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Name
The name of the spam detection template.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
Identity
Represents the unique identifier of a question and answer booking flow.