Fax Detect Script and Caller Name

Version 1
    This document was generated from CDN thread

    Created by: Michael Z Ben-Ami on 08-09-2011 04:10:02 PM
    Team,
     
    I am wondering if anybody has some lines to edit the fax detect script so that it displays caller name.  Or better yet, an updated working script?  I found this thread on the public forums, in which somebody mention:
     
    The relevent CNAM config needed is:
     
    set cname [object get gtd gtd_fac gen.-1.name]
     
     
    and then:
     
    set callInfo(displayInfo) $cname
     
    when you setup the call transfer.
     
     
    Adding
    these lines to the TCL script passes the caller id name from the 2nd
    facility message into the h323 leg which is what is needed to display
    the name on the IP phone screen.
     
    https://supportforums.cisco.com/thread/324241
     
    I just don't know where to add these lines and if anything else needs to be added or deleted.
     
    Thanks,
    Mickey

    Subject: RE: Fax Detect Script and Caller Name
    Replied by: Anusha Kannappan on 09-09-2011 06:01:09 AM
    Hi Mickey,

    Refer to the following document. Hope it is useful for you

    http://www.cisco.com/en/US/docs/ios/12_4/12_4x/release/notes/rn3700xw.html#wp354330

    Thanks,
    Anusha

    Subject: RE: Fax Detect Script and Caller Name
    Replied by: Michael Z Ben-Ami on 12-09-2011 01:23:45 PM
    Thanks Anusha, but we looked at this already.  The problem is with the TCL script.  When the script is removed, caller name works no problem.  When the script is there, no caller name.  Any ideas for editing the TCL?

    Subject: RE: Fax Detect Script and Caller Name
    Replied by: Raghavendra Gutty Veeranagappa on 13-09-2011 03:16:50 AM
    Hi Mickey,

    please add the  line "set callInfo(displayInfo) $cname" before leg setup command and also below config need to be configured.

    voice service voip

    h323

    h225 display-ie ccm-compatible

    if you still face issue please raise developer support case we will help you to edit the script.


    Thanks,
    Raghavendra

    Subject: RE: Fax Detect Script and Caller Name
    Replied by: Michael Z Ben-Ami on 13-09-2011 10:54:06 AM
    Thanks Raghavendra,

    Do we also need the:

    set cname [object get gtd gtd_fac gen.-1.name]

    If so, where does it go?

    Thanks,
    Mickey

    Subject: RE: Fax Detect Script and Caller Name
    Replied by: Raghavendra Gutty Veeranagappa on 13-09-2011 11:23:03 AM
    Hi Mickey,

    If the Caller Name [Display Info] is coming in on the ISDN Display IE, you can use  " set cname [infotag get leg_display_info legID] ".

    If the Caller Name is coming on the ISDN Facility IE, use "object get" API to fetch the display info from GTD FAC message. "object get gtd gtd_fac gen.1.dat".

    Later, the fetched value can be set in callInfo(displayInfo) parameter to pass it with the leg setup.

    Thanks,
    Ragahvendra

    Subject: RE: Fax Detect Script and Caller Name
    Replied by: Michael Z Ben-Ami on 13-09-2011 12:47:42 PM
    Raghavendra,

    Thank you so much for your help!  So if I understand correctly, this all happens in "proc setup_voice" correct?
    What is the difference between "set cname [object get gtd gtd_fac gen.1.dat]" and "set cname [object get gtd gtd_fac gen.-1.name]" that was mentioned in a previous post?

    So, to confirm:

    If using the Display IE, then it should look like this:

    proc setup_voice {} {
      global CALL_ID
      global DNIS

      puts "\[Call $CALL_ID\] Setting-up a VOICE call"
      fsm setstate SETTING_UP_VOICE_MODE

      stop_prompt
      stop_timer
      stop_cng_detection

      set cname [infotag get leg_display_info legID]
      set callInfo(displayInfo) $cname


      puts "\[Call $CALL_ID\] Calling VOICE number: $DNIS"
      leg setup $DNIS callinfo leg_incoming
    }


    If using the Facility IE, then it should like like this:

    proc setup_voice {} {
      global CALL_ID
      global DNIS

      puts "\[Call $CALL_ID\] Setting-up a VOICE call"
      fsm setstate SETTING_UP_VOICE_MODE

      stop_prompt
      stop_timer
      stop_cng_detection

      set cname [object get gtd gtd_fac gen.1.dat]
      set callInfo(displayInfo) $cname


      puts "\[Call $CALL_ID\] Calling VOICE number: $DNIS"
      leg setup $DNIS callinfo leg_incoming
    }

    Thanks,
    Mickey

    Subject: RE: Fax Detect Script and Caller Name
    Replied by: Raghavendra Gutty Veeranagappa on 14-09-2011 01:57:29 AM
    Hi Mickey,

    .dat means that particular field in the GTD is data or number value.Since CNAME is string it should be retrieved using .name you can use as "object get gtd gtd_fac gen.-1.name"

    If using the Display IE use as below

    set cname [infotag get leg_display_info leg_incoming]
    set callInfo(displayInfo) $cname

    If using the Facility IE use as below

    set cname [object get gtd gtd_fac gen.-1.name]
    set callInfo(displayInfo) $cname

    Thanks,
    Raghavendra