Technical Documentation

Configuring a New Call Usage Policy

Use new call usage policies to classify media and to provision the actions to take on the media streams. Actions can include marking rate limiting.

We suggest that you assign meaningful names to your policies and terms. In this procedure, we are creating a policy for traffic going from the peer to the core. The policy has two conditions, one for voice traffic and one for video traffic.

To configure a new call usage policy instance:

  1. Create a new call usage policy, and assign it a name.
    [edit services border-signaling-gateway gateway bsg-1 sip]user@host# edit new-call-usage-policy peer-media-2-core
  2. Configure a term for voice traffic coming from the peer.
    [edit services border-signaling-gateway gateway bsg-1 sip new-call-usage-policy peer-media-2-core]user@host# edit term voice
  3. Configure match conditions for the term. For example, to match any call made to area code 555:
    [edit services border-signaling-gateway gateway bsg-1 sip new-call-usage-policy peer-media-2-core term voice]user@host# set from request-uri regular-expression sip:555.+
  4. Configure the actions taken on media sessions that match the term condition. For example, set the media policy to a service class:
    [edit services border-signaling-gateway gateway bsg-1 sip new-call-usage-policy peer-media-2-core term voice]user@host# set then media-policy service-class voice-high
  5. Configure a term for video traffic coming from the peer.
    [edit services border-signaling-gateway gateway bsg-1 sip new-call-usage-policy peer-media-2-core]user@host# edit term video
  6. Configure match conditions for the term.
    [edit services border-signaling-gateway gateway bsg-1 sip new-call-usage-policy peer-media-2-core term video]user@host# set from request-uri regular-expression sip:121.+
  7. Configure the actions taken on media sessions that match the term condition.
    [edit services border-signaling-gateway gateway bsg-1 sip new-call-usage-policy peer-media-2-core term video]user@host# set then media-policy service-class video-high

Published: 2010-04-22