cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1200
Views
0
Helpful
3
Replies

Problems writting CPL's

Rohan.Chaffey
Level 1
Level 1

Hi

I am trying to write a CPL to block those pesky @asterisk calls and also create a hunt group but I am not having any luck.

Here's the example, any idea where I am going wrong?

The call blocking is fine, but think my formatting of the hunt group is wrong?

<?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>

    <!-- This CPL is intended to block scans / call attempts from asterisk@.* and 100@1.1.1.1 and unknown@.* -->

    <!-- changes / addons might be needed in your setup -->

  <taa:rule-switch>

     <!-- the next two lines block unauthenticated calls from asterisk and 100@1.1.1.1 -->

   <taa:rule unauthenticated-origin="asterisk@.*" destination=".*"><reject status="403"/></taa:rule>

   <taa:rule unauthenticated-origin="100@1.1.1.1" destination=".*"><reject status="403"/></taa:rule>

   <taa:rule unauthenticated-origin="unknown@.*" destination=".*"><reject status="403"/></taa:rule>

     <!-- the next two lines block authenticated calls from asterisk and 100@1.1.1.1 -->

   <taa:rule origin="asterisk@.*" destination=".*"><reject status="403" /></taa:rule>

   <taa:rule origin="100@1.1.1.1" destination=".*"><reject status="403" /></taa:rule>

   <taa:rule origin="unknown@.*" destination=".*"><reject status="403"/></taa:rule>

</taa:routed>

  </taa:rule-switch>

<address-switch field="destination">

<address is="thehuntgroupname">

<!-- call site 1 and site2 for 100 seconds

<location clear="yes" url="user1@domain.com">

<location clear="yes" url="user2@domain.com">

<proxy timeout="100">

<default>

</taa:rule-switch>

</taa:routed>

</cpl>

Thanks

Rohan

3 Replies 3

crisalex
Cisco Employee
Cisco Employee

Dear Rohan,

For more details about CPL and a very useful list of CPL examples you can consult the VCS admin, guide, the CPL refference setcion of the guide ( pages 335- 346) available at :

http://www.cisco.com/en/US/docs/telepresence/infrastructure/vcs/admin_guide/Cisco_VCS_Administrator_Guide_X7-0.pdf

You can also use as refference a good example of "ISDN overflow using CPL script" document available at :

http://www.tandberg.com/collateral/documentation/Deployment_Guides/Cisco_VCS_ISDN_Overflow_Using_CPL_Script_Application_Note.pdf

Kind regards

Cristian

Thanks for the reply Cristian.

I used those documents as the basis for the hunt group lines I wrote for that CPL. There's a section that states this:

user1@domain.com">

user2@domain.com">

Will create a forked call (similtaneous ring) which is what i need.

I think the main thing is I am not familier with XML or CPL scripting so think I may have some of the syntaxes wrong?

Can you try in the CPL,

instead of  :

from the syntax if I'm not wrong

Cristian