Cisco Cisco TelePresence Video Communication Server Expressway Maintenance Manual

Page of 550
 
<?xml version="1.0" encoding="UTF-8" ?>
 
<cpl xmlns="urn:ietf:params:xml:ns:cpl"
 
  xmlns:taa="http://www.tandberg.net/cpl-extensions"
 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 
  xsi:schemaLocation="urn:ietf:params:xml:ns:cpl cpl.xsd">
 
  <taa:routed>
 
    <address-switch field="destination">
 
      <address is="ceo">
 
        <address-switch field="authenticated-origin">
 
          <address regex="vpsales|vpmarketing|vpengineering">
 
            <!-- Allow the call -->
 
            <proxy/>
 
          </address>
 
          <not-present>
 
            <!-- Unauthenticated user -->
 
            <!-- Reject call with a status code of 403 (Forbidden) -->
 
            <reject status="403" reason="Denied by policy"/>
 
          </not-present>
 
          <otherwise>
 
            <!-- Reject call with a status code of 403 (Forbidden) -->
 
            <reject status="403" reason="Denied by policy"/>
 
          </otherwise>
 
        </address-switch>
 
      </address>
 
    </address-switch>
 
  </taa:routed>
 
</cpl> 
CPL Example: Call Screening Based on Domain
Note:
 You can configure this behavior using Call Policy Rules, so you don't need to do it using a CPL script. However, 
you cannot use a combination of UI configured rules and uploaded CPL script, so if you have any CPL requirements 
that you cannot implement using the UI rules, you must use a script for all of your rules. See 
In this example, user fred will not accept calls from anyone at 
annoying.com
, or from any unauthenticated users. All 
other users will allow any calls.
If calls are coming in through VCS Expressway, then we recommend screening on the VCS Expressway to prevent 
unwelcome calls from progressing into the network.
 
<?xml version="1.0" encoding="UTF-8" ?>
 
<cpl xmlns="urn:ietf:params:xml:ns:cpl"
 
  xmlns:taa="http://www.tandberg.net/cpl-extensions"
 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 
  xsi:schemaLocation="urn:ietf:params:xml:ns:cpl cpl.xsd">
 
  <taa:routed>
 
    <address-switch field="destination">
 
      <address is="fred">
 
        <address-switch field="authenticated-origin" subfield="host">
 
          <address subdomain-of="annoying.com">
 
            <!-- Don't accept calls from this source -->
 
            <!-- Reject call with a status code of 403 (Forbidden) -->
 
            <reject status="403" reason="Denied by policy"/>
 
          </address>
 
          <not-present>
 
            <!-- Don't accept calls from unauthenticated sources -->
 
            <!-- Reject call with a status code of 403 (Forbidden) -->
 
            <reject status="403" reason="Denied by policy"/>
 
          </not-present>
 
          <otherwise>
 
            <!-- All other calls allowed -->
 
            <proxy/>
 
          </otherwise>
371
Cisco TelePresence Video Communication Server Administrator Guide
Reference Material