Cisco Cisco Expressway メンテナンスマニュアル

ページ / 391
 
            <!-- 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>
 
        </address-switch>
 
      </address>
 
    </address-switch>
 
  </taa:routed>
 
</cpl> 
CPL Example: Block Calls From Default Zone and Default Subzone
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 
The script to allow calls from locally registered endpoints only can be extended to also allow calls from configured 
zones but not from the Default Zone or Default Subzone.
 
<?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="registered-origin">
 
      <not-present>
 
        <address-switch field="originating-zone">
 
          <address is="DefaultZone">
 
            <!-- Reject call with a status code of 403 (Forbidden) -->
 
            <reject status="403" reason="Denied by policy"/>
 
          </address>
 
          <address is="DefaultSubZone">
 
            <!-- Reject call with a status code of 403 (Forbidden) -->
 
            <reject status="403" reason="Denied by policy"/>
 
          </address>
 
          <otherwise>
 
            <proxy/>
 
          </otherwise>
 
        </address-switch>
 
      </not-present>
 
    </address-switch>
 
  </taa:routed>
 
</cpl> 
CPL Example: Restricting Access to a Local Gateway
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 these examples, a gateway is registered to the Expressway with a prefix of 9 and the administrator wants to stop 
calls from outside the organization being routed through it.
This can be done in two ways: using the 
address-switch
 node or the 
taa:rule-switch
 node. Examples of each are 
shown below.
Note:
 You can achieve the same result with Call Routing on Cisco Unified Communications Manager. This example is 
here because you may want to prevent these types of calls from getting any deeper into the network.
261
Cisco Expressway Administrator Guide
Reference Material