<name> – A unique identifier for the Class of Service Profile.
blocking
Parameters associated with blocking service.
entry <called# countryCode callType> – Enter both the called number, country code and call type, separated by a space (callType default is "nationalOperator") against which the blocking service applies. To block any number in the country code, use double quotes "" (see Command Example below).
service – Flag to enable/disable the blocking service.
disable(default)
enable
nonSubscriberCallTypeFiltering
Select one or more call types (using comma-separated format) to specify the type of calls allowed for non-subscriber call routing. By default, all options are selected.
carrierCutThrough
internationalOperator
internationalType
ipVpnService
localOperator
longDistanceOperator
mobile
nationalOperator
nationalType
otherCarrierChosen
private
test
transit
userName
screening script
Use this parameter to select the screening script to use with this CoS Profile.
BLOCKING
DEFAULT_TERMINATING
NONSUB_DENY
NO_ROUTES_FOUND
SCREENING
SONS_PLAY_ANN_MK_CALL
SONS_ROUTES_EXHAUSTED
SONS_ROUTES_EXHAUSTED_1
SONS_ROUTES_EXHAUSTED_2
SONS_ROUTES_EXHAUSTED_3
SONS_ROUTES_EXHAUSTED_4
SONS_ROUTES_EXHAUSTED_5
SONS_ROUTES_EXHAUSTED_6
SONS_ROUTES_EXHAUSTED_7
SONS_ROUTES_EXHAUSTED_8
SONS_ROUTES_EXHAUSTED_9
SONS_SIP_REFER_RELAY
TANDEM
Command Example
Pagebreak
Step
Action
1
Create and enable a class of service called "BLOCK_COUNTRY_CODES" to block two specific international country codes (20 and 27).
Code Block
language
none
set profiles services classOfService BLOCK_COUNTRY_CODES blocking service enable entry "" 20 callType internationalType
set profiles services classOfService BLOCK_COUNTRY_CODES blocking entry "" 27 callType internationalType
commit
show profiles services classOfService BLOCK_COUNTRY_CODES
blocking {
service enable;
entry "" 20 {
callType internationalType;
}
entry "" 27 {
callType internationalType;
}
}
2
Assign the class of service to a trunk group named "APBX5TEST".
Code Block
language
none
set addressContext default zone zonePublicTrunking sipTrunkGroup APBX5TEST policy services classOfService BLOCK_COUNTRY_CODES
commit