Cisco Cisco Expressway

Page of 21
Appendix 2: CPL snippet examples
This section contains examples of CPL snippets that can be returned by an external policy service to the 
Expressway.
CPL snippets for call processing
Allow CPL
This CPL can be used to allow a call to proceed:
 
<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>
 
    <!-- Route call but clear after 30 seconds if no answer -->
 
      <proxy timeout="30"/>
 
  </taa:routed>
 
</cpl>
Reject CPL
This CPL can be used to reject a call and supply a reject reason:
 
<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>
 
    <!-- Reject call with reason 403 (SIP Forbidden Code) and message-->
 
    <reject status="403" reason="Alias not in allowed list"/>
 
  </taa:routed>
 
</cpl>
Route CPL
This CPL can be used to unconditionally redirect a call:
 
<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>
 
    <!--Redirect the call to alice@example.com by clearing the 
 
    current list of destination aliases through (clear=yes)
 
    and adding a new alias (url=alice@example.com)-->
 
    <taa:location clear="yes" url="alice@example.com">
 
      <proxy/>
 
    </taa:location>
 
  </taa:routed>
 
</cpl>
External Policy on Cisco Expressway Deployment Guide (X8.1)
Page 17 of 21
Appendix 2: CPL snippet examples