TCL script to set cisco-anipi=1 to cisco-anipi=0

Version 1
    This document was generated from CDN thread

    Created by: Todd Baum on 17-12-2009 09:58:12 PM
    I am new to this forum.  I am trying to find a tcl script to set a private ANI to display in ICM.  We have a 3rd party ctios client that receives a screen pop.  When we upgraded to 7.2.6 of ICM we lost the ability to screen pop on private numbers.  So anyone with caller-id block previous to this release was able to send ANI to ICM.  When doing a debug voip ccapi I see the private numbers with cisco-anipi=1, I am trying to find or create a TCL script to set this to 0.
     
    I did little research and see a doc where leg_ani_pi is used. (gets the calling number presentation indication value.  I wonder if there is a way to change if returned with a value of 2 - presentation_restricted to 1 - presentation_allowed?

    Subject: RE: TCL script to set cisco-anipi=1 to cisco-anipi=0
    Replied by: Yawming Chen on 18-12-2009 06:33:24 AM
    As you can see from programming guide this info tag is read only mode cannot be set.
     
    Syntax
    infotag get leg_ani_pi

    Mode Read
    Scope Global
     
    When you said " So anyone with caller-id block previous to this release was able to send ANI to ICM" what does it mean ? if caller-id is block by voice gateway then it won't send out caller ID. Maybe you can detail call flow so we can check if there is a solution. In stead of asking Tcl to do this why we cannot use IOS command "clid ..." ?
     

     
     

    Subject: RE: TCL script to set cisco-anipi=1 to cisco-anipi=0
    Replied by: Todd Baum on 18-12-2009 02:50:34 PM
    Prior to 7.2.6 ICM release, even though the gateway sets the cisco-anipi to 1, ICM still got the ANI.  So when I do a debug isdn q931 in the router I see the ANI  but the PI is set to a 1.  ICM was able to see the ANI previous to 7.2.6 (it did not honor the PI)  Now that we're on 7.2.6, actually 7.2.7 now ICM does not see the ANI anymore and sets to NULL in ICM.
     
    Call flow is basically call to ingress gateway (h.323 gateway) hits Call Manager, and is translation routed to ICM.
     
    Thank you.

    Subject: RE: TCL script to set cisco-anipi=1 to cisco-anipi=0
    Replied by: Yawming Chen on 18-12-2009 06:19:55 PM
    Tcl API cannot modify PI.
    PI set to 1 restricted so called party cannot see it but PSTN switch, voice gateway, ICM..etc should be able to see it, that is the right behavior.
    I think if you still see ANI and PI ==1 in Q931 then ICM should fixed teh problem.

    Thanks !