Determining display_name or number of person who has picked up the phone

Version 1
    This document was generated from CDN thread

    Created by: Sara Afghan on 25-09-2012 02:28:30 AM
    Hi
    I have defined hunt groups in CUCM and connect calls from voice gateway to
    these pilot numbers. I want to know who has picked up the phone from that
    pilot.
    Can you please guide me with correct tcl command?
    I have tried the following code:
     
    set outgoing [infotag get
    leg_outgoing]

    set dst [infotag get leg_dnis
    $outgoing]

     
    but to no avail
     
    meanwhile I have tried the following code
     
    set LegID [infotag get
    evt_legs]

     
    when I output the LegID it shows incoming and outgoing legs with a space
    between them.

    Subject: RE: Determining display_name or number of person who has picked up the phon
    Replied by: Yaw-Ming Chen on 25-09-2012 12:22:50 PM
    Sara Afghan:
    Hi
    I have defined hunt groups in CUCM and connect calls from voice gateway to
    these pilot numbers. I want to know who has picked up the phone from that
    pilot.
    Can you please guide me with correct tcl command?
    I have tried the following code:
     
    set outgoing [infotag get
    leg_outgoing]

    set dst [infotag get leg_dnis
    $outgoing]

     
    but to no avail
     
    meanwhile I have tried the following code
     
    set LegID [infotag get
    evt_legs]

     
    when I output the LegID it shows incoming and outgoing legs with a space
    between them.

     
     
    I don't think we can do that. The legID you refer to is for Tcl application communicate  with IOS not getting from CUCM