Re: URGENT -- Blocking/Routing calls based on Caller
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > WebserverTalk Community > Voice Over IP > Voice over IP Cisco > Re: URGENT -- Blocking/Routing calls based on Caller




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: URGENT -- Blocking/Routing calls based on Caller  
Tim Reimers


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-21-07 12:11 AM

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_do
ne)
"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@gmail.com] 
Sent: Thursday, September 20, 2007 4:18 PM
To: Tim Reimers; cisco-voip@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@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@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-voip
	









[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:00 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register