Collect Call Block with TCL - It`s possible?

Version 1
    This document was generated from CDN thread

    Created by: Renato Cottes on 11-08-2011 12:19:15 PM
    Hi guys,
     
    I need block collect calls in voice gateway, but I'm using R2 digital E1. I need verify the destinations numbers, depends the destination number call will accept or reject the collect calls.
    On the last PVT of Unified communications in Brazil, some people commented of to do this block do with TCL scripts with Double-Answer, but I do not know much about TCL script.
     
    Could you help me, about this issue?
     

    Subject: RE: Collect Call Block with TCL - It`s possible?
    Replied by: Yaw-Ming Chen on 11-08-2011 01:44:08 PM
    Yes, you should be able to do that and it's not hard.

    You need to know the destination number to make a outbound call anyway

    set dest [infotag get leg_dnis] 

    check if you should block this number then make a call

    leg setup $dest callInfo leg_incoming

    or block the call

    Subject: RE: Collect Call Block with TCL - It`s possible?
    Replied by: Renato Cottes on 21-09-2011 03:50:07 PM
    Dear Yaw-Ming Chen,

    I¿m beginning to work with tcl-script and I¿m still learning to do the scripts. Could you please, send me the script of block collect call informed below?

    Subject: RE: Collect Call Block with TCL - It`s possible?
    Replied by: Yaw-Ming Chen on 21-09-2011 04:59:25 PM
    Sorry that I don't have this kind of script.

    There is a video tutorial link, inside there is a sample script. You just need to add a condition to block.
    It should be easy to modify.

    http://developer.cisco.com/web/vgapi/vid


    Thanks !