[cisco-voip] URGENT -- Blocking/Routing calls based on Caller ID with CCM
Tim Reimers
tim.reimers at asheville.k12.nc.us
Thu Sep 20 16:29:22 EDT 2007
Would that be this one??
I've never really known if this is supported, nor am I clear on how to
use it...
# ani_filter.tcl
# Script Version 1.0(1)
#------------------------------------------------------------------
# October 2002, Niels Brunsgaard
#
# Copyright (c) 1998-2002 by cisco Systems, Inc.
# All rights reserved.
#------------------------------------------------------------------
#
# This tcl script filters calls based on ANI. If there is a match #
against a pe-configured list of numbers it changes the DNIS # to a
configurable value #
#
proc init { } {
global param
}
proc act_Setup { } {
leg setupack leg_incoming
set dnis [infotag get leg_dnis]
set new_dnis [infotag get cfg_avpair new_dest]
set ani [infotag get leg_ani]
set ani_deny ""
set ani_pi [infotag get leg_ani_pi]
puts "dnis $dnis new_dnis $new_dnis ani $ani ani_pi $ani_pi"
if { $ani_pi != "presentation_allowed" } {
set ani ""
}
set x 1
while {1} {
if {[infotag get cfg_avpair_exists clid$x]} {
set ani_deny [infotag get cfg_avpair clid$x]
puts "clid$x = $ani_deny"
if { $ani == $ani_deny} {
set dnis $new_dnis
puts "match clid $ani_deny x=$x"
break
}
} else {
puts "No more clid at $x"
break
}
incr x
if { $x > 1000 } { puts "Too many clids" }
}
puts "Final dnis $dnis"
leg proceeding leg_incoming
leg setup $dnis callInfo leg_incoming
}
proc act_CallSetupDone { } {
global beep
set status [infotag get evt_status]
puts "Entering act_CallSetupDone"
if { $status != "ls_000"} {
puts "Call [infotag get con_all] got event $status while placing
an outgoing call"
call close
}
}
proc act_Cleanup { } {
puts "Entering act_Cleanup"
call close
}
proc act_Abort { } {
puts "Unexpected event - entering act_Abort"
call close
}
init
#----------------------------------
# State Machine
#----------------------------------
set TopFSM(any_state,ev_disconnected) "act_Abort,same_state"
set TopFSM(CALL_INIT,ev_setup_indication) "act_Setup,PLACECALL"
set TopFSM(PLACECALL,ev_setup_done) "act_CallSetupDone,CALLACTIVE"
set TopFSM(CALLACTIVE,ev_disconnected)
"act_Cleanup,CALLDISCONNECTED"
set TopFSM(CALLDISCONNECTED,ev_disconnect_done)
"act_Cleanup,same_state"
fsm define TopFSM CALL_INIT
Tim Reimers
Assistant Network Administrator
Asheville City Schools
Desk- 828-350-6195 Mobile-828-545-3104
fax- 828-255-5454
Most days, there are several fires burning at once. Some days, what's
burning is your fire extinguisher.
To err is human; to truly screw it up requires the root password.
________________________________
From: Mike Reilly [mailto:reillyipt at gmail.com]
Sent: Thursday, September 20, 2007 4:18 PM
To: Tim Reimers; cisco-voip at puck.nether.net
Subject: Re: [cisco-voip] URGENT -- Blocking/Routing calls based on
Caller ID with CCM
There is a tcl script that can be used to route these calls to let's say
a callhandler in unity.
On 9/20/07 1:08 PM, "Tim Reimers" <tim.reimers at asheville.k12.nc.us>
wrote:
Blocking/Routing calls based on Caller ID with CCM
Is there any functionality for this in CCM 4.12 ???
We do not have IPCC or anything like that, unless there's a
'lite' version inside CCM that I'm not aware of.
We're receiving bomb threats repeatedly at a highschool, and
need to either block or route calls with no Caller ID or with known
numbers.
We could either route the calls to an announce-only mailbox
telling people to enable CallerID and call us back, or simply drop the
calls.
Tim Reimers
Assistant Network Administrator
Asheville City Schools
Desk- 828-350-6195 Mobile-828-545-3104
fax- 828-255-5454
Most days, there are several fires burning at once. Some days,
what's burning is your fire extinguisher.
To err is human; to truly screw it up requires the root
password.
________________________________
_______________________________________________
cisco-voip mailing list
cisco-voip at puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-voip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://puck.nether.net/pipermail/cisco-voip/attachments/20070920/68ade9af/attachment-0001.html
More information about the cisco-voip
mailing list