n
priority-switch
n
redirect
n
n
log
n
subaction
n
lookup
n
remove-location
CPL examples
This section provides a selection of CPL examples:
n
Call screening of authenticated users
n
Call screening based on alias
n
Call screening based on domain
n
Change of domain name
n
Allow calls from locally registered endpoints only
n
Block calls from Default Zone and Default Subzone
n
Restricting access to a local gateway
n
Redirecting failed calls based on status code
n
Reject attempts to subscribe to a presentity
CPL example: call screening of authenticated users
In this example, only calls from users with authenticated source addresses are allowed. See
About device
authentication [p.102]
for details on how to enable authentication.
<?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="authenticated-origin">
<not-present>
<!-- Reject call with a status code of 403 (Forbidden) -->
<reject status="403" reason="Denied by policy"/>
</not-present>
</address-switch>
</taa:routed>
</cpl>
CPL example: call screening based on alias
In this example, user
ceo
will only accept calls from users
vpsales
,
vpmarketing
or
vpengineering
.
<?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">
Cisco VCS Administrator Guide (X8.1.1)
Page 371 of 507
Reference material
CPL reference