A Class of Service (CoS) Profile is a classification of common services shared by a group of entities (trunk groups, carriers, subscribers) giving them particular rights and privileges. CoS profiles can be provisioned using a number of call type filters and screening scripts as described below. The SBC Core is shipped with a number of predefined CoS profile scripts.
% set profiles services classOfService <CoS name> blocking entry <called number, country, call type> service <disable | enable> nonSubscriberCallTypeFiltering carrierCutThrough | internationalOperator | internationalType | ipVpnService | localOperator | longDistanceOperator | mobile | nationalOperator | nationalType | otherCarrierChosen | private | test | transit | userName screening script <script>
The Class of Service Parameters are as shown:
Step | Action |
---|---|
1 | Create and enable a class of service called "BLOCK_COUNTRY_CODES" to block two specific international country codes (20 and 27). 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". set addressContext default zone zonePublicTrunking sipTrunkGroup APBX5TEST policy services classOfService BLOCK_COUNTRY_CODES commit |