Cisco Cisco Expressway

Page of 21
Forking CPL
This CPL can be used to fork a call to multiple aliases:
 
<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>
 
    <!--Fork the call to endpoint1@example.com and add new aliases
 
        endpoint2@example.com and endpoint3@example.com -->
 
    <taa:location clear="no" url="endpoint1@example.com">
 
      <!--Fork the call to a second alias (endpoint2@example.com)-->
 
      <taa:location url="endpoint2@example.com">
 
        <!--Fork the call to a third alias (endpoint3@example.com)-->
 
        <taa:location url="endpoint3@example.com">
 
          <proxy/>
 
        </taa:location>
 
      </taa:location>
 
    </taa:location>
 
  </taa:routed>
 
</cpl>
Conditional routing CPL
This CPL can be used to redirect a call under specific conditions. In this example, if a call that initially routes 
to alice is not answered then the call redirects to bob:
 
<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>
 
    <!--Clear the destination aliases (clear=yes)and 
 
    add the destination alias alice@example.com 
 
    url="alice@example.com")-->
 
    <taa:location clear="yes" url="alice@example.com">
 
      <proxy timeout="10">
 
        <!-- If the call setup fails for any reason or takes more than ten seconds
 
        to complete then the CPL within the default tag is activated -->                
 
        <default>
 
          <!--Clear the destination aliases (clear=yes) and add the
 
          destination alias bob@example.com (url="bob@example.com")-->
 
          <taa:location clear="yes" url="bob@example.com">
 
            <proxy/>
 
          </taa:location>
 
        </default>
 
      </proxy>
 
    </taa:location>
 
  </taa:routed>
 
</cpl>
External Policy on Cisco Expressway Deployment Guide (X8.1)
Page 18 of 21
Appendix 2: CPL snippet examples