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.


 Command Syntax

% 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>

Command Parameters

The Class of Service Parameters are as shown:

Class of Service Parameters

Parameter

Description

classOfService

<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


StepAction
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

  • No labels