12-15-2011 09:47 AM - edited 03-17-2019 10:40 PM
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
12-16-2011 02:29 AM
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 :
You can also use as refference a good example of "ISDN overflow using CPL script" document available at :
Kind regards
Cristian
12-16-2011 02:55 AM
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:
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?
12-16-2011 12:39 PM
Can you try in the CPL,
instead of :
from the syntax if I'm not wrong
Cristian
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide